I have a TV tuner card with its output connected to the CD in of an integrated sound card. Video is OK, and the sound also gets thorough (to the line out) when running xawtv, for example. However, I found no ways yet for recording it.

I'm running Ubuntu 10.10 with ALSA drivers. Pulseaudio was running in the beginning, now it doesn't, but it doesn't seem to make much difference.

Some things I've already tried:

capturing with VLC, using plughw:0,0 as the audio capture device. (Result: no sound track at all in the resulting video.)

arecord, then aplay.

alsamixer. The capture source is set to "CD" (and on the input side it's also "CD" where I can effectively modify the volume for audio going through...), but still no result.

Do you have any ideas what else could I try? (I seem to have run out of them...)

From my experience with ALSA on Natty (11.04), you can get a list of the input devices with the command arecord -l (dash lowercase-L). I've used this successfully to identify the ALSA device for my capture card (pcHDTV HD5500) and play live TV with sound from the analog capture using mplayer:

where the hw.2,0 came from the output of arecord -l (it listed "card 2: CX8801 [Conexant CX8801], device 0: CX88 Digital [CX88 Digital]", thus "2,0"; you want the "hw" device for this, so it should be "hw:2,0" for ALSA, but mplayer wants the colon replaced with a period).

To my chagrin, I do not know how to reproduce the effects of these settings in MythTV. I would welcome some help with that.

Upon further fiddling, I found that replacing "hw" in the ALSA device spec with "plughw" gives me sound from the analog tuner. I can also use the string name, so now the audio device ALSA:plughw:CARD=CX8801,DEV=0 works for me.
–
ReWriteJul 30 '11 at 17:30

thanks, this seems to be a good way to list ALSA devices (works for me too), and I also ended up using mplayer/mencoder
–
LataniusDec 28 '11 at 11:35

After another round of experimenting, here is the answer: buy a better sound card.

As it turned out, the integrated sound chip on my motherboard had a buggy linux driver that wasn't able to record audio at all. Under Windows, it worked somehow, but probably this was the reason for the half-second delay between video and audio there... (upgrading to Ubuntu 11.10 didn't help, either.)

Everything works perfectly now with an SB Live!, bought for $12... What I use is: