On 06/29/2011 07:11 AM, Donovan wrote:
> We're doing some video encoding using FFMpeg and we're getting some
> videos coming in that are rotated and would like to automatically
> detect the rotation and flip them.  From what I've been able to
> research, there is a rotation flag/variable in the files that say if
> it's rotated and to what degree (ie: 90, 180, etc).  I can't for the
> life of me figure out how to find this info.  I've tried using
> mplayer/midentify but it doesn't seem to display anything.
>
> I know it can be done as processing the same videos through
> encoding.com shows the rotation value but we're trying to roll our own
> solution.  Hoping somebody else has run into this.
>
I just had some videos come off my ipod and they were rotated. I don't
know how to automatically detect the rotation, but to fix it I found I
just needed to add -vf "transpose=1" to the commandline.