Select desired stream with decodebin2
Yogesh Marwaha
yogeshm.007 at gmail.com
Fri Oct 19 23:44:36 PDT 2012
Hi,
What I'm looking for is a way to identify a stream so that I may be able to
apply correct options to each streams. I'm refering to "Stream ID" values
which are shown by many media info pragrams (Is that a real value or just an
index number of stream). So far I'm unable to get any clue where/how to get
hold of that information. Hope I'm clear this time.
Regards,
On Sunday 14 Oct 2012 6:14:15 PM Yogesh Marwaha wrote:
> Hi,
>
> I am trying transcoding files and I'm using gstreamer 0.10.
>
> My problem is that I'm unable to work out (in case a source file has more
> than one stream) which stream(s) to select if they have same capabilities.
> Say I've an audio file with two streams with different language, then how
> will I select/determine the desired stream?
>
> What I have in my mind is (all thinking/no practical) : Connect all streams
> and add a queue with large enough size (but do not connect to final sink/or
> connect to fake sink); then change state to paused - there will be messages
> in the bus with required meta info; now disconnect all unneeded pads,
> connect with sink and play. How's that? Am I stretching it too far?
>
> Regards,
>
> Yogesh M
More information about the gstreamer-devel
mailing list