Rotate/flip video with ffmpeg


1. Flip video  vertically:

ffmpeg -i INPUT -vf vflip -c:a copy OUTPUT

2. Flip video horizontally:

ffmpeg -i INPUT -vf hflip -c:a copy OUTPUT

3. Rotate 90 degrees clockwise:

ffmpeg -i INPUT -vf transpose=1 -c:a copy OUTPUT

4. Rotate 90 degrees counterclockwise:

ffmpeg -i INPUT -vf transpose=2 -c:a copy OUTPUT
Advertisements
Tagged with: , , , ,
Posted in Linux
2 comments on “Rotate/flip video with ffmpeg
  1. imyjay says:

    Thank you! I’ve trawled the forums and the question gets answered in a dogs’ breakfast sort of way. However your answer is beautiful, simple and exact. Thank you.

  2. So simple, but so helpful. Thanks for publishing this!

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: