I'm using mencoder with command:

mencoder -tv driver=v4l2:norm=pal:device=/dev/video0:input=0:width=720:height=576:audiorate=4800 0:alsa:adevice=hw.0:amode=1 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900 -oac lavc -lavcopts acodec=mp2:abitrate=224 -vf scale=640:480 -o output.avi tv://

I have alsa mixer witch uses ensonic PCI soundcard.

How is it possible, that mencoder can't capture sound even though I hear it, I have set the recording device to be the same as the playback device.

In alsa-mixer, under "line" is red word capture, however, "line" volume controls work only on "playback" and "all" mode (on "record" mode I can set up only the "capture" volume).

The strange thing is, that I do get sound from microphone when I am using skype (when capture is set on microphone). But I can't capture sound when recording video (I have also tried ffmpeg and mp1e, both can capture video, but neither can capture the sound.)