[gst-devel] How can I get full information about a media file?

wl2776 wl2776 at gmail.com
Fri Apr 2 12:50:16 CEST 2010



lrn-2 wrote:
> 
> In no-more-pads i've used gst_element_iterate_src_pads() on decodebin
> element (with gst_iterator_next() and a standard gstiterator spell). For
> each pad it returns you can gst_pad_get_caps(),
> gst_caps_get_structure(), etc
> 
I tried getting negotiated caps on the sink pads of the fakesinks, and they
were null .


lrn-2 wrote:
> 
> srcs, not sinks. 
>    
> It is enough to iterate source pads of the bin as a whole, without
> digging into its internal organs. By doing this you'll get all
> decodeable streams of the source file, and 'unknown' handler will
> provide some info on undecodeable streams.
> 

Yes, I've realized about srcs. 
I used gst_bin_iterate_recurse, because I also wanted to know the codec.

-- 
View this message in context: http://n4.nabble.com/How-can-I-get-full-information-about-a-media-file-tp1745331p1749006.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list