문제

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