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

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: