Debian Bug report logs - #541786
vdownmix: Update documentation with totem-gstreamer setup intructions

version graph

Package: libasound2-plugins; Maintainer for libasound2-plugins is Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>; Source for libasound2-plugins is src:alsa-plugins.

Reported by: Apelete Seketeli <apelete@seketeli.org>

Date: Sun, 16 Aug 2009 10:39:02 UTC

Severity: wishlist

Found in version alsa-plugins/1.0.20-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>:
Bug#541786; Package libasound2-plugins. (Sun, 16 Aug 2009 10:39:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Apelete Seketeli <apelete@seketeli.org>:
New Bug report received and forwarded. Copy sent to Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>. (Sun, 16 Aug 2009 10:39:06 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Apelete Seketeli <apelete@seketeli.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: vdownmix: Update documentation with totem-gstreamer setup intructions
Date: Sun, 16 Aug 2009 12:15:52 +0200
Package: libasound2-plugins
Version: 1.0.20-1
Severity: wishlist

Hi,

I'm using totem-gstreamer on a laptop, and lately I've been trying to play surround videos through stereo speakers without success.
I heard of vdownmix and tried to use it, but the info given in the vdownmix.txt file didn't help. I think it's important to let users know how to use this plugin with totem-gstreamer since it's the default video player for Gnome. I noticed while googling the problem that many people are failing to play surround sound in Totem (I couldn't find any help searching on the web, not even in the Alsa Wiki), and some of them resort to PulseAudio for that.
I have finally succeeded in setting this up, and I thought I'll give you the setup so you can update the documentation, making it available for other people to use. So here is the alternative I found to use vdownmix in totem (should work with any other player too) without PulseAudio:

pcm.!downmix51 {
 type vdownmix
 slave.pcm "surround51"
}

pcm.!default "plug:downmix51"


