

We’re flipping the video by 90° clockwise twice. Let’s combine two transpose filters, each with a value of 1 for a 180° flip: $ ffmpeg -i big_buck_bunny_720p_1mb.mp4 -vf "transpose=1, transpose=1" output_transpose_multiple.mp4 We can also combine multiple transpose filters to change the orientation of the video. If the video needs to be rotated in a different direction, replace the number in the transpose parameter to one of the. ffmpeg -i INPUT.mp4 -metadata:s:v rotate'0' -vf 'transpose1' -c:v libx264 -crf 23 -acodec copy OUTPUT.mp4.

We’ll get this output when playing the output_0.mp4 video: To fix this, I used ffmpeg’s transpose video filter to rotate the video 90 degrees clockwise to make it landscape. This is the default preset if we don’t pass any values to transpose. This will change the video orientation to portrait. We’re passing the value 0 to the transpose filter which rotates the video counterclockwise and vertically. How to Rotate Video without Quality Loss 90 degrees rotate by a quarter 180 degrees half rotation 270 degrees rotate by three quarters 360 degrees.

Video:1040kB audio:229kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.406613% $ ffmpeg -i big_buck_bunny_720p_1mb.mp4 -vf "transpose=0" output_0.mp4
