[gst-devel] Height and width for displayed video
123sandy at gmail.com
Tue Sep 7 16:02:16 CEST 2010
> How can I get height and width of the resulting video?
You can get the height, width, framerate, etc,. from the caps. Caps will be
present either as part of
a Pad or as part of the buffer or both.
You can get caps from pad using gst_pad_get_caps, and you can get caps from
buffer using gst_buffer_get_caps function. Once you have the caps use the
gst_caps_get_structure to access
the individual fields. You have to gst_structure_get_<type> series of
functions to fetch each individual.
E.G.: For integer fields use gst_struture_get_int function.
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Height-and-width-for-displayed-video-tp2529701p2529770.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel