The application doesn't recognise headphones
Bug #1009930 reported by
Ricardo Hernández
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Audio Recorder |
Fix Released
|
Medium
|
moma |
Bug Description
When i plug my headphones, gnome (and pulseaudio) changes my default output to headphones and disabling the speakers. The problems is that audio-recorder doesn't show the headphones as an alternative to choose. It only choose the microphone and the internal speakers
One example is that i'm using audio-recorder with clementine to record some radio streaming. The folders are created perfectly for each song it is playing but no sound is recorded really.
I guess is an issue in how you query the pulseaudio sinks, because it actually changes dinamically when i connect and disconnect my headphones
For the record i'm using Ubuntu 12.04 with default Unity
description: | updated |
Changed in audio-recorder: | |
importance: | Undecided → Medium |
assignee: | nobody → moma (osmoma) |
Changed in audio-recorder: | |
status: | Incomplete → Fix Released |
To post a comment you must log in.
Hello Ricardo,
Would you like to test the devices and recording from the command line?
0) First, take a listing of available "Source" devices with the "pactl" command.
pactl comes from the "pulseaudio-utils" package, so apt-get it first.
$ pactl list | grep -A2 'Source #'
Notice that the "Source" word may have been translated to your language (depending on the language setting), so check the listing with "pactl list" command first.
1) Now you should have the device names.
Re-check the listing *with* or *without* your headphones plugged in. [ I believe the device listing is exactly the same, unless your headphone has also a microphone and you connect it to the USB-connector.]
Do you simply connect your headphones to the 3.5mm headphone jacket? Like this one? http:// www.phonescoop. com/glossary/ term.php? gid=440
This is the device listing from my computer. I show only the device names/ids here. Ok? pci-0000_ 00_1b.0. analog- stereo. monitor
$ pactl list | grep -A2 'Source #'
Name: alsa_output.
(sound card we can record from).
Name: alsa_input. pci-0000_ 00_1b.0. analog- stereo
(mic input on a sound card).
Name: alsa_output. pci-0000_ 06_01.0. analog- stereo. monitor
(sound card we can record from).
Name: alsa_input. pci-0000_ 06_01.0. analog- stereo
(mic input on a sound card).
Name: alsa_input. usb-Creative_ Ltd._VF0610_ WebCam< snip>.analog- mono
(webcam with microphone).
Some device names end with a ".monitor" label. These IDs can tap (record) audio from a real audio-card. Eg. in my case the output device is "alsa_output. pci-0000_ 00_1b.0. analog- stereo" (not shown in the Source listing). This is the real sound-card with loudspeakers. This is Output only. We CANNOT record from it. BUT we can record from its ".monitor" device that is "alsa_output. pci-0000_ 00_1b.0. analog- stereo. monitor" . Ok?
2) Now, test the recording with various device names.
Create a GStreamer pipeline for recording. Take the device id for the above listing and put it into the device="xxxx" argument. Like this:
$ gst-launch-0.10 pulsesrc device= "alsa_output. pci-0000_ 06_01.0. analog- stereo. monitor" ! queue ! audioconvert ! vorbisenc ! oggmux ! filesink location=test.oga
Play some music or speak to the microphone, etc! 10-tools" package. Sudo apt-get it.
Notice: the gst-launch command comes from "gstreamer0.
Here the filesink location= "test.oga" , so it outputs OGG audio to test.oga file. Replay it:
$ totem test.oga
Other samples of GStreamer pipelines for recording with various file formats: ubuntuforums. org/showpost. php?p=9589123& postcount= 4
http://
Please check also this guide: www.oz9aec. net/index. php/gstreamer/ 365-pulseaudio- device- names
http://
Please reply and post your findings here. bildr.no/ image/1168830. jpeg
-----
3) Check also this.
You may need to change the sound configuration on some computer systems. Please take a look at this picture.
http://
Install and start "pavucontrol" and set the configuration to "Analog Stereo Output" and test the recording. This may fix the recording if you get "empty" audio files. Unfortunately "Analog Stereo Output" will disable microphone input etc. I've seen cases where simply changing the settings back and forth and saving'em helps to...