Is there a way make a pipeline that will play any video file (which will contain audio too)? I have tried linking elements like:
filesrc -> decodebin
along with
queue -> audioconvert -> autoaudiosink
and
queue -> autovideoconvert -> autovideosink
This causes two problems:
- A
queuecannot be linked to anautovideoconvert. - I have no idea how to implement a pad with the
"pad-added"event, especially when the pipeline supports both audio and video.
I would like to know how to do this without the need for gst.parse_launch. Also, I want the pieline to work with any format I throw at it (like playbin), but cannot use a playbin as I will need to link other elements (level and volume).
Alternatively, is there a way to connect elements (such as level) to a playbin?
I’ve built an example video player that makes use of the elements you described.
It should show you how to connect the pads to eachother dynamically.