I had an MSI TV @nywhere Plus card, and although it worked perfectly under Windows, I never got its sound working on my Linux box. The main reason for it was that the TV-Tuner card outputted sound through a separate cable to ALSA-line in. One way of getting around the mess was to launch MPlayer for video, and then capture audio through this separate command:

arecord -D hw:0 -r 44100 -c 2 -f S16_LE | aplay -

The solution wasn’t only ugly per se, but was also quite annoying because of a second’s lag in audio. After some searching in the mailing list archives of MPlayer, I combined various tricks in the following command which did the magic (relevant switches are highlighted):

The adevice, amode and audiorate are dependent on your tuner card, whereas the alsa, forceaudio and immediatemode=0 are mandatory if you’re trying to capture sound from line-in.

That’s it. Now I don’t have to boot to Windows every time I want to do some video-recording. The profusion of capturing options in mencoder compared to MSI’s bundled software comes as an additional bonus for me.

what if you aren’t using a tv card. Where do you put the alsa line? I’ve tried -ao -rawaudio. Can’t seem to get that line to work.I’m using an easycap using somagic-capture piped to mplayer using rawvideo “ntsc:etc etc”. I can get audio captured fine when recording using ffmpeg, but I can’t get mplayer to play my microphone

[…] allows the sound of sound card to comeout from the speaker So I thought it has to do with line-in, http://inspirated.com/2007/04/05/als…e-with-mplayer. But I followed everything on the blog but nothing worked. I must have done something incorrectly. […]