FFMPEG Rotate / Flip Video

FFmpeg is a free software project that produces libraries and programs for handling multimedia data.



Here are some tips to Rotate or Flip Video using FFMPEG:

1. Flip video vertically:

ffmpeg -i INPUT_FILE -vf vflip OUTPUT_FILE

 
2. Flip video horizontally:

ffmpeg -i INPUT_FILE -vf hflip OUTPUT_FILE

 
3. Rotate 90 degrees clockwise:

ffmpeg -i INPUT_FILE -vf transpose=1 OUTPUT_FILE

 
4. Rotate 90 degrees counterclockwise:

ffmpeg -i INPUT_FILE -vf transpose=2 OUTPUT_FILE

For the transpose parameter you can pass:

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

Thanks

04. May 2016 by Alauddin Ansari Linux Leave a comment 2,775 views Tags: , , ,

Leave a Reply