Debian Bug report logs - #575013
gstreamer0.10-alsa: can't write sound from microphone

version graph

Package: gstreamer0.10-alsa; Maintainer for gstreamer0.10-alsa is Maintainers of GStreamer packages <pkg-gstreamer-maintainers@lists.alioth.debian.org>; Source for gstreamer0.10-alsa is src:gst-plugins-base0.10.

Reported by: Andrey Gusev <a.gusev1980@mail.ru>

Date: Mon, 22 Mar 2010 20:15:01 UTC

Severity: important

Found in version gst-plugins-base0.10/0.10.28-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, a.gusev1980@mail.ru, Maintainers of GStreamer packages <pkg-gstreamer-maintainers@lists.alioth.debian.org>:
Bug#575013; Package gstreamer0.10-alsa. (Mon, 22 Mar 2010 20:15:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andrey Gusev <a.gusev1980@mail.ru>:
New Bug report received and forwarded. Copy sent to a.gusev1980@mail.ru, Maintainers of GStreamer packages <pkg-gstreamer-maintainers@lists.alioth.debian.org>. (Mon, 22 Mar 2010 20:15:05 GMT) Full text and rfc822 format available.

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

From: Andrey Gusev <a.gusev1980@mail.ru>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gstreamer0.10-alsa: can't write sound from microphone
Date: Mon, 22 Mar 2010 23:13:12 +0300
Package: gstreamer0.10-alsa
Version: 0.10.28-1
Severity: important

I can't write sound from microphone. I tried gnome-sound-recorder. It is 
generated errors. If I execute it from console, I can see:

