Bttv
Jump to navigation
Jump to search
Acquisition de l'entrée composite encodée en Divx4:
Première passe avec capture du son en raw:
mencoder -tv on:driver=v4l:input=1:norm=PAL:width=384:height=288:outfmt=rgb16 -o file1.avi -ovc lavc -lavcopts vcodec=mjpeg -oac copy
Deuxième passe pour compresser le son:
mencoder file1.avi -o file2.avi -ovc copy -oac mp3lame
vcodec=<value> use the specified codec (there is no default, you must specify it): __mjpeg__: Motion JPEG __h263__: H263 __h263p__: H263 Plus __mpeg4__: DivX 4/5 __msmpeg4__: DivX 3 __rv10__: an old !RealVideo codec __mpeg1video__: MPEG1 video :) vhq high quality mode, encode each macro block in all modes an choose the smallest (slow). (default: HQ disabled) vpass=<1-2> Activates internal 2pass mode (default: disabled): 1: first pass 2: second pass vbitrate=<value> specify bitrate (pass 1/2) in kBit <4-16000> or Bit <16001-24000000> (warning: 1kBit = 1000 Bits) (default: 800)
Pour le convertir:
[mencoder <source> -oac mp3lame -lameopts br=96:abr -ovc frameno -o frameno.avi] mencoder <source> -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=800:vpass=1 -o /dev/null mencoder <source> -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=800:vpass=2 -o <dest>