Determine Video Orientation/Rotation

Tim-Philipp Müller t.i.m at zen.co.uk
Mon Apr 22 10:39:58 PDT 2013


On Mon, 2013-04-22 at 10:29 -0700, SteveO wrote:

> Is there a way to determine a video's orientation/rotation by examining exif
> data by way of GStreamer? I was hoping to inspect video content and perform
> a transformation via VideoFlip if the rotation was specified in exif data. I
> have a few video players that don't honor rotation in exif, and oftentimes
> the content appears to have fallen on its side.

There are GST_TAG_* tags to convey that information, but I don't know if
they will be picked up automatically with a default playbin/decodebin
pipeline, or if you need to force plugging of jpegparse or so.

Cheers
 -Tim



More information about the gstreamer-devel mailing list