How to rotate mp4 file
I've been searching and testing for hours. No luck. I have a .mov file I converted to mp4 using:
Code:
ffmpeg -i "2018.10 Chair Update Video.mov" -f mp4 -vcodec copy -acodec copy output.mp4 Code:
ffmpeg -i output.mp4 -vf "transpose=1" outputR.mp4 This is turning out a lot more difficult than I thought. Ideas? |
I've used handbrake in past, and it was quite good (however, I did not rotate video)
I do see there is an option to rotate: https://www.itsupportguides.com/know...ing-handbrake/ https://www.groovypost.com/howto/con...les-transcode/ Have you tried this already? BTW: there is also CLI option for handbrake if you do not want to use GUI: https://handbrake.fr/docs/en/latest/...reference.html |
You can rotate your monitor.
Anyway, this command you suggested worked for me: Code:
ffmpeg -i output.mp4 -vf "transpose=1" outputR.mp4 Code:
$ ffmpeg --version |
And also notice that some video players can rotate videos, for example mplayer:
Code:
mplayer -vf rotate=2 outputR.mp4 Code:
rotate[=<0-7>] |
maybe convert it to mp4 first, as stated, I too use HandBrake for this.
|
Quote:
|
I find that AVIDemux is one of the most useful video tools for applying filters to videos. It looks less pretty than Handbrake, but the settings are much more comprehensible.
|
Both of these will rotate video 90deg clockwise
Examples: Code:
ffmpeg -i input.mov -c:a copy -c:v libx264 -crf 18 -preset slow -vf "rotate=PI/2" outfile.mp4 Code:
ffmpeg -i input.mov -c:a copy -c:v libx264 -crf 18 -preset slow -vf "transpose=1" outfile.mp4 |
All times are GMT -5. The time now is 06:36 PM. |