[FFmpeg-user] iphone auto-rotation?

Anatol anatol2002 at gmail.com
Wed May 29 21:26:11 CEST 2013


 if($vid->_rotation==180)
$fltStr.= " -vf vflip,hflip";
else if($vid->_rotation==90)
$fltStr.= " -vf transpose=1";
else if($vid->_rotation==270 || $vid->_rotation==-90)
$fltStr.=" -vf transpose=2";


On Wed, May 29, 2013 at 9:54 PM, Mark Hahn <mark at hahnca.com> wrote:

> I run a service that publishes videos.  Amazon does the actual conversion
> to h264 but I'm using ffmpeg to capture frames to make thumbnails.  I have
> a problem now where iPhone 4 videos have a weird rotation that amazon
> handles properly but ffmpeg is ignoring.  So i'm getting rotated
> thumbnails.
>
> I checked the file with mediainfo and the metadata says there is a 90
> degree rotation.  What can I do to get ffmpeg to auto-rotate using this
> information?
>
> My version info is ...
>
> > ffmpeg -version
>
> ffmpeg version git-2013-01-17-b454c64
> built on Jan 17 2013 05:46:15 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
> configuration: --enable-gpl --enable-libass --enable-libfaac
> --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx
> --enable-libx264 --enable-nonfree --enable-version3
>
> libavutil          52. 15.100 / 52. 15.100
> libavcodec     54. 89.100 / 54. 89.100
> libavformat    54. 60.101 / 54. 60.101
> libavdevice    54.  3.102 / 54.  3.102
> libavfilter          3. 32.100 /  3. 32.100
> libswscale         2.  1.103 /  2.  1.103
> libswresample   0. 17.102 /  0. 17.102
> libpostproc      52.  2.100 / 52.  2.100
>
> Any help would be greatly appreciated ...
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list