Playing different songs on different channels

PragyaRai Pragya.Rai at lnties.com
Wed Dec 28 03:47:43 PST 2011


Now I am able to play two independent song in left and right earphone using below mentioned pipeline.
Can you please suggest me how to play a song in only one earphone using interleave plugin again. This will help in our application wherein we will not play two songs all the time.
________________________________________
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 PragyaRai [Pragya.Rai at lnties.com]
Sent: Wednesday, December 28, 2011 4:35 PM
To: Discussion of the development of and with GStreamer
Subject: RE: Playing different songs on different channels

Thanx Thiago.
i just interchanged the sink pads and its working for me.
gst-launch interleave name=i ! alsasink filesrc location=test.mp3 ! decodebin ! audioconvert !  audio/x-raw-int,channels=1 ! i.sink1  filesrc location=/song.mp3 ! decodebin ! audioconvert ! audio/x-raw-int,channels=1 ! i.sink0
This plays two songs differently.

________________________________________
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: Monday, December 26, 2011 8:27 PM
To: gstreamer-devel at lists.freedesktop.org
Subject: RE: Playing different songs on different channels

On Mon, 2011-12-26 at 14:22 +0000, PragyaRai wrote:
> Thank you  for your reply.
> I am using gst-launch for this in command line.This is the error I am getting
>
> pragya at pragya:~$ gst-launch interleave name=i ! alsasink filesrc location=/home/pragya/Desktop/FORCE/song.mp3 ! decodebin ! audioconvert ! audio/x-raw-int,channels=1 ! i.sink0  filesrc location=/home/pragya/Desktop/FORCE/test.mp3 ! decodebin ! audioconvert ! audio/x-raw-int,channels=1 ! i.sink1
>
> WARNING: erroneous pipeline: could not link audioconvert0 to i

gst-launch interleave name=i ! autoaudiosink filesrc location=... !
decodebin2 ! audioconvert ! audio/x-raw-int,channels=1 ! i.  filesrc
location=... ! decodebin2 ! audioconvert ! audio/x-raw-int,channels=1 !
i.

This works for me. Note that I used decodebin2 instead of decodebin,
that I removed the names for the interleave pads and let gst-launch
select them automatically, and that I added an extra audioresample.

--
Thiago

>
> pragya at pragya:~$
>
> ________________________________________
> 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 9:31 PM
> To: gstreamer-devel at lists.freedesktop.org
> Subject: RE: Playing different songs on different channels
>
> On Fri, 2011-12-23 at 09:17 +0000, PragyaRai wrote:
> > 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.
>
> What pipeline are you using and what errors are you getting?
>
> --
> Thiago
>
> >
> > 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.
> > _______________________________________________
> > 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.
> _______________________________________________
> 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.
_______________________________________________
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