Rotating videos with FFmpeg

We’re not all professional videomaker. I love photograph, but I hate to make video, so often I use my smartphone as a camera choosing the wrong orientation.

I find a way out to avoid to flip my monitor when I see videos.

Se avete un video da girare in senso orario di 90º bastera’ posizionarsi sulla directory contenente il/i video e digitare : To rotate a video

# ffmpeg -i myVideo.avi -vf "transpose=1" myFixedVideo.avi

take a look to the transpose values :

0 = 90 CounterCLockwise and Vertical Flip (default)
1 = 90 Clockwise
2 = 90 CounterClockwise
3 = 90 Clockwise and Vertical Flip

That’s all.

Leave a Reply

Your email address will not be published. Required fields are marked *