GNOME Bugzilla – Bug 164777
[alsasrc] can't record from usb-audio
Last modified: 2005-01-25 18:56:33 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.
maybe you need to turn up the volume, or set the record or unset the mute buttons in gnome-volume-control?
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.
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?
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?
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.