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

Mike F paziu at yahoo.com
Fri Jul 6 05:20:15 CEST 2012


I am replying here to my own question....

Well, "mencoder" came to help "ffmpeg" in the A/V capture part... I created a fifo "bridge", and finally ffmpeg was successful in the audio and video encoding... but only with help of mencoder... ( I thought ffmpeg can do all that mencoder plus much more - I was wrong )

# mencoder tv:// -tv driver=v4l2:norm=1:device=/dev/video0:forceaudio:alsa:adevice=hw.1:audiorate=44100:immediatemode=0 -ovc copy -oac copy -o bridge | ffmpeg -y -i bridge -aspect 16:9 -vcodec libxvid -b 400k -acodec libmp3lame -ab 128k -ar 44100 -ac 2 aaa.mp4

far from a solution, but it works... for now - the goal is to feed ffserver with >>THIS<<


Thanks anyway,

Mike

ps: I wonder now which one of the two is husband, and which one is the wife....



> 
> 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
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 


More information about the ffmpeg-user mailing list