Playing different songs on different channels

PragyaRai Pragya.Rai at lnties.com
Fri Dec 23 01:17:03 PST 2011


hi Thiago,
             Thanx foe your reply.i was expecting Interleave as in plugin to be used.But i tried it in my pipeline and getting lots of errors. I am new to gstreamer so can you please help me with the correct pipeline structure.

I have test1.mp3 and test2.mp3 which i need to play seperately on left and right earplugs.

hope to get a reply soon
Warm regards


________________________________________
From: gstreamer-devel-bounces+pragya.rai=lnties.com at lists.freedesktop.org [gstreamer-devel-bounces+pragya.rai=lnties.com at lists.freedesktop.org] on behalf of Thiago Sousa Santos [thiago.sousa.santos at collabora.com]
Sent: Friday, December 23, 2011 3:44 AM
To: Discussion of the development of and with GStreamer
Subject: Re: Playing different songs on different channels

On Wed, 2011-12-21 at 11:03 +0000, PragyaRai wrote:
> how to play one song in left earphone and one song in right earphone
> through gstreamer ?
> is there any plugin for this?

You can do that by interleaving the 2 audios into a single stream and
playing it as usual.

Use something like:

uridecodebin ! audioconvert ! audioresample ! capsfilter
caps="audio/x-raw-int, channels=1" ! ...

to convert a multiple channel input into a single channel.

Then link 2 branches like that into a interleave element.
You should have something like this:

uridecodebin ! audioconvert ! audioresample ! capsfilter
caps="audio/x-raw-int, channels=1" ! queue ! ileave. uridecodebin !
audioconvert ! audioresample ! capsfilter caps="audio/x-raw-int,
channels=1" ! queue ! ileave. interleave name=ileave ! queue !
audioconvert ! autoaudiosink

Hope this helps.

PS.: please add a subject to your emails

--
Thiago

>
>
>
> Larsen & Toubro Limited
>
> www.larsentoubro.com
>
> This Email may contain confidential or privileged information for the
> intended recipient (s) If you are not the intended recipient, please
> do not use or disseminate the information, notify the sender and
> delete it from your system.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


Larsen & Toubro Limited

www.larsentoubro.com

This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.


More information about the gstreamer-devel mailing list