Question

Using gst-launch is there any way to select a GStreamer Element based on the capabilities determined by a source element? For example, if I have a network source element which could download an MP3, M4A, or WAV file, can I select which element to pipe the data to based on the file type received? The file type is not actually known until after the network source element is loaded. See the linked image below for the pipeline I have in mind. Any ideas?

GStreamer Element Selector

Was it helpful?

Solution

you can use decodebin2 or uridecodebin element. These elements contain autodetct capabilities.

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-uridecodebin.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top