|
Hi,
1. I would like to know if there is any advantage over using a bin element in creating a gstreamer pipeline over creating and handling elements individually.
Ex:
a) Below is the element by element addition to pipeline.
Source --> TypeFind --> Demux --> audQueue --> audParser --> audDec --> alsasink
--> vidQueue --> vidParser --> vidDec --> videosink
b) Below is the bin addition to pipeline.
Source --> TypeFind --> Demux --> audBin --> alsasink
--> vidBin --> videosink
where audBin contains (audQueue --> audParser --> audDec) and
vidBin contains (vidQueue --> vidParser --> vidDec).
What is the advantage of using bins as in b) over the implementation in a).
As I understand we need to create an extra element for bin, add to bin each required element.
Create ghost pads for the same and link them. I do the same even in a).
2. Also can I include alsasink in audBin and videosink in vidBin.
Will it cause some issue if I include sink in the child bin of my pipeline (My bin elements - audBin and vidBin will be the child bins of the pipeline bin).
|