rotation metadata

Dave Walker dave at happybits.co
Mon Mar 17 11:45:04 PDT 2014


Most of the Android devices I've used will include rotation metadata in the
file as part of the MP4 stream metadata. From ffprobe:

 >ffprobe ~/Downloads/pogo-original.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/Users/dave/Downloads/pogo-original.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 0
    compatible_brands: isom3gp4
    creation_time   : 2014-01-01 21:32:03
  Duration: 00:00:55.17, start: 0.000000, bitrate: 527 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 /
0x31637661), yuv420p, 640x480, 501 kb/s, 30.01 fps, 30 tbr, 90k tbn, 180k
tbc
    Metadata:
*      rotate          : 90  <-- ROTATION*
      creation_time   : 2014-01-01 21:32:03
      handler_name    : VideoHandle
    ...

When playing back via playbin, this rotation field isn't applied. Not
terribly surprising, since it doesn't appear to be a very standardized way
to describe rotation, even if it is very common on Android devices.

Any suggestions for how to get gstreamer to play this file with the correct
orientation?

Thanks as always.

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20140317/79780b16/attachment.html>


More information about the gstreamer-android mailing list