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 164777 - [alsasrc] can't record from usb-audio
[alsasrc] can't record from usb-audio
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-01-20 23:59 UTC by Denis Jacquerye
Modified: 2005-01-25 18:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Denis Jacquerye 2005-01-20 23:59:32 UTC
I have a webcam handled by the pwc module (2.6.8 - ubuntu hoary), the audio is
handled by the audio and snd_usb_audio modules.

When using gstreamer-properties, I cannot record anything during the audio input
test (alsa or esd). the Gnome Sound Recorder cannot record anything from
usb-audio either.

This should be able to work, since other system work. For example Gnomemeeting
lets me select ALSA as the sound manager, and then I can choose the audio output
(my soundcard or the DMIX plugin) and the audio input (my usb audio device or my
soundcard). The recording works with Gnomemeeting.

My usb audio is my only input device (I don't have a microphone to plug in my
soundcard), it would be nice if I could just use it on the fly to record.
Comment 1 Ronald Bultje 2005-01-21 09:47:08 UTC
maybe you need to turn up the volume, or set the record or unset the mute
buttons in gnome-volume-control?
Comment 2 Denis Jacquerye 2005-01-21 13:19:02 UTC
I played around with it a bit more. 
It's not a mute or record unset issue.

Using "arecord  -d 10 -f cd -t wav -D 'plughw:1' foobar.wav" records perfectly
from the second audio input device. Just a gnomemeeting did, but this time I can
save files.

So it's just a matter of recording from the right device. How does gstreamer
select what device to record from? Does it record from all 'record set' devices
at the same time? That could be nice, users would never have to select which
devices to record from all they would do is set and unset them in the volume
control.
Comment 3 Ronald Bultje 2005-01-25 18:06:16 UTC
That's what all applications, including GStreamer, do. But if I understand you
correctly, you hear (record) nothing but silence? That's rather though. Can you
run gst-launch alsasrc device=plughw:1 ! lame ! filesink location=/tmp/file for
10 seconds and then quit (ctrl-C) and attach the file here? Adapt hw:0 to your
device. Als, can you make a log of that (run with the extra commandline options
--gst-debug=alsa*:5 --gst-debug-no-color &> /tmp/log) and attach the log file here?
Comment 4 Denis Jacquerye 2005-01-25 18:31:20 UTC
Running gst-launch alsasrc device=plughw:1 ! ... works, it records from the
secondary audio input (usb webcam here). Thanks.

The issue I have, is that the only way I can record with my secondary audio
input is through the command line, where I have to specify which device to use.
Gstreamer-properties doesn't show that the secondary audio input records.
The gstreamer based apps I have (gnome-sound-recorder at least) only record from
hw:0.

The expected behaviour is for gst to record from all the input device that have
record on. Or at least gstreamer-properties should allow me to set a default
device for audio input.

Do you still need the file.ogg and the log file?
Comment 5 Ronald Bultje 2005-01-25 18:56:21 UTC
No, that's ok. There is already a bug for gstreamer-properties to make device
selection more obvious. For now, select 'custom' in the dropdown box and type
'alsasrc device=plughw:1'. Then, it'll work.

Audio apps can only record from one device at a time, hence recording from all
devices that have the record flag set won't work...

Closing, since it's not a bug.