質問

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