diff options
-rw-r--r-- | ffmpeg.md | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -11,6 +11,20 @@ # -1 means to automatically preserve aspect ratio ffmpeg -i in.mp4 -filter:v scale=720:-1 out.mp4 +## Rotate + + # 90 degrees clockwise + ffmpeg -i in.mov -vf "transpose=1" out.mov + # 180 degrees + ffmpeg -vf "transpose=2,transpose=2" + +For the transpose parameter you can pass: + + 0 = 90CounterCLockwise and Vertical Flip (default) + 1 = 90Clockwise + 2 = 90CounterClockwise + 3 = 90Clockwise and Vertical Flip + ## Record screen ffmpeg -f x11grab -s 1920x1080 -i :0.0 out.mkv |