Preserve rotation when converting between container formats

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Preserve rotation when converting between container formats

Michael Jackson
Hi all,

I have a .mov with h264 video and aac audio that I'd like to convert
to a .mp4. Right now, I'm using the following command:

$ ffmpeg -i original.mov -vcodec copy -acodec copy original.mp4

This works well and is very fast because I don't have to do any
encoding. However, I find that rotation information that was contained
in the .mov is not preserved in the conversion. For example, a .mov
that was rotated 90 degrees is rotated 0 degrees in the .mp4.

Is there any way to preserve this information across the conversion?
My ffmpeg configuration info is below.

Thanks!

Michael

$ ffmpeg
FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jan  7 2011 11:24:05 with gcc 4.2.1 (Apple Inc. build 5664)
  configuration: --disable-debug
--prefix=/usr/local/Cellar/ffmpeg/0.6.1 --enable-shared
--enable-pthreads --enable-nonfree --enable-gpl --disable-indev=jack
--enable-libx264 --enable-libfaac --enable-libmp3lame
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid
--enable-libfaad
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.11. 0 /  0.11. 0
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Preserve rotation when converting between container formats

Jason Garrett-Glaser-2
On Fri, Jan 7, 2011 at 2:32 PM, Michael Jackson <[hidden email]> wrote:

> Hi all,
>
> I have a .mov with h264 video and aac audio that I'd like to convert
> to a .mp4. Right now, I'm using the following command:
>
> $ ffmpeg -i original.mov -vcodec copy -acodec copy original.mp4
>
> This works well and is very fast because I don't have to do any
> encoding. However, I find that rotation information that was contained
> in the .mov is not preserved in the conversion. For example, a .mov
> that was rotated 90 degrees is rotated 0 degrees in the .mp4.
>
> Is there any way to preserve this information across the conversion?

No, mp4 prohibits the syntax element mov uses for rotation signalling.

Jason
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user