The latest 2.6.16 kernel has alsa support for taking sound directly
off an saa7134 tv card, which I built as the saa7134-alsa module.

It generates the alsa devices listed below, and can be accessed in
mplayer by "adevice=hw.1:alsa" as in the following:

mencoder -tv
driver=v4l2:device=/dev/video$DEV:fps=30000/1001:chanlist=us-bcast:
audiorate=32000:adevice=hw.$DEV:alsa:input=0:amode=1:normid=4 -ffourcc
DIVX -ovc lavc -lavcopts threads=2 -oac mp3lame -lameopts cbr:br=128 -endpos $TIM -o $DIR/$FIL.avi tv:// > /dev/null

Using ffmpeg, I'm having difficulties accessing the sound. How do I tell ffmpeg where the alsa device is? This works fine,

ffmpeg -threads 2 -vd /dev/video$DEV -r 29.97 -b 800 -s 576x432 -vcodec
h264 -qmax 51 -me epzs -deinterlace -g 300 -async 1 -acodec mp3 -ab 64 -ar 32000 -ad /dev/dsp$DEV -t $TIM -f avi -y $DIR/$FIL.avi

-- except I'm not getting sound. What is the correct syntax for alsa?

Dave

$ arecord -l  (showing the devices created by saa7134-alsa in kernel
2.6.16):

**** List of CAPTURE Hardware Devices ****
card 0: CK8S [NVidia CK8S], device 0: Intel ICH [NVidia CK8S]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 0: CK8S [NVidia CK8S], device 1: Intel ICH - MIC ADC [NVidia CK8S -
MIC ADC]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 1: SAA7134 [SAA7134], device 0: SAA7134 PCM [SAA7134 PCM]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 2: SAA7134_1 [SAA7134], device 0: SAA7134 PCM [SAA7134 PCM]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 3: SAA7134_2 [SAA7134], device 0: SAA7134 PCM [SAA7134 PCM]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 4: SAA7134_3 [SAA7134], device 0: SAA7134 PCM [SAA7134 PCM]
 Subdevices: 1/1
 Subdevice #0: subdevice #0


_______________________________________________
ffmpeg-user mailing list
[EMAIL PROTECTED]
http://mplayerhq.hu/mailman/listinfo/ffmpeg-user


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to