[gst-devel] Finding out resolution of video of input file using decodebin2?

Vincent Torri vtorri at univ-evry.fr
Thu Jun 17 08:57:58 CEST 2010



On Wed, 16 Jun 2010, wl2776 wrote:

>
> http://gstreamer-devel.966125.n4.nabble.com/How-can-I-get-full-information-about-a-media-file-tp1745331p1745534.html

http://trac.enlightenment.org/e/browser/trunk/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline.c#L470

(decoder is the decodebin element). This is done after PAUSE state. So:

  * you iterate on the pad of the decodebin element (line 483)
  * you check if it's video or audio (line 496 for example)
  * then, for video, for example, look at the emotion_video_sink_fill() 
function (line 560):

http://trac.enlightenment.org/e/browser/trunk/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline.c#L559

This was for decodebin. I think that it's not very different for 
decodebin2

hth

Vincent Torri

> -- 
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Finding-out-resolution-of-video-of-input-file-using-decodebin2-tp2258081p2258265.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>




More information about the gstreamer-devel mailing list