6
4
Can I rotate (save, reencode) a .mp4 file with ffmpeg?
The only thing I found was on the mailinglist saying -vfilters "rotate=90"
but ffmpeg says that "there are no vfilters". I tried -vf
, it says there is "no rotate".
If I try to do it in VLC, it simply does not rotate and kills the audio. I'm on a Mac.
FFmpeg version git-svn-r23607, Copyright (c) 2000-2010 the FFmpeg developers
built on Jun 14 2010 23:52:55 with gcc 4.2.1 (Apple Inc. build 5659)
configuration:
libavutil 50.19. 0 / 50.19. 0
libavcodec 52.76. 0 / 52.76. 0
libavformat 52.68. 0 / 52.68. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 0 / 1.20. 0
libswscale 0.11. 0 / 0.11. 0
Hyper fast Audio and Video encoder
In case you really only want to change the metadata without re-encoding, see this answer or this :
– mivk – 2016-11-15T19:36:25.397-metadata:s:v rotate="90" -codec copy
or maybe... rotate=0 ...
to reset the rotation metadata.