[FFmpeg-user] ffmpeg - equivalent of mencoder's immediatemode=0

Mike F paziu at yahoo.com
Thu Jul 5 16:23:23 CEST 2012


Hello,

I am able to capture audio and video from a Pinnacle Dazzle DVC100 using mencoder:

mencoder tv:// -tv driver=v4l2:width=720:height=480:norm=1:device=/dev/video0:forceaudio:alsa:adevice=hw.1:audiorate=44100:immediatemode=0 -ovc xvid -xvidencopts bitrate=800:me_quality=6 -oac mp3lame -lameopts cbr:br=128 -o out.avi

if I try to use ffmpeg, I get no sound:

 ffmpeg -y  -f video4linux2 -i /dev/video0 -f alsa -i hw:1,0 -aspect 16:9 -vcodec libx264 -cmp +chroma -b 400k -refs 1 -coder 0 -subq 1 -partitions +parti4x4+parti8x8+partp8x8 -g 250 -keyint_min 25 -level 30 -qmin 10 -qmax 51 -trellis 2 -sc_threshold 40 -acodec libfaac -ab 128k -ar 44100 -ac 1 -i_qfactor 0.71 -f mp4 -strict experimental aaa.mp4

tried ALSA and OSS ( /dev/audioN and dspN ) device names, different audio codecs, hw:1, hw:1,1..... 500 combinations - no success. 
The "immediatemode=0" is required to get audio out of DVC100 - for mencoder - is there an equivalent in ffmpeg?


immediatemode=<bool> 
A value of 0 means capture and buffer audio and video together (default for MEncoder). A value of 1 (default for MPlayer) means to do video capture only and let the audio go through a loopback cable from the TV card to the sound card.

ffmpeg latest git version: N-42170-g71e5a14 - tested also with 4-5 older versions incl 0.10.2



Thank you,

paziu



More information about the ffmpeg-user mailing list