how to deal with multi audio tracks ?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

how to deal with multi audio tracks ?

toto-2
Hi guys,
I'm trying to play movies which has multi audio tracks. What i would like to do is to handle these audio tracks: switch to one audio track or mix them together during playback.

I tried to use adder element, it' seems work when mixing. but i don't know how to switch audio when playback. I just unlinked one audio decoder and the adder to disable the audio track. but then all audios are gone:(

Help please~


Regards,
ToTo

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to deal with multi audio tracks ?

Martin.cheng
Hi ToTo:
I was trying to make a input-selector but it was failed
You may have a try to make it and it has some functions like "switch" and "blocked", it is supposed to useful to complete your goal.
By the way, please give some reply about it.

Martin

On Fri, Apr 29, 2011 at 11:38 AM, wei qinbo <[hidden email]> wrote:
Hi guys,
I'm trying to play movies which has multi audio tracks. What i would like to do is to handle these audio tracks: switch to one audio track or mix them together during playback.

I tried to use adder element, it' seems work when mixing. but i don't know how to switch audio when playback. I just unlinked one audio decoder and the adder to disable the audio track. but then all audios are gone:(

Help please~


Regards,
ToTo

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to deal with multi audio tracks ?

toto-2
Input-selector can not mix tracks together. And, i have tried input
selector and succeed in switching tracks, but it seems have some sync
problems witch video stream.

On Fri, 2011-04-29 at 14:14 +0800, Mo Cheng wrote:

> Hi ToTo:
> I was trying to make a input-selector but it was failed
> You may have a try to make it and it has some functions like "switch"
> and "blocked", it is supposed to useful to complete your goal.
> By the way, please give some reply about it.
>
>
> Martin
>
> On Fri, Apr 29, 2011 at 11:38 AM, wei qinbo <[hidden email]>
> wrote:
>         Hi guys,
>         I'm trying to play movies which has multi audio tracks. What i
>         would like to do is to handle these audio tracks: switch to
>         one audio track or mix them together during playback.
>        
>         I tried to use adder element, it' seems work when mixing. but
>         i don't know how to switch audio when playback. I just
>         unlinked one audio decoder and the adder to disable the audio
>         track. but then all audios are gone:(
>        
>         Help please~
>        
>        
>         Regards,
>         ToTo
>        
>         _______________________________________________
>         gstreamer-devel mailing list
>         [hidden email]
>         http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>        
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to deal with multi audio tracks ?

Frans van Berckel
In reply to this post by toto-2
There are multi track applications using Gonlin. Will that help you?

http://gstreamer.freedesktop.org/modules/gnonlin.html

Thanks,

Frans van Berckel

On Fri, 2011-04-29 at 11:38 +0800, wei qinbo wrote:

> Hi guys,
> I'm trying to play movies which has multi audio tracks. What i would
> like to do is to handle these audio tracks: switch to one audio track
> or mix them together during playback.
>
> I tried to use adder element, it' seems work when mixing. but i don't
> know how to switch audio when playback. I just unlinked one audio
> decoder and the adder to disable the audio track. but then all audios
> are gone:(
>
> Help please~
>
>
> Regards,
> ToTo

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to deal with multi audio tracks ?

toto-2
Thanks for reply.

But I really need some base element/functions to do with that.

I tried to unlink one track source from adder and then release the
request pad. it does works. this track was removed, while the other
tracks play normally. But now i got another problem: i don't know how to
adder it to adder dynamically again...get request pad and link again
seems not work.

Is there any clues?


On Fri, 2011-04-29 at 09:04 +0200, Frans van Berckel wrote:

> There are multi track applications using Gonlin. Will that help you?
>
> http://gstreamer.freedesktop.org/modules/gnonlin.html
>
> Thanks,
>
> Frans van Berckel
>
> On Fri, 2011-04-29 at 11:38 +0800, wei qinbo wrote:
> > Hi guys,
> > I'm trying to play movies which has multi audio tracks. What i would
> > like to do is to handle these audio tracks: switch to one audio track
> > or mix them together during playback.
> >
> > I tried to use adder element, it' seems work when mixing. but i don't
> > know how to switch audio when playback. I just unlinked one audio
> > decoder and the adder to disable the audio track. but then all audios
> > are gone:(
> >
> > Help please~
> >
> >
> > Regards,
> > ToTo
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to deal with multi audio tracks ?

Stefan Sauer
In reply to this post by toto-2
Am 29.04.2011 06:38, schrieb wei qinbo:
> Hi guys,
> I'm trying to play movies which has multi audio tracks. What i would like to do
> is to handle these audio tracks: switch to one audio track or mix them together
> during playback.
>
I you are using playbin2 you can already switch them using the "current-audio"
property. Mixing is not supported there. Could you elaborate the use case for
mixing here? The multiple audio-tracker usually refer to different languages or
encodings (e.g. mp3 stereo, ac3 5.1).

Stefan

> I tried to use adder element, it' seems work when mixing. but i don't know how
> to switch audio when playback. I just unlinked one audio decoder and the adder
> to disable the audio track. but then all audios are gone:(
>
> Help please~
>
>
> Regards,
> ToTo
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel