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

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top