I don't kown if the example given in vdownmix.txt is really false, but the fact is it didn't work on my HDA Intel enabled laptop (Thinkpad X60 btw).
Hope this help.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libasound2-plugins depends on:
ii  libasound2           1.0.20-3            shared library for ALSA applicatio
ii  libavcodec52         4:0.5+svn20090609-2 ffmpeg codec library
ii  libc6                2.9-24              GNU C Library: Shared libraries
ii  libjack0             0.116.2+svn3592-2   JACK Audio Connection Kit (librari
ii  libpulse0            0.9.15-4.1          PulseAudio client libraries
ii  libsamplerate0       0.1.7-2             audio rate conversion library

libasound2-plugins recommends no packages.

libasound2-plugins suggests no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>:
Bug#541786; Package libasound2-plugins. (Sat, 05 Sep 2009 12:51:09 GMT) Full text and rfc822 format available.

Acknowledgement sent to Elimar Riesebieter <riesebie@lxtec.de>:
Extra info received and forwarded to list. Copy sent to Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>. (Sat, 05 Sep 2009 12:51:09 GMT) Full text and rfc822 format available.

Message #10 received at 541786@bugs.debian.org (full text, mbox):

From: Elimar Riesebieter <riesebie@lxtec.de>
To: Josh Triplett <josh@freedesktop.org>, 503839@bugs.debian.org
Cc: Apelete Seketeli <apelete@seketeli.org>, 541786@bugs.debian.org
Subject: Re: [Pkg-alsa-devel] Bug#503839: /usr/lib/alsa-lib/libasound_module_pcm_vdownmix.so: vdownmix from 5.1 does not incorporate LFE channel
Date: Sat, 5 Sep 2009 14:34:30 +0200
* Josh Triplett [081028 09:45 -0700]
> Package: libasound2-plugins
> Version: 1.0.16-1+b1
> Severity: normal
> File: /usr/lib/alsa-lib/libasound_module_pcm_vdownmix.so
> 
> The vdownmix plugin suggests this for .asoundrc:
> 
> pcm.!surround51 {
> 	type vdownmix
> 	slave.pcm "default"
> }

Could you please test:

pcm.!downmix51 {
 type vdownmix
  slave.pcm "surround51"
  }

  pcm.!default "plug:downmix51"


Elimar


-- 
  We all know Linux is great... it does infinite loops in 5 seconds.
        -- Linus Torvalds




Information forwarded to debian-bugs-dist@lists.debian.org, Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>:
Bug#541786; Package libasound2-plugins. (Sat, 05 Sep 2009 14:51:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Josh Triplett <josh@joshtriplett.org>:
Extra info received and forwarded to list. Copy sent to Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>. (Sat, 05 Sep 2009 14:51:04 GMT) Full text and rfc822 format available.

Message #15 received at 541786@bugs.debian.org (full text, mbox):

From: Josh Triplett <josh@joshtriplett.org>
To: Elimar Riesebieter <riesebie@lxtec.de>
Cc: 503839@bugs.debian.org, Apelete Seketeli <apelete@seketeli.org>, 541786@bugs.debian.org
Subject: Re: [Pkg-alsa-devel] Bug#503839: /usr/lib/alsa-lib/libasound_module_pcm_vdownmix.so: vdownmix from 5.1 does not incorporate LFE channel
Date: Sat, 5 Sep 2009 07:45:06 -0700
On Sat, Sep 05, 2009 at 02:34:30PM +0200, Elimar Riesebieter wrote:
> * Josh Triplett [081028 09:45 -0700]
> > Package: libasound2-plugins
> > Version: 1.0.16-1+b1
> > Severity: normal
> > File: /usr/lib/alsa-lib/libasound_module_pcm_vdownmix.so
> > 
> > The vdownmix plugin suggests this for .asoundrc:
> > 
> > pcm.!surround51 {
> > 	type vdownmix
> > 	slave.pcm "default"
> > }
> 
> Could you please test:
> 
> pcm.!downmix51 {
>  type vdownmix
>   slave.pcm "surround51"
>   }
> 
>   pcm.!default "plug:downmix51"

I didn't know whether you meant to use this instead of or in addition to
the previous .asoundrc snippet, so I tried both.  With just the lines
you suggested and nothing else:

~$ speaker-test -c 6 -t wav

speaker-test 1.0.20

Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
[...]

With the lines you suggested added to the stanza I mentioned in the
original report:

~$ speaker-test -c 6 -t wav

speaker-test 1.0.20

Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Segmentation fault


Either way, I don't get any sound at all.

If you had something different in mind than either of the two
alternatives I tried, please tell me what full .asoundrc to try and I'll
try it.

Thanks,
Josh Triplett




Information forwarded to debian-bugs-dist@lists.debian.org, Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>:
Bug#541786; Package libasound2-plugins. (Mon, 07 Sep 2009 17:00:14 GMT) Full text and rfc822 format available.

Acknowledgement sent to Apelete Seketeli <apelete@seketeli.org>:
Extra info received and forwarded to list. Copy sent to Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>. (Mon, 07 Sep 2009 17:00:14 GMT) Full text and rfc822 format available.

Message #20 received at 541786@bugs.debian.org (full text, mbox):

From: Apelete Seketeli <apelete@seketeli.org>
To: Josh Triplett <josh@joshtriplett.org>
Cc: Elimar Riesebieter <riesebie@lxtec.de>, 503839@bugs.debian.org, 541786@bugs.debian.org
Subject: Re: [Pkg-alsa-devel] Bug#503839: /usr/lib/alsa-lib/libasound_module_pcm_vdownmix.so: vdownmix from 5.1 does not incorporate LFE channel
Date: Mon, 7 Sep 2009 18:44:48 +0200
On Sat, Sep 5, 2009 at 16:45, Josh Triplett<josh@joshtriplett.org> wrote:
> With the lines you suggested added to the stanza I mentioned in the
> original report:
>
> ~$ speaker-test -c 6 -t wav
>
> speaker-test 1.0.20
>
> Playback device is default
> Stream parameters are 48000Hz, S16_LE, 6 channels
> WAV file(s)
> Segmentation fault

This is to be expected. You can only use one of the setup
instructions, not both. The following lines does not enable surround
sound on my side, it simply doesn't work:

pcm.!surround51 {
	type vdownmix
	slave.pcm "default"
}

> If you had something different in mind than either of the two
> alternatives I tried, please tell me what full .asoundrc to try and I'll
> try it.

Vdownmix setup seems to be device dependant, according to what you say.
On a Thinkpad X60 with Intel HDA sound card I'm able to play 5.1 video
files just fine (through stereo headphones), using only these lines in
my ~/.asoundrc:

pcm.!downmix51 {
 type vdownmix
 slave.pcm "surround51"
}

pcm.!default "plug:downmix51"


If it really doesn't work then there's something 'wrong' with vdownmix.
Maybe vdownmix setup depends on the sound card ? I know that it took
me a few trials before getting 5.1 to play on my computer, and yet it
doesn't work like I would like it to (sound mixing is disabled when
vdownmix is enabled, for instance)...

--
Apelete Seketeli <apelete@seketeli.org>




Information forwarded to debian-bugs-dist@lists.debian.org, Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>:
Bug#541786; Package libasound2-plugins. (Mon, 07 Sep 2009 19:24:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Josh Triplett <josh@joshtriplett.org>:
Extra info received and forwarded to list. Copy sent to Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>. (Mon, 07 Sep 2009 19:24:04 GMT) Full text and rfc822 format available.

