Getting metadata from video stream

Blazej b.slusarek at partner.samsung.com
Wed Oct 23 19:08:36 CEST 2013


Hello,

I am trying to get certain metadata from a video stream (in C code,
gstreamer-0.10). If I ffprobe my video, I will get:

/  Duration: 00:00:16.07, start: 0.000000, bitrate: 1349 kb/s
    Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D),
yuv420p, 640x480 [SAR 1:1 DAR 4:3], 1035 kb/s, 28.31 fps, 30 tbr, 1k tbn, 30
tbc (default)
    Metadata:
      *rotate          : 90*
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 308 kb/s (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : SoundHandler/

You can see the "rotate" parameter here, which is the little thingy I am
after :) I tried the following:
1. Create filesrc
2. set location
3. connect to decodebin2
4. get filesrc "src" pad and the pad caps
5. get #0 structure from caps
6. checked for "rotate" parameter in the structure with
gst_structure_has_field(str, "rotate")

Unfortunately it's always negative. Then I tried to do the same in the
"pad-added" event of decodebin2, the same result. I am thinking that maybe
this kind of metadata is not exactly caps-related.

Does anyone know how to fetch this parameter from a video stream or could
post some example I could base on?

Thanks in advance! :)

BR,
Blazej



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Getting-metadata-from-video-stream-tp4662811.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list