Home > Video > Rotate video with ffmpeg

Rotate video with ffmpeg

I often record family videos using my mobile phone and quite often the movie needs to be rotated 90 degrees. With a good build of ffmpeg it is a breeze:

ffmpeg -i input.mp4 -vf "transpose=1" -acodec libmp3lame -async 1 -vcodec libx264 -preset veryslow -tune film -crf 30 output.avi

This not only rotates the movie, it also recodes it in X.264 in a way that our TV can handle. Personally I can see no degradation in quality and the new file is much smaller.

Advertisements
Categories: Video
  1. No comments yet.
  1. 2013-11-21 at 02:13

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: