Automatically Flip Videos
Automatically Flip Videos
Filters and effects
Video
Creative
Beginner

Rotating and flipping videos on Cloudinary is a cakewalk. To rotate a video to an angle you desire, set the angle parameter. To mirror a video and vertically or horizontally flip it, set vflip or hflip as the angle value. Examples:

Vertical Mirror Flip

https://res.cloudinary.com/demo/video/upload/a_vflip/w_500/dog.mp4

A positive integer value rotates a video clockwise; a negative integer value, counterclockwise. If the angle is not a multiple of 90, Cloudinary adds a rectangular bounding box to house the rotated video.

Forty-Five-Degree Clockwise Rotation

https://res.cloudinary.com/demo/video/upload/a_45/w_500/dog.mp4

To rotate an image or text overlay on a video, first overlay the image or text and rotate them.

https://res.cloudinary.com/demo/video/upload/ac_none/l_cloudinary_icon,g_south_east,w_50/a_vflip,l_cloudinary_icon,g_north_west,w_50/a_90,co_white,g_south_west,l_text:arial_20:Cloudinary/a_-90,co_white,g_north_east,l_text:arial_20:Cloudinary/w_500/dog.mp4

Want to convert a vertical video to a horizontal one or vice versa? You can do that by padding it and adding a blurred background. For example, for a resolution of 1280x720, see below.

Blurred Padding of Vertical Videos for a Horizontal Conversion

https://res.cloudinary.com/demo/video/upload/b_blurred:1000,c_pad,h_720,w_1280/w_500/h-video.mp4

Say you have a couple of videos on the same event, one horizontal and the other vertical, and you want to merge them.One way of doing that is to crop both videos to a 1:1 aspect ratio so that they share the same dimensions, and then concatenate the videos.

https://res.cloudinary.com/demo/video/upload/ar_1:1,c_crop,w_1080/ar_1:1,c_crop,l_video:v2-video,fl_splice,w_1080/w_500/h2-video.mp4