Message #25 received at 541786@bugs.debian.org (full text, mbox):

From: Josh Triplett <josh@joshtriplett.org>
To: Apelete Seketeli <apelete@seketeli.org>
Cc: Elimar Riesebieter <riesebie@lxtec.de>, 503839@bugs.debian.org, 541786@bugs.debian.org
Subject: Re: [Pkg-alsa-devel] Bug#503839: /usr/lib/alsa-lib/libasound_module_pcm_vdownmix.so: vdownmix from 5.1 does not incorporate LFE channel
Date: Mon, 7 Sep 2009 12:13:52 -0700
On Mon, Sep 07, 2009 at 06:44:48PM +0200, Apelete Seketeli wrote:
> On Sat, Sep 5, 2009 at 16:45, Josh Triplett<josh@joshtriplett.org> wrote:
> > With the lines you suggested added to the stanza I mentioned in the
> > original report:
> >
> > ~$ speaker-test -c 6 -t wav
> >
> > speaker-test 1.0.20
> >
> > Playback device is default
> > Stream parameters are 48000Hz, S16_LE, 6 channels
> > WAV file(s)
> > Segmentation fault
> 
> This is to be expected. You can only use one of the setup
> instructions, not both.

"not working" seems to be expected; a segfault seems like a bug
regardless. :)

> The following lines does not enable surround
> sound on my side, it simply doesn't work:
> 
> pcm.!surround51 {
> 	type vdownmix
> 	slave.pcm "default"
> }

Those almost work for me.  When I do
speaker-test -D surround51 -c 6 -t wav
I get (spatially correct) sound for 5 channels, but no sound for the .1
(LFE).

> > If you had something different in mind than either of the two
> > alternatives I tried, please tell me what full .asoundrc to try and I'll
> > try it.
> 
> Vdownmix setup seems to be device dependant, according to what you say.
> On a Thinkpad X60 with Intel HDA sound card I'm able to play 5.1 video
> files just fine (through stereo headphones), using only these lines in
> my ~/.asoundrc:
> 
> pcm.!downmix51 {
>  type vdownmix
>  slave.pcm "surround51"
> }
> 
> pcm.!default "plug:downmix51"

With your setup, does "speaker-test -c 6 -t wav" generate sound for all
six channels?

ThinkPad X200 with Intel HDA (snd-hda-intel) here.  With that exact
setup in ~/.asoundrc:

~$ speaker-test -c 6 -t wav

speaker-test 1.0.20

Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
[...]

> If it really doesn't work then there's something 'wrong' with vdownmix.
> Maybe vdownmix setup depends on the sound card ? I know that it took
> me a few trials before getting 5.1 to play on my computer, and yet it
> doesn't work like I would like it to (sound mixing is disabled when
> vdownmix is enabled, for instance)...

It certainly *shouldn't* depend on the sound card.  Mixing 5.1 to 2.0 in
software should work anywhere, and I have working 2.0.  Of course, that
doesn't mean it *doesn't* depend on the sound card, just that it
*shouldn't*. :)

Happy to try any further suggestions or provide additional information,
if that helps debug this issue.

- Josh Triplett




Information forwarded to debian-bugs-dist@lists.debian.org, Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>:
Bug#541786; Package libasound2-plugins. (Mon, 07 Sep 2009 19:51:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Apelete Seketeli <apelete@seketeli.org>:
Extra info received and forwarded to list. Copy sent to Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>. (Mon, 07 Sep 2009 19:51:06 GMT) Full text and rfc822 format available.

Message #30 received at 541786@bugs.debian.org (full text, mbox):

From: Apelete Seketeli <apelete@seketeli.org>
To: Josh Triplett <josh@joshtriplett.org>
Cc: Elimar Riesebieter <riesebie@lxtec.de>, 503839@bugs.debian.org, 541786@bugs.debian.org
Subject: Re: [Pkg-alsa-devel] Bug#503839: /usr/lib/alsa-lib/libasound_module_pcm_vdownmix.so: vdownmix from 5.1 does not incorporate LFE channel
Date: Mon, 7 Sep 2009 21:36:56 +0200
On Mon, Sep 7, 2009 at 21:13, Josh Triplett<josh@joshtriplett.org> wrote:
> "not working" seems to be expected; a segfault seems like a bug
> regardless. :)

What I was trying to say is that you can expect the bug: if you define
a pcm device named "surround51" as a vdownmix type, and then 'plug' it
as a slave pcm in another vdownmix type pcm device...well, here comes
the bug. :)

> With your setup, does "speaker-test -c 6 -t wav" generate sound for all
> six channels?

Ok, so I don't get the .1 output either, but is it relevant here ? The
speaker test doesn't output it, but any 5.1 video just plays fine, 6
channels and all. At lest I assume, since I don't feel like there's
any sound missing while watching...

> It certainly *shouldn't* depend on the sound card.  Mixing 5.1 to 2.0 in
> software should work anywhere, and I have working 2.0.  Of course, that
> doesn't mean it *doesn't* depend on the sound card, just that it
> *shouldn't*. :)

Well, here is what I get on an X60:


~$ speaker-test -c 6 -t wav

speaker-test 1.0.20

Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 32 to 8192
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
 0 - Front Left
 4 - Center
 1 - Front Right
 3 - Rear Right
 2 - Rear Left
 5 - LFE
Time per period = 8,401077


I'll be glad to further test too, since there's obviously something
strange here.

Cheers.
--
Apelete Seketeli <apelete@seketeli.org>




Information forwarded to debian-bugs-dist@lists.debian.org, Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>:
Bug#541786; Package libasound2-plugins. (Mon, 07 Sep 2009 20:15:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Josh Triplett <josh@joshtriplett.org>:
Extra info received and forwarded to list. Copy sent to Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>. (Mon, 07 Sep 2009 20:15:06 GMT) Full text and rfc822 format available.

Message #35 received at 541786@bugs.debian.org (full text, mbox):

From: Josh Triplett <josh@joshtriplett.org>
To: Apelete Seketeli <apelete@seketeli.org>
Cc: Elimar Riesebieter <riesebie@lxtec.de>, 503839@bugs.debian.org, 541786@bugs.debian.org
Subject: Re: [Pkg-alsa-devel] Bug#503839: /usr/lib/alsa-lib/libasound_module_pcm_vdownmix.so: vdownmix from 5.1 does not incorporate LFE channel
Date: Mon, 7 Sep 2009 13:12:39 -0700
On Mon, Sep 07, 2009 at 09:36:56PM +0200, Apelete Seketeli wrote:
> > With your setup, does "speaker-test -c 6 -t wav" generate sound for all
> > six channels?
> 
> Ok, so I don't get the .1 output either, but is it relevant here ? The
> speaker test doesn't output it, but any 5.1 video just plays fine, 6
> channels and all. At lest I assume, since I don't feel like there's
> any sound missing while watching...

It does make a difference; whether you can easily notice depends on the
soundtrack.  Some soundtracks mix more or less onto the LFE, and more
importantly off of other channels.  Lacking the LFE for some soundtracks
can make some sounds softer to the point of almost becoming inaudible,
while leaving other sounds nearly unchanged.

For an analogous situation, consider what would happen if you took
stereo audio, dropped the right channel entirely, and mixed the left
channel onto both.  Often you wouldn't notice, if you listened to
something mostly balanced between channels; on the other hand, sounds
balanced mostly to the right channel would become very quiet.  The same
thing can happen with the LFE to some extent, depending on how any given
sound got mixed into the channels.  Particularly with the LFE, you
probably wouldn't notice any sound go missing (because sounds probably
won't appear only on the LFE channel), but the relative
volumes of sounds may change.

> > It certainly *shouldn't* depend on the sound card.  Mixing 5.1 to 2.0 in
> > software should work anywhere, and I have working 2.0.  Of course, that
> > doesn't mean it *doesn't* depend on the sound card, just that it
> > *shouldn't*. :)
> 
> Well, here is what I get on an X60:
> 
> 
> ~$ speaker-test -c 6 -t wav
> 
> speaker-test 1.0.20
> 
> Playback device is default
> Stream parameters are 48000Hz, S16_LE, 6 channels
> WAV file(s)
> Rate set to 48000Hz (requested 48000Hz)
> Buffer size range from 64 to 16384
> Period size range from 32 to 8192
> Using max buffer size 16384
> Periods = 4
> was set period_size = 4096
> was set buffer_size = 16384
>  0 - Front Left
>  4 - Center
>  1 - Front Right
>  3 - Rear Right
>  2 - Rear Left
>  5 - LFE
> Time per period = 8,401077

Go figure.  So, it looks like you somehow have a "surround51" device to
begin with, since you use that as a target for vdownmix without defining
it.  The presence of this device may also depend on the "model"
mechanism in snd-hda-intel.

In any case, if you don't get the LFE channel either, it sounds like
vdownmix may just not handle it correctly.

> I'll be glad to further test too, since there's obviously something
> strange here.

Indeed.  Thanks.

- Josh Triplett




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 12:55:12 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.