After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 558641 - Cannot record using alsasrc
Cannot record using alsasrc
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.21
Other Linux
: Normal major
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-10-31 08:28 UTC by Patrick Balleux
Modified: 2008-10-31 17:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Patrick Balleux 2008-10-31 08:28:52 UTC
Under Ubuntu 8.10, the alsasrc plugin cannot record any sound because too much data is outputed from it:


{{{
gst-launch alsasrc ! audioconvert ! wavenc ! filesink location=test.wav
}}}


Lots of warnings about too much data and the file size for a few seconds is really too big.

Compared to:


{{{
gst-launch pulsesrc ! audioconvert ! wavenc ! filesink location=test.wav
}}}


Which is working perfectly.

This test was done under AMD64, but I have another laptop in 32 bits on which I suspect that I have the same problem since I am unable to record audio from Flash player also on this one.


Any software or application that must use ALSA to record with the pulseaudio server won't be able to record any audio.  Pulseaudio must be killed and settings must be set to ALSA so the software/application will use the ALSA driver directly.

gstreamer-alsa version : 0.10.21-3
Comment 1 Wim Taymans 2008-10-31 09:41:19 UTC
I have noticed the same thing, pulseaudio on top of alsa for recording seems broken. It does not seem to be a GStreamer problem though.
Comment 2 Patrick Balleux 2008-10-31 16:50:44 UTC
Hi,

Effectively, the same problem occus using pulseaudio (actually that's how I found out about the probem in gstreamer).  I thought that puslseaudio was using gstreamer (or ubuntu) to do the recording.

Could it be the libasound2 library that could be broken?

Comment 3 Wim Taymans 2008-10-31 16:55:39 UTC
Comment #2: pulseaudio is between alsa and GStreamer, usually like GStreamer -> pulseaudio -> alsa.

What we are seeing here is that 

 GStreamer -> pulseaudio -> alsa 

seems to work fine but that 

 GStreamer -> alsa -> pulseaudio -> alsa

Seems to fail.
Comment 4 Patrick Balleux 2008-10-31 17:20:32 UTC
Just received a notification that the problem is in the libasound2 library.

There is a fix for ubuntu.  See this link: https://bugs.launchpad.net/ubuntu/+source/gnome-media/+bug/282316

A fix is available at : https://launchpad.net/~crimsun/+archive


Thank you for your support.