(gnome-sound-recorder:5923): GStreamer-CRITICAL **: gst_implements_interface_cast: assertion `gst_element_implements_interface (GST_ELEMENT (from), iface_type)' failed
/tmp/gsr-record-Untitled-5923.4BAS9U/tmp/gsr-record-Untitled-5923.4BAS9UERROR: Could not negotiate format
DEBUG MESSAGE: gstbasesrc.c(2719): gst_base_src_start (): /GstPipeline:record-pipeline/GstGConfAudioSrc:gconfaudiosource/GstBin:bin6/GstAlsaSrc:alsasrc4:
Check your filtered caps, if any
ERROR: Could not get/set settings from/on resource.
DEBUG MESSAGE: gstalsasrc.c(680): gst_alsasrc_prepare (): /GstPipeline:record-pipeline/GstGConfAudioSrc:gconfaudiosource/GstBin:bin6/GstAlsaSrc:alsasrc4:
Setting of hwparams failed: Invalid argument
ERROR: Could not get/set settings from/on resource.
DEBUG MESSAGE: gstalsasrc.c(445): set_hwparams (): /GstPipeline:record-pipeline/GstGConfAudioSrc:gconfaudiosource/GstBin:bin6/GstAlsaSrc:alsasrc4:
Unable to set buffer time 200000 for recording: Invalid argument

Similar error appears in  gstreamer-properties. I push button "test" for record and get error:
andrey@power-debian:~$ LANG=C gstreamer-properties 
gstreamer-properties-Message: Skipping unavailable plugin 'artsdsink'
gstreamer-properties-Message: Skipping unavailable plugin 'esdsink'
gstreamer-properties-Message: Skipping unavailable plugin 'glimagesink'
gstreamer-properties-Message: Skipping unavailable plugin 'sdlvideosink'
gstreamer-properties-Message: Skipping unavailable plugin 'v4lmjpegsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'qcamsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'esdmon'
gstreamer-properties-Message: Error running pipeline 'ALSA - Advanced Linux Sound Architecture': Could not get/set settings from/on resource. [gstalsasrc.c(445): set_hwparams (): /GstPipeline:pipeline0/GstAlsaSrc:alsasrc1:
Unable to set buffer time 200000 for recording: Invalid argument]

I tried to find reason, it looks like gstream-alsa bug. gst-launch produces same error message:

andrey@power-debian:~/tmp/gst/gst-plugins-base0.10-0.10.28/ext/alsa$ LANG=C gst-launch-0.10 alsasrc ! audioconvert ! vorbisenc ! oggmux ! filesink location=input.ogg
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: Could not get/set settings from/on resource.
Additional debug info:
gstalsasrc.c(445): set_hwparams (): /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0:
Unable to set buffer time 200000 for recording: Invalid argument
Setting pipeline to NULL ...
Freeing pipeline ...

I found changing sound card will solve problem. Also, arecord isn't affected to this
bug. So, problem repeats with sound card Aureal Vortex au8830 and alsa gstream plugin.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.33.1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gstreamer0.10-alsa depends on:
ii  libasound2                    1.0.22-2   shared library for ALSA applicatio
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib
ii  libglib2.0-0                  2.22.4-1   The GLib library of C routines
ii  libgstreamer-plugins-base0.10 0.10.28-1  GStreamer libraries from the "base
ii  libgstreamer0.10-0            0.10.28-1  Core GStreamer libraries and eleme

gstreamer0.10-alsa recommends no packages.

gstreamer0.10-alsa suggests no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Maintainers of GStreamer packages <pkg-gstreamer-maintainers@lists.alioth.debian.org>:
Bug#575013; Package gstreamer0.10-alsa. (Mon, 14 Feb 2011 13:27:15 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ben Wong <bugs.debian.org@wongs.net>:
Extra info received and forwarded to list. Copy sent to Maintainers of GStreamer packages <pkg-gstreamer-maintainers@lists.alioth.debian.org>. (Mon, 14 Feb 2011 13:27:15 GMT) Full text and rfc822 format available.

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

From: Ben Wong <bugs.debian.org@wongs.net>
To: 575013@bugs.debian.org
Subject: Gstreamer cannot read from some ALSA microphones
Date: Mon, 14 Feb 2011 05:22:57 -0800
I can confirm that Debian's current gstreamer-0.10 has a problem
recording from some microphones.  I have an Ensoniq 5880B PCI audio
card which records fine with ALSA but does not work with gstreamer
when specified as "hw:1,0".  Oddly, it  *does* work with gstreamer
when specified as "default:CARD=AudioPCI".   Note that I have three
other microphones on my computer, hw:0,0, hw:2,0, and hw:3,0 and
gstreamer is able to record from them without error.

Here are further details,

### I have gstreamer-0.10.30-1 installed
gstreamer0.10-alsa:
  Installed: 0.10.30-1
  Candidate: 0.10.30-1
  Version table:
 *** 0.10.30-1 0
        500 http://mirrors2.kernel.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status

###  Reading from hw:1,0 fails in getalsasrc.c
$ gst-launch-0.10 alsasrc device=hw:1,0 ! fakesink
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: Could
not get/set settings from/on resource.
Additional debug info:
gstalsasrc.c(433): set_hwparams (): /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0:
Rate doesn't match (requested 44100Hz, get 0Hz)
Setting pipeline to NULL ...
Freeing pipeline ...

### But reading from default:CARD=AudioPCI works
$ gst-launch-0.10 alsasrc device=default:CARD=AudioPCI ! fakesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstAudioSrcClock
^C

### Recording using alsa works fine at 44100Hz
$ arecord -D hw:1,0 -f cd foo.wav
Recording WAVE 'foo.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
^C

### Here is the list of ALSA PCM sources available on my computer
$ arecord -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=I82801DBICH4
    Intel 82801DB-ICH4, Intel 82801DB-ICH4
    Default Audio Device
front:CARD=I82801DBICH4,DEV=0
    Intel 82801DB-ICH4, Intel 82801DB-ICH4
    Front speakers
surround40:CARD=I82801DBICH4,DEV=0
    Intel 82801DB-ICH4, Intel 82801DB-ICH4
    4.0 Surround output to Front and Rear speakers
surround41:CARD=I82801DBICH4,DEV=0
    Intel 82801DB-ICH4, Intel 82801DB-ICH4
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=I82801DBICH4,DEV=0
    Intel 82801DB-ICH4, Intel 82801DB-ICH4
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=I82801DBICH4,DEV=0
    Intel 82801DB-ICH4, Intel 82801DB-ICH4
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
default:CARD=AudioPCI
    Ensoniq AudioPCI, ES1371 DAC2/ADC
    Default Audio Device
front:CARD=AudioPCI,DEV=0
    Ensoniq AudioPCI, ES1371 DAC2/ADC
    Front speakers
surround40:CARD=AudioPCI,DEV=0
    Ensoniq AudioPCI, ES1371 DAC2/ADC
    4.0 Surround output to Front and Rear speakers
iec958:CARD=AudioPCI,DEV=0
    Ensoniq AudioPCI, ES1371 DAC2/ADC
    IEC958 (S/PDIF) Digital Audio Output
default:CARD=U0x46d0x8b1
    USB Device 0x46d:0x8b1, USB Audio
    Default Audio Device
front:CARD=U0x46d0x8b1,DEV=0
    USB Device 0x46d:0x8b1, USB Audio
    Front speakers
surround40:CARD=U0x46d0x8b1,DEV=0
    USB Device 0x46d:0x8b1, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=U0x46d0x8b1,DEV=0
    USB Device 0x46d:0x8b1, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=U0x46d0x8b1,DEV=0
    USB Device 0x46d:0x8b1, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=U0x46d0x8b1,DEV=0
    USB Device 0x46d:0x8b1, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=U0x46d0x8b1,DEV=0
    USB Device 0x46d:0x8b1, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=U0x46d0x8b1,DEV=0
    USB Device 0x46d:0x8b1, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
default:CARD=system
    iMic USB audio system, USB Audio
    Default Audio Device
front:CARD=system,DEV=0
    iMic USB audio system, USB Audio
    Front speakers
surround40:CARD=system,DEV=0
    iMic USB audio system, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=system,DEV=0
    iMic USB audio system, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=system,DEV=0
    iMic USB audio system, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=system,DEV=0
    iMic USB audio system, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=system,DEV=0
    iMic USB audio system, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=system,DEV=0
    iMic USB audio system, USB Audio
    IEC958 (S/PDIF) Digital Audio Output

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: I82801DBICH4 [Intel 82801DB-ICH4], device 0: Intel ICH [Intel
82801DB-ICH4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: I82801DBICH4 [Intel 82801DB-ICH4], device 1: Intel ICH - MIC
ADC [Intel 82801DB-ICH4 - MIC ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: I82801DBICH4 [Intel 82801DB-ICH4], device 2: Intel ICH - MIC2
ADC [Intel 82801DB-ICH4 - MIC2 ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: I82801DBICH4 [Intel 82801DB-ICH4], device 3: Intel ICH - ADC2
[Intel 82801DB-ICH4 - ADC2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: AudioPCI [Ensoniq AudioPCI], device 0: ES1371/1 [ES1371 DAC2/ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: U0x46d0x8b1 [USB Device 0x46d:0x8b1], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: system [iMic USB audio system], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

### It is only alsasrc that is broken; Gstreamer's alsasink works fine
for playing to hw:1,0
$ gst-launch-0.10 filesrc location=/home/ben/share/music/Mistabishi\
-\ Printer\ Jam.ogg ! oggdemux ! vorbisdec ! audioconvert ! alsasink
device=hw:1,0




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Apr 21 17:07:05 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.