Rotating a video by 90 degrees.
23 Aug 2020I needed to do some video processing, as the videos were rotated 90 degrees. Turns out this is not a problem for ffmpeg!
First, strip the sound,
ffmpeg -i betty.mp4 -vcodec copy -an betty-no-sound.mp4
Second, compress this huge file,
ffmpeg -i betty-no-sound.mp4 -vcodec libx264 -crf 30 betty-compressed2.mp4
Rotate counter clockwise, reference on flags is here:
ffmpeg -i betty-compressed2.mp4 -vf "transpose=2" betty-rotated.mp4
Finally, cut out the relevant section,
ffmpeg -i betty-rotated.mp4 -ss 00:00:36 -to 00:02:25 betty-final.mp4