Advantages of Bin Element over handling individual elements.

DeepakRohan deepak027rohan077 at gmail.com
Fri Aug 12 05:26:46 UTC 2016


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).



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Advantages-of-Bin-Element-over-handling-individual-elements-tp4679055.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list