[MEncoder-users] Forcing audiorate import on ffmpeg

David Liontooth liontooth at cogweb.net
Sun Jan 13 08:41:17 CET 2008


David Liontooth wrote:
>
> With mencoder, I can use audiorate for input and srate for output to 
> capture dmg sound from an saa7134 card directly to flash:
>
> mencoder -tv 
> driver=v4l2:device=/dev/video2:fps=30000/1001:chanlist=us-cable:\
> audiorate=32000:adevice=hw.2:alsa:input=0:amode=1:normid=4 -vf pp=lb 
> -ffourcc FLV1 -ovc lavc \
> -lavcopts 
> vcodec=flv:autoaspect:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 \
> -oac mp3lame -lameopts cbr:br=128 -srate 22050 -endpos $TIM -o 
> $DIR/$FIL.flv tv:// > /dev/null
>
> Is there a way to achieve the same result with ffmpeg? 
For the record, I didn't find a way to accomplish this directly with 
ffmpeg. However, I can record files using the mencoder command above, 
and then run this:

ffmpeg -i $DIR/$FIL.flv -y -map 0.0:0.0 -f flv -vcodec copy -acodec copy 
-map 0.1:0.1 $TDIR/$FIL.flv 2

The conversion is nearly instantaneous, and the resulting file will 
stream in a Windows streaming flash server. I guess I could turn the 
question around and ask, can I do this last step in mencoder?

Cheers,
Dave



More information about the MEncoder-users mailing list