Search code examples
ffmpeggstreamermpeg

GStreamer: Using type find


I've got a filesrc connected to a typefind element. On the "have-type" signal I print out the capibilities. What can I do with this information? I.e:

"Media type video/mpeg, systemstream=(boolean)false, mpegversion=(int)4, parsed=(boolean)false found, probability 79%"

Can I search for compatible elements or do I have to process this manually? How do I decide what the next element in the pipeline should be?

Also, please do not suggest using playbin2 - it is not suitable for my application.

Thanks!


Solution

  • This tells you at least whats in your file. Now you might want to connect a demux (according to typefinds info) and use the demultiplexers "pad-added" signal to process the media streams inside. (until it says "no-more-pads")

    http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-dynamic.html