Microphone problems, arecord will not work
Hi,
I am having an issue getting my microphone to work so that I can record sound. I have been trying to do a screencast, and no method I used (several ffmpeg variations, recordmydesktop) would give me working audio. Other audio playback works fine. I tried to test the mic with arecord, and got an error. Here is some information: Code:
bash-4.2# arecord -l Code:
bash-4.2# arecord -d 10 test.wav Code:
bash-4.2# cat /etc/asound.conf Code:
bash-4.2# lspci Thank you in advance. |
A few things for you to try.
Run 'alsamixer' and check that the microphone is unmuted and that the microphone and capture levels are raised. (I start by pushing them all the way up, then backing off as appropriate.) For recording, I find that I need to specify the plughw device. Code:
arecord -d 5 -D plughw:0,0 foobar.wav |
it should just work. I use it all the time like this
Code:
arecord -vv -f dat -t raw | oggenc - -q=10 -r -R48000 -o audio.ogg Your capture device seems a bit different (PCH) than mine and the reference to the module snd_pcm_dmix_open in the error message is weird. Code:
arecord -l |
Thanks guys. I should have tried moving that asound.conf earlier. I did it, and that stopped the error, but I still am not able to record. The below gave me two 10 second files with no sound.
I tried playing both my test files with various media players with no success. I'm not sure it's related, but on a side note I discovered that vlc will not play audio at all. I'm using Alien's build and it has worked fine in the past. Code:
bash-4.2$ arecord -vv -d 10 mytest.wav |
Oh, the relevant alsamixer levels are all at max too. The only thing is, many releases ago I added the asound.conf to enable pre-amp functionality because my laptop sound is too weak without it. However, even when I removed it, the pre-amp remained. In fact, as you can see, I have 2. I wonder why this is? Did alsamixer change defaults? But why 2 pre-amps? My asound.conf is renamed and moved to my home directory.
screenshot: http://postimg.org/image/cgxgf217j/ |
hi Miranden,
on your alsamixer snapshot from you last post the capture channel looks muted to me. Go back to alsamixer, move to this channel and press space bar to unmute it. |
Oh, wow, you're right! I had no idea those little dashed lines by that control meant it was muted. I didn't even notice them. I guess you can tell I don't do much recording!
I feel like an idiot. But a happy one at least, since I can finally get this done. Thanks for the help! |
Alright, this is off topic, but I just have to admit, this is not the first time something like this has happened to me. I once had a TV that suddenly stopped making sound, so I took it apart and tried to figure out what the problem was. I had no success. Finally I called a friend (who happens to be an electrical engineer at SpaceX), and he set to the task. Neither of us had any clue what was wrong. After several hours, just as we were about to give up, we discovered, hidden on the back, a small push button toggle that said "speakers."
So it figures. Maybe this time I will learn my lesson! |
All times are GMT -5. The time now is 08:26 PM. |