[FFmpeg-devel] [PATCH] Extract rotation in MOV metadata

Michael Niedermayer michaelni at gmx.at
Tue Sep 27 16:50:51 CEST 2011

On Tue, Sep 27, 2011 at 01:13:31PM +0000, Gagan wrote:
> I tried with this patch but it doesn't seems to be work. 
> I recorded video in portrait mode in IPhone.
>  But after encoding output video is 90 degree rotated.
>  I am using 0.8.4 version libraries of FFMPEG.
>  I just add this line and comment existing one (see below) but it doesn't work.
> It seems that it does not remember metadata information. Please help.
> //av_dict_set(&st->metadata, "rotate", "180", 0);
> 	 av_metadata_set2(&st->metadata, "rotate", "180", 0);

if iam not mistaken then this patch just extracts the rotation, 
it does not insert it in newly created movs...

A patch doing so is welcome!

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110927/e82ce978/attachment.asc>

More information about the ffmpeg-devel mailing list