How to Rotate a Video 90° from the Command Line (Linux Terminal, Bash Rotate)

Опубликовано: 06 Июнь 2026
на канале: Solutions & Débrouille
624
18

#VideoRotation #ffmpeg #Linux
Do you want to convert your video from vertical to horizontal, or vice versa?
Do you want to rotate your video 90° in one direction or the other? Here's how to rotate your video:

Command line in question:
ffmpeg -i VID_20190919_090129.mp4 -vf "transpose=1" VID_20190919_090129b.mp4

Another example:
ffmpeg -i VID_20200412_162020.mp4 -vf "transpose=2" B.mp4
0 = 90 CounterClockwise and Vertical Flip (default)
1 = 90 Clockwise
2 = 90 CounterClockwise
3 = 90 Clockwise and Vertical Flip
Use -vf "transpose=2,transpose=2" for 180 degrees.

Source:
https://stackoverflow.com/questions/3...

Could you please support my work by occasionally allowing a skippable video ad to play in its entirety on the channel?
Thank you to everyone who helps me in any way.
I read all the comments.

All my Linux Ubuntu tutorials:
   • Tutos Linux Ubuntu  

All my kdenlive tutorials:
   • Tutos kdenlive  

F A C E B O O K
  / solutionstechniques  

T W I T T E R
  / solutions_diy  

U T I P
https://utip.io/solutionsdebrouille

Olivier (Montpellier)