Playing different songs on different channels

Thiago Sousa Santos thiago.sousa.santos at collabora.com
Thu Dec 22 14:14:34 PST 2011


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




More information about the gstreamer-devel mailing list