Bug#365877: gstreamer0.10-alsa: alsasink does not work when sample
rate conversion is required
frank at gevaerts.be
Wed May 3 11:27:13 UTC 2006
gst-launch-0.10 filesrc location=file.mp3 ! mad ! audioconvert ! audioresample ! alsasink
does not work if the file has a sample rate that is not directly
supported by the sound device (a Logitech USB headset in my case).
The files I could reproduce this with have sample rates of 16KHz and
32KHz. File type does not matter (I tried mp3 and wav).
Everything starts correctly, but after a (short) while, often triggered
by unrelated CPU activity, sound output stops, CPU usage of gst-launch
climbs to 99% and gst-launch exits some time after. No errors are
This does not happen with libasound2 1.0.10, so alsa might be the
culprit, but I can only reproduce this with gst-launch and gstreamer
based audio players. I can not reproduce this with aplay or
I use kernel 2.6.16-rc4
As a workaround, I set the audiosink in gconf to "audioconvert ! audioresample ! audio/x-raw-int, rate=22050 ! alsasink".
(22050 is directly supported by the device). This works, butuses about
20% CPU here, so it is not really acceptable in the long term.
Contact me if there is anything I can try to help debug this.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-rc42.6.16-rc4-686
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages gstreamer0.10-alsa depends on:
ii libasound2 1.0.11-3 ALSA library
ii libc6 2.3.6-7 GNU C Library: Shared libraries
ii libgstreamer-plugins-base0.10 0.10.5-1 GStreamer libraries from the "base
gstreamer0.10-alsa recommends no packages.
-- no debconf information
More information about the Pkg-gstreamer-maintainers