Python gstreamer sink to ALSA device

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

Python gstreamer sink to ALSA device

Alex Karpinski
When creating a gstreamer pipeline with gst-launch it's possible, and in fact easy, to sink audio to a particular alsa device. Say I created a PCM that downmixes everything to the left channel, and called it left, I could use ! alsasink device=left. But it's looking to me like in python-gstreamer it's only possible to sink to alsa with no device specified. Is that correct, and is there any way around it? I really need to be able to downmix stereo streams into the left or right channel, and I thought I was pretty close until I hit this.

Thanks
-Alex
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Python gstreamer sink to ALSA device

Tim-Philipp Müller-2
On Sun, 2010-07-11 at 13:03 -0400, Alex Karpinski wrote:

> [W]ith gst-launch ... I could use ! alsasink device=left.
> But it's looking to me like in python-gstreamer it's only
> possible to sink to alsa with no device specified.

What makes you think that? It should be possible. Do you have code that
doesn't work? Maybe you could attach that, then we can have a look to
see what might be the problem.

 Cheers
  -Tim



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Python gstreamer sink to ALSA device

Alex Karpinski
On Jul 11, 2010, at 1:21 PM, Tim-Philipp Müller wrote:

> On Sun, 2010-07-11 at 13:03 -0400, Alex Karpinski wrote:
>
>> [W]ith gst-launch ... I could use ! alsasink device=left.
>> But it's looking to me like in python-gstreamer it's only
>> possible to sink to alsa with no device specified.
>
> What makes you think that? It should be possible. Do you have code that
> doesn't work? Maybe you could attach that, then we can have a look to
> see what might be the problem.
>
> Cheers
>  -Tim

I figured out what I'd done wrong in less than a minute when I finally took a nap. Coding personal projects after a full workday apparently makes me act like a fool. Just wanted to say thanks for the quick response though.

-Alex
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel