Mencoder, encodage vidéo en ligne de commande

Mencoder est un outil en ligne de commande. Il fait parti intégrante de Mplayer. Mencoder est capable de convertir à peu prés tous les formats vidéo. A ma connaissance, il s'agit de l'encodeur le plus complet. Je met en ligne les lignes de comande que j'utilise le plus souvent. Cette doc est donc loin d'être exhaustive. Pour plus de détails, consultez la doc officielle



Installation


MPlayer/Mencoder est disponible pour plusieurs plateforme. Consultez la section download du site officielle

Options d'encodage mencoder


Télécharger le code

Liste des codecs video supportés


Commande:

mencoder -ovc help

Résultat de la commande:

MEncoder 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     T8100  @ 2.10GHz (Family: 6, Model: 23, Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Available codecs:
   copy     - frame copy, without re-encoding. Doesn't work with filters.
   frameno  - special audio-only file for 3-pass encoding, see DOCS.
   raw      - uncompressed video. Use fourcc option to set format explicitly.
   lavc     - libavcodec codecs - best quality!
   vfw      - VfW DLLs, read DOCS/HTML/en/encoding-guide.html.
   qtvideo  - QuickTime DLLs, currently only SVQ1/3 are supported.
   xvid     - XviD encoding
   x264     - H.264 encoding



Télécharger le code

Liste des codecs audio supportés


Commande:

mencoder -oac help

Résultat de la commande:

MEncoder 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     T8100  @ 2.10GHz (Family: 6, Model: 23, Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Available codecs:
   copy     - frame copy, without re-encoding (useful for AC3)
   pcm      - uncompressed PCM audio
   mp3lame  - cbr/abr/vbr MP3 using libmp3lame
   lavc     - FFmpeg audio encoder (MP2, AC3, ...)
   twolame  - Twolame MP2 audio encoder
   faac     - FAAC AAC audio encoder



Télécharger le code

Liste des containers supportés


Commande:

mencoder -of help

Résultat de la commande:

MEncoder 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     T8100  @ 2.10GHz (Family: 6, Model: 23, Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Available output formats:
   avi      - Microsoft Audio/Video Interleaved
   mpeg     - MPEG-1/2 system stream format
   lavf     - FFmpeg libavformat muxers
   rawvideo - (video only, one stream only) raw stream, no muxing
   rawaudio - (audio only, one stream only) raw stream, no muxing



Télécharger le code

Liste des options mencoder


Commande:

mencoder -list-options

Résultat de la commande:

MEncoder 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     T8100  @ 2.10GHz (Family: 6, Model: 23, Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

 Name                 Type            Min        Max      Global  CL    Cfg

 nofontconfig         Print           No         No         No    Yes   No 
 fontconfig           Print           No         No         No    Yes   No 
 ass-hinting          Integer         0          7          No    Yes   Yes
 ass-styles           String          No         No         No    Yes   Yes
 ass-border-color     String          No         No         No    Yes   Yes
 ass-color            String          No         No         No    Yes   Yes
 ass-force-style      String list     No         No         No    Yes   Yes
 noembeddedfonts      Flag            No         No         No    Yes   Yes
 embeddedfonts        Flag            No         No         No    Yes   Yes
 noass-use-margins    Flag            No         No         No    Yes   Yes
 ass-use-margins      Flag            No         No         No    Yes   Yes
 ass-bottom-margin    Integer         0          2000       No    Yes   Yes
 ass-top-margin       Integer         0          2000       No    Yes   Yes
 ass-line-spacing     Float           -1000      1000       No    Yes   Yes
 ass-font-scale       Float           0          100        No    Yes   Yes
 noass                Flag            No         No         No    Yes   Yes
 ass                  Flag            No         No         No    Yes   Yes
 subfont-autoscale    Integer         0          3          No    Yes   Yes
 subfont-outline      Float           0          8          No    Yes   Yes
 subfont-blur         Float           0          8          No    Yes   Yes
 subfont-osd-scale    Float           0          100        No    Yes   Yes
 subfont-text-scale   Float           0          100        No    Yes   Yes
 subfont-encoding     String          No         No         No    Yes   Yes
 spugauss             Float           0          3          No    Yes   Yes
 spuaa                Integer         0          31         No    Yes   Yes
 spualign             Integer         -1         2          No    Yes   Yes
 subwidth             Integer         10         100        No    Yes   Yes
 subalign             Integer         0          2          No    Yes   Yes
 subpos               Integer         0          100        No    Yes   Yes
 ffactor              Float           0          10         No    Yes   Yes
 subfont              String          No         No         No    Yes   Yes
 font                 String          No         No         No    Yes   Yes
 sub-fuzziness        Integer         0          2          No    Yes   Yes
 sub-no-text-pp       Flag            No         No         No    Yes   Yes
 sub-bg-alpha         Integer         0          255        No    Yes   Yes
 sub-bg-color         Integer         0          255        No    Yes   Yes
 nooverlapsub         Flag            No         No         No    Yes   Yes
 overlapsub           Flag            No         No         No    Yes   Yes
 nosubcc              Flag            No         No         No    Yes   Yes
 subcc                Flag            No         No         No    Yes   Yes
 ifo                  String          No         No         No    Yes   Yes
 forcedsubsonly       Flag            No         No         No    Yes   Yes
 noutf8               Flag            No         No         No    Yes   Yes
 utf8                 Flag            No         No         No    Yes   Yes
 nounicode            Flag            No         No         No    Yes   Yes
 unicode              Flag            No         No         No    Yes   Yes
 noautosub            Flag            No         No         No    Yes   Yes
 autosub              Flag            No         No         No    Yes   Yes
 subfps               Float           No         No         No    Yes   Yes
 subdelay             Float           No         No         No    Yes   Yes
 subcp                String          No         No         No    Yes   Yes
 noflip-hebrew-commas Flag            No         No         No    Yes   Yes
 flip-hebrew-commas   Flag            No         No         No    Yes   Yes
 noflip-hebrew        Flag            No         No         No    Yes   Yes
 flip-hebrew          Flag            No         No         No    Yes   Yes
 fribidi-charset      String          No         No         No    Yes   Yes
 sub                  String list     No         No         No    Yes   Yes
 codecs-file          String          No         No         No    Yes   Yes
 xvidopts:dering-chro Flag            No         No         No    Yes   Yes
 xvidopts:dering-luma Flag            No         No         No    Yes   Yes
 xvidopts:deblock-chr Flag            No         No         No    Yes   Yes
 xvidopts:deblock-lum Flag            No         No         No    Yes   Yes
 xvidopts:filmeffect  Flag            No         No         No    Yes   Yes
 xvidopts:nodr2       Flag            No         No         No    Yes   Yes
 xvidopts:dr2         Flag            No         No         No    Yes   Yes
 lavfdopts:analyzedur Integer         0          2147483647 No    Yes   Yes
 lavfdopts:format     String          No         No         No    Yes   Yes
 lavfdopts:probesize  Integer         32         2147483647 No    Yes   Yes
 lavdopts:bitexact    Flag            No         No         No    Yes   Yes
 lavdopts:threads     Integer         1          8          No    Yes   Yes
 lavdopts:skipframe   String          No         No         No    Yes   Yes
 lavdopts:skipidct    String          No         No         No    Yes   Yes
 lavdopts:skiploopfil String          No         No         No    Yes   Yes
 lavdopts:lowres      String          No         No         No    Yes   Yes
 lavdopts:fast        Flag            No         No         No    Yes   Yes
 lavdopts:sb          Integer         0          999        No    Yes   Yes
 lavdopts:st          Integer         0          999        No    Yes   Yes
 lavdopts:vismv       Integer         0          9999999    No    Yes   Yes
 lavdopts:debug       Integer         0          9999999    No    Yes   Yes
 lavdopts:vstats      Flag            No         No         No    Yes   Yes
 lavdopts:ec          Integer         0          99         No    Yes   Yes
 lavdopts:idct        Integer         0          99         No    Yes   Yes
 lavdopts:gray        Flag            No         No         No    Yes   Yes
 lavdopts:er          Integer         0          99         No    Yes   Yes
 lavdopts:bug         Integer         -1         999999     No    Yes   Yes
 field-dominance      Integer         -1         1          No    Yes   Yes
 noslices             Flag            No         No         No    Yes   Yes
 slices               Flag            No         No         No    Yes   Yes
 tskeepbroken         Flag            No         No         No    Yes   Yes
 psprobe              Position        No         No         No    Yes   Yes
 tsprobe              Position        No         No         No    Yes   Yes
 tsprog               Integer         0          65534      No    Yes   Yes
 tsfastparse          Print           No         No         No    Yes   No 
 noflip               Flag            No         No         No    Yes   Yes
 flip                 Flag            No         No         No    Yes   Yes
 xy                   Float           0          4096       No    Yes   Yes
 noaspect             Flag            No         No         No    Yes   Yes
 aspect               Float           0          3          No    Yes   Yes
 nozoom               Flag            No         No         No    Yes   Yes
 zoom                 Flag            No         No         No    Yes   Yes
 ssf:cs               Float           No         No         No    Yes   Yes
 ssf:ls               Float           No         No         No    Yes   Yes
 ssf:chs              Integer         No         No         No    Yes   Yes
 ssf:cvs              Integer         No         No         No    Yes   Yes
 ssf:cgb              Float           No         No         No    Yes   Yes
 ssf:lgb              Float           No         No         No    Yes   Yes
 sws                  Integer         No         No         No    Yes   Yes
 pphelp               Print           No         No         No    Yes   No 
 pp                   Integer         No         No         No    Yes   Yes
 vc                   String list     No         No         No    Yes   Yes
 ac                   String list     No         No         No    Yes   Yes
 vfm                  String list     No         No         No    Yes   Yes
 afm                  String list     No         No         No    Yes   Yes
 vf*                  Object settings No         No         No    Yes   Yes
 vop                  Print           No         No         No    Yes   No 
 af                   String list     No         No         No    Yes   Yes
 af-adv:force         Integer         0          7          No    Yes   Yes
 af-adv:list          String list     No         No         No    Yes   Yes
 nosound              Flag            No         No         No    Yes   Yes
 sound                Flag            No         No         No    Yes   Yes
 stereo               Integer         0          2          No    Yes   Yes
 a52drc               Float           0          1          No    Yes   Yes
 noignore-start       Flag            No         No         No    Yes   Yes
 ignore-start         Flag            No         No         No    Yes   Yes
 delay                Float           -100       100        No    Yes   Yes
 speed                Float           0          100        No    Yes   Yes
 format               Audio format    No         No         No    Yes   Yes
 channels             Integer         1          6          No    Yes   Yes
 srate                Integer         1000       384000     No    Yes   Yes
 fps                  Float           0          No         No    Yes   Yes
 mc                   Float           0          100        No    Yes   Yes
 nobps                Flag            No         No         No    Yes   Yes
 bps                  Flag            No         No         No    Yes   Yes
 vivo:vformat         Integer         No         No         No    Yes   Yes
 vivo:height          Integer         No         No         No    Yes   Yes
 vivo:width           Integer         No         No         No    Yes   Yes
 vivo:bytesperblock   Integer         No         No         No    Yes   Yes
 vivo:samplerate      Integer         No         No         No    Yes   Yes
 vivo:abitrate        Integer         No         No         No    Yes   Yes
 vivo:acodec          String          No         No         No    Yes   Yes
 vivo:version         Integer         No         No         No    Yes   Yes
 pvr                  Print           No         No         No    Yes   Yes
 tv                   Print           No         No         No    Yes   Yes
 radio                Print           No         No         No    Yes   Yes
 mf:type              String          No         No         No    Yes   Yes
 mf:fps               Float           No         No         No    Yes   Yes
 mf:h                 Integer         No         No         No    Yes   Yes
 mf:w                 Integer         No         No         No    Yes   Yes
 mf:on                Print           No         No         No    Yes   Yes
 noextbased           Flag            No         No         No    Yes   Yes
 extbased             Flag            No         No         No    Yes   Yes
 sub-demuxer          String          No         No         No    Yes   Yes
 audio-demuxer        String          No         No         No    Yes   Yes
 demuxer              String          No         No         No    Yes   Yes
 subfile              String          No         No         No    Yes   Yes
 audiofile-cache      Integer         50         65536      No    Yes   Yes
 audiofile            String          No         No         No    Yes   Yes
 rawvideo:size        Integer         1          268435456  No    Yes   Yes
 rawvideo:fps         Float           0          1000       No    Yes   Yes
 rawvideo:y8          Flag            No         No         No    Yes   Yes
 rawvideo:uyvy        Flag            No         No         No    Yes   Yes
 rawvideo:yuy2        Flag            No         No         No    Yes   Yes
 rawvideo:hm12        Flag            No         No         No    Yes   Yes
 rawvideo:nv12        Flag            No         No         No    Yes   Yes
 rawvideo:yv12        Flag            No         No         No    Yes   Yes
 rawvideo:i420        Flag            No         No         No    Yes   Yes
 rawvideo:format      Image format    No         No         No    Yes   Yes
 rawvideo:sif         Flag            No         No         No    Yes   Yes
 rawvideo:16cif       Flag            No         No         No    Yes   Yes
 rawvideo:ntsc        Flag            No         No         No    Yes   Yes
 rawvideo:pal         Flag            No         No         No    Yes   Yes
 rawvideo:4cif        Flag            No         No         No    Yes   Yes
 rawvideo:cif         Flag            No         No         No    Yes   Yes
 rawvideo:qcif        Flag            No         No         No    Yes   Yes
 rawvideo:sqcif       Flag            No         No         No    Yes   Yes
 rawvideo:h           Integer         1          8192       No    Yes   Yes
 rawvideo:w           Integer         1          8192       No    Yes   Yes
 rawaudio:format      Integer         0          No         No    Yes   Yes
 rawaudio:bitrate     Integer         0          No         No    Yes   Yes
 rawaudio:samplesize  Integer         1          8          No    Yes   Yes
 rawaudio:rate        Integer         1000       384000     No    Yes   Yes
 rawaudio:channels    Integer         1          8          No    Yes   Yes
 nohr-mp3-seek        Flag            No         No         No    Yes   Yes
 hr-mp3-seek          Flag            No         No         No    Yes   Yes
 novideo              Flag            No         No         No    Yes   Yes
 sid                  Integer         0          8190       No    Yes   Yes
 vid                  Integer         0          8190       No    Yes   Yes
 aid                  Integer         0          8190       No    Yes   Yes
 loadidx              String          No         No         No    Yes   Yes
 saveidx              String          No         No         No    Yes   Yes
 forceidx             Flag            No         No         No    Yes   Yes
 idx                  Flag            No         No         No    Yes   Yes
 noidx                Flag            No         No         No    Yes   Yes
 noni                 Flag            No         No         No    Yes   Yes
 ni                   Flag            No         No         No    Yes   Yes
 edl                  String          No         No         No    Yes   Yes
 endpos               Time or size    No         No         No    Yes   Yes
 ss                   Time            No         No         No    Yes   Yes
 sb                   Position        0          No         No    Yes   Yes
 frames               Integer         0          No         No    Yes   Yes
 rtsp-destination     String          0          No         No    Yes   Yes
 rtsp-port            Integer         -1         65535      No    Yes   Yes
 rtsp-stream-over-tcp Flag            No         No         No    Yes   Yes
 sdp                  Print           No         No         No    Yes   Yes
 prefer-ipv6          Print           No         No         No    Yes   Yes
 noreuse-socket       Flag            No         No         Yes   Yes   Yes
 reuse-socket         Flag            No         No         Yes   Yes   Yes
 ipv4-only-proxy      Flag            No         No         No    Yes   Yes
 prefer-ipv4          Flag            No         No         No    Yes   Yes
 cookies-file         String          No         No         No    Yes   Yes
 nocookies            Flag            No         No         No    Yes   Yes
 cookies              Flag            No         No         No    Yes   Yes
 user-agent           String          No         No         No    Yes   Yes
 bandwidth            Integer         0          No         No    Yes   Yes
 passwd               String          No         No         No    Yes   Yes
 user                 String          No         No         No    Yes   Yes
 csslib               Print           No         No         No    Yes   No 
 dvdkey               Print           No         No         No    Yes   No 
 dvdauth              Print           No         No         No    Yes   No 
 slang                String          No         No         No    Yes   Yes
 alang                String          No         No         No    Yes   Yes
 chapter              Func param      No         No         No    Yes   Yes
 dvdangle             Integer         1          99         No    Yes   Yes
 dvd                  Print           No         No         No    Yes   Yes
 dvd-speed            Integer         No         No         No    Yes   Yes
 dvd-device           String          No         No         No    Yes   Yes
 cdrom-device         String          No         No         No    Yes   Yes
 cuefile              Print           No         No         No    Yes   Yes
 vcd                  Print           No         No         No    Yes   No 
 cache-seek-min       Float           0          99         No    Yes   Yes
 cache-min            Float           0          99         No    Yes   Yes
 nocache              Flag            No         No         No    Yes   Yes
 cache                Integer         32         1048576    No    Yes   Yes
 priority             String          No         No         No    Yes   Yes
 include              Func param      No         No         No    Yes   Yes
 msgcharset           String          No         No         Yes   Yes   Yes
 msglevel:help        Print           No         No         No    Yes   No 
 msglevel:statusline  Integer         -1         9          No    Yes   Yes
 msglevel:ass         Integer         -1         9          No    Yes   Yes
 msglevel:identify    Integer         -1         9          No    Yes   Yes
 msglevel:osd-menu    Integer         -1         9          No    Yes   Yes
 msglevel:muxer       Integer         -1         9          No    Yes   Yes
 msglevel:netst       Integer         -1         9          No    Yes   Yes
 msglevel:afilter     Integer         -1         9          No    Yes   Yes
 msglevel:subreader   Integer         -1         9          No    Yes   Yes
 msglevel:vobsub      Integer         -1         9          No    Yes   Yes
 msglevel:sws         Integer         -1         9          No    Yes   Yes
 msglevel:codeccfg    Integer         -1         9          No    Yes   Yes
 msglevel:cpudetect   Integer         -1         9          No    Yes   Yes
 msglevel:network     Integer         -1         9          No    Yes   Yes
 msglevel:osd         Integer         -1         9          No    Yes   Yes
 msglevel:vfilter     Integer         -1         9          No    Yes   Yes
 msglevel:input       Integer         -1         9          No    Yes   Yes
 msglevel:playtree    Integer         -1         9          No    Yes   Yes
 msglevel:spudec      Integer         -1         9          No    Yes   Yes
 msglevel:osdep       Integer         -1         9          No    Yes   Yes
 msglevel:radio       Integer         -1         9          No    Yes   Yes
 msglevel:tv          Integer         -1         9          No    Yes   Yes
 msglevel:xacodec     Integer         -1         9          No    Yes   Yes
 msglevel:mencoder    Integer         -1         9          No    Yes   Yes
 msglevel:cache       Integer         -1         9          No    Yes   Yes
 msglevel:stream      Integer         -1         9          No    Yes   Yes
 msglevel:lirc        Integer         -1         9          No    Yes   Yes
 msglevel:parsees     Integer         -1         9          No    Yes   Yes
 msglevel:dvd         Integer         -1         9          No    Yes   Yes
 msglevel:open        Integer         -1         9          No    Yes   Yes
 msglevel:win32       Integer         -1         9          No    Yes   Yes
 msglevel:seek        Integer         -1         9          No    Yes   Yes
 msglevel:decvideo    Integer         -1         9          No    Yes   Yes
 msglevel:decaudio    Integer         -1         9          No    Yes   Yes
 msglevel:cfgparser   Integer         -1         9          No    Yes   Yes
 msglevel:autoq       Integer         -1         9          No    Yes   Yes
 msglevel:avsync      Integer         -1         9          No    Yes   Yes
 msglevel:header      Integer         -1         9          No    Yes   Yes
 msglevel:demux       Integer         -1         9          No    Yes   Yes
 msglevel:ds          Integer         -1         9          No    Yes   Yes
 msglevel:demuxer     Integer         -1         9          No    Yes   Yes
 msglevel:ao          Integer         -1         9          No    Yes   Yes
 msglevel:vo          Integer         -1         9          No    Yes   Yes
 msglevel:gplayer     Integer         -1         9          No    Yes   Yes
 msglevel:cplayer     Integer         -1         9          No    Yes   Yes
 msglevel:global      Integer         -1         9          No    Yes   Yes
 msglevel:all         Integer         -1         9          No    Yes   Yes
 v                    Func            No         No         Yes   Yes   Yes
 really-quiet         Flag            No         No         Yes   Yes   Yes
 noquiet              Flag            No         No         Yes   Yes   Yes
 quiet                Flag            No         No         Yes   Yes   Yes
 lavfopts:delay       Float           0          2147483647 No    Yes   Yes
 lavfopts:preload     Float           0          2147483647 No    Yes   Yes
 lavfopts:packetsize  Integer         0          2147483647 No    Yes   Yes
 lavfopts:muxrate     Integer         0          2147483647 No    Yes   Yes
 lavfopts:format      String          No         No         No    Yes   Yes
 mpegopts:tele_dest   Float           No         No         Yes   Yes   Yes
 mpegopts:tele_src    Float           No         No         Yes   Yes   Yes
 mpegopts:film2pal    Flag            No         No         Yes   Yes   Yes
 mpegopts:interleavin Flag            No         No         Yes   Yes   Yes
 mpegopts:telecine    Flag            No         No         Yes   Yes   Yes
 mpegopts:tsaf        Flag            No         No         Yes   Yes   Yes
 mpegopts:drop        Flag            No         No         Yes   Yes   Yes
 mpegopts:abuf_size   Integer         4          64         Yes   Yes   Yes
 mpegopts:vbuf_size   Integer         40         1194       Yes   Yes   Yes
 mpegopts:adelay      Integer         0          32760      Yes   Yes   Yes
 mpegopts:vdelay      Integer         0          32760      Yes   Yes   Yes
 mpegopts:vbitrate    Integer         1          104857599  Yes   Yes   Yes
 mpegopts:vpsheight   Integer         1          16383      Yes   Yes   Yes
 mpegopts:vpswidth    Integer         1          16383      Yes   Yes   Yes
 mpegopts:vheight     Integer         1          4095       Yes   Yes   Yes
 mpegopts:vwidth      Integer         1          4095       Yes   Yes   Yes
 mpegopts:vframerate  Float           No         No         Yes   Yes   Yes
 mpegopts:vaspect     Float           No         No         Yes   Yes   Yes
 mpegopts:muxrate     Integer         0          12000000   Yes   Yes   Yes
 mpegopts:size        Integer         0          65535      Yes   Yes   Yes
 mpegopts:format      String          No         No         Yes   Yes   Yes
 x264encopts          Func param      No         No         Yes   Yes   Yes
 xvidencopts:profile  String          No         No         No    Yes   Yes
 xvidencopts:zones    String          No         No         No    Yes   Yes
 xvidencopts:noautoas Flag            No         No         No    Yes   Yes
 xvidencopts:autoaspe Flag            No         No         No    Yes   Yes
 xvidencopts:aspect   Float           0          10         No    Yes   Yes
 xvidencopts:par_heig Integer         0          255        No    Yes   Yes
 xvidencopts:par_widt Integer         0          255        No    Yes   Yes
 xvidencopts:par      String          No         No         No    Yes   Yes
 xvidencopts:containe Integer         0          No         No    Yes   Yes
 xvidencopts:kfthresh Integer         0          No         No    Yes   Yes
 xvidencopts:kfreduct Integer         0          100        No    Yes   Yes
 xvidencopts:max_over Integer         0          100        No    Yes   Yes
 xvidencopts:max_over Integer         0          100        No    Yes   Yes
 xvidencopts:overflow Integer         0          100        No    Yes   Yes
 xvidencopts:curve_co Integer         0          100        No    Yes   Yes
 xvidencopts:curve_co Integer         0          100        No    Yes   Yes
 xvidencopts:keyframe Integer         0          100        No    Yes   Yes
 xvidencopts:rc_buffe Integer         0          No         No    Yes   Yes
 xvidencopts:rc_avera Integer         0          No         No    Yes   Yes
 xvidencopts:rc_react Integer         0          100        No    Yes   Yes
 xvidencopts:quant_in String          No         No         No    Yes   Yes
 xvidencopts:quant_in String          No         No         No    Yes   Yes
 xvidencopts:max_bqua Integer         1          31         No    Yes   Yes
 xvidencopts:min_bqua Integer         1          31         No    Yes   Yes
 xvidencopts:max_pqua Integer         1          31         No    Yes   Yes
 xvidencopts:min_pqua Integer         1          31         No    Yes   Yes
 xvidencopts:max_iqua Integer         1          31         No    Yes   Yes
 xvidencopts:min_iqua Integer         1          31         No    Yes   Yes
 xvidencopts:psnr     Flag            No         No         No    Yes   Yes
 xvidencopts:stats    Flag            No         No         No    Yes   Yes
 xvidencopts:debug    Integer         No         No         No    Yes   Yes
 xvidencopts:turbo    Flag            No         No         No    Yes   Yes
 xvidencopts:nolumi_m Flag            No         No         No    Yes   Yes
 xvidencopts:lumi_mas Flag            No         No         No    Yes   Yes
 xvidencopts:nogreysc Flag            No         No         No    Yes   Yes
 xvidencopts:grayscal Flag            No         No         No    Yes   Yes
 xvidencopts:greyscal Flag            No         No         No    Yes   Yes
 xvidencopts:max_key_ Integer         0          No         No    Yes   Yes
 xvidencopts:frame_dr Integer         0          100        No    Yes   Yes
 xvidencopts:nohq_ac  Flag            No         No         No    Yes   Yes
 xvidencopts:hq_ac    Flag            No         No         No    Yes   Yes
 xvidencopts:nocartoo Flag            No         No         No    Yes   Yes
 xvidencopts:cartoon  Flag            No         No         No    Yes   Yes
 xvidencopts:nointerl Flag            No         No         No    Yes   Yes
 xvidencopts:interlac Flag            No         No         No    Yes   Yes
 xvidencopts:noclosed Flag            No         No         No    Yes   Yes
 xvidencopts:closed_g Flag            No         No         No    Yes   Yes
 xvidencopts:nopacked Flag            No         No         No    Yes   Yes
 xvidencopts:packed   Flag            No         No         No    Yes   Yes
 xvidencopts:notrelli Flag            No         No         No    Yes   Yes
 xvidencopts:trellis  Flag            No         No         No    Yes   Yes
 xvidencopts:nogmc    Flag            No         No         No    Yes   Yes
 xvidencopts:gmc      Flag            No         No         No    Yes   Yes
 xvidencopts:noqpel   Flag            No         No         No    Yes   Yes
 xvidencopts:qpel     Flag            No         No         No    Yes   Yes
 xvidencopts:bf_thres Integer         -255       255        No    Yes   Yes
 xvidencopts:bquant_o Integer         0          200        No    Yes   Yes
 xvidencopts:bquant_r Integer         0          200        No    Yes   Yes
 xvidencopts:threads  Integer         No         No         No    Yes   Yes
 xvidencopts:max_bfra Integer         0          20         No    Yes   Yes
 xvidencopts:bvhq     Integer         0          1          No    Yes   Yes
 xvidencopts:vhq      Integer         0          4          No    Yes   Yes
 xvidencopts:nochroma Flag            No         No         No    Yes   Yes
 xvidencopts:chroma_o Flag            No         No         No    Yes   Yes
 xvidencopts:nochroma Flag            No         No         No    Yes   Yes
 xvidencopts:chroma_m Flag            No         No         No    Yes   Yes
 xvidencopts:me_quali Integer         0          6          No    Yes   Yes
 xvidencopts:quant_ty String          No         No         No    Yes   Yes
 xvidencopts:fixed_qu Float           1          31         No    Yes   Yes
 xvidencopts:pass     Integer         1          2          No    Yes   Yes
 xvidencopts:bitrate  Integer         No         No         No    Yes   Yes
 xvfwopts:compdata    String          No         No         No    Yes   Yes
 xvfwopts:codec       String          No         No         No    Yes   Yes
 faacopts:debug       Integer         0          100000000  No    Yes   Yes
 faacopts:raw         Flag            No         No         No    Yes   Yes
 faacopts:format      Integer         No         No         No    Yes   Yes
 faacopts:cutoff      Integer         No         No         No    Yes   Yes
 faacopts:tns         Flag            No         No         No    Yes   Yes
 faacopts:mpeg        Integer         2          4          No    Yes   Yes
 faacopts:object      Integer         1          4          No    Yes   Yes
 faacopts:quality     Integer         0          1000       No    Yes   Yes
 faacopts:br          Integer         No         No         No    Yes   Yes
 twolameopts:debug    Integer         0          100000000  No    Yes   Yes
 twolameopts:errprot  Integer         0          1          No    Yes   Yes
 twolameopts:maxvbr   Integer         No         No         No    Yes   Yes
 twolameopts:vbr      Float           -50        50         No    Yes   Yes
 twolameopts:psy      Integer         -1         4          No    Yes   Yes
 twolameopts:mode     String          No         No         No    Yes   Yes
 twolameopts:br       Integer         No         No         No    Yes   Yes
 toolameopts          Print           No         No         No    Yes   No 
 lavcopts:level       Integer         -214748364 2147483647 No    Yes   Yes
 lavcopts:b_sensitivi Integer         1          2147483647 No    Yes   Yes
 lavcopts:refs        Integer         1          16         No    Yes   Yes
 lavcopts:mv0_thresho Integer         0          2147483647 No    Yes   Yes
 lavcopts:aglobal     Integer         0          2147483647 No    Yes   Yes
 lavcopts:vglobal     Integer         0          2147483647 No    Yes   Yes
 lavcopts:sc_factor   Integer         1          2147483647 No    Yes   Yes
 lavcopts:bidir_refin Integer         0          4          No    Yes   Yes
 lavcopts:brd_scale   Integer         0          10         No    Yes   Yes
 lavcopts:skip_exp    Integer         0          1000000    No    Yes   Yes
 lavcopts:skip_factor Integer         0          1000000    No    Yes   Yes
 lavcopts:skip_thresh Integer         0          1000000    No    Yes   Yes
 lavcopts:turbo       Flag            No         No         No    Yes   Yes
 lavcopts:threads     Integer         1          8          No    Yes   Yes
 lavcopts:nssew       Integer         0          1000000    No    Yes   Yes
 lavcopts:qns         Integer         0          1000000    No    Yes   Yes
 lavcopts:top         Integer         -1         1          No    Yes   Yes
 lavcopts:sc_threshol Integer         -100000000 1000000000 No    Yes   Yes
 lavcopts:inter_thres Integer         -1000000   1000000    No    Yes   Yes
 lavcopts:border_mask Float           0          1          No    Yes   Yes
 lavcopts:dc          Integer         8          11         No    Yes   Yes
 lavcopts:cgop        Flag            No         No         No    Yes   Yes
 lavcopts:ilme        Flag            No         No         No    Yes   Yes
 lavcopts:alt         Flag            No         No         No    Yes   Yes
 lavcopts:ss          Flag            No         No         No    Yes   Yes
 lavcopts:qprd        Flag            No         No         No    Yes   Yes
 lavcopts:nr          Integer         0          1000000    No    Yes   Yes
 lavcopts:mv0         Flag            No         No         No    Yes   Yes
 lavcopts:cbp         Flag            No         No         No    Yes   Yes
 lavcopts:inter_matri String          No         No         No    Yes   Yes
 lavcopts:intra_matri String          No         No         No    Yes   Yes
 lavcopts:context     Integer         0          10         No    Yes   Yes
 lavcopts:coder       Integer         0          10         No    Yes   Yes
 lavcopts:pbias       Integer         -512       512        No    Yes   Yes
 lavcopts:ibias       Integer         -512       512        No    Yes   Yes
 lavcopts:loop        Flag            No         No         No    Yes   Yes
 lavcopts:obmc        Flag            No         No         No    Yes   Yes
 lavcopts:aiv         Flag            No         No         No    Yes   Yes
 lavcopts:umv         Flag            No         No         No    Yes   Yes
 lavcopts:aic         Flag            No         No         No    Yes   Yes
 lavcopts:me_range    Integer         0          16000      No    Yes   Yes
 lavcopts:subq        Integer         0          8          No    Yes   Yes
 lavcopts:preme       Integer         0          2000       No    Yes   Yes
 lavcopts:last_pred   Integer         0          2000       No    Yes   Yes
 lavcopts:lowdelay    Flag            No         No         No    Yes   Yes
 lavcopts:trell       Flag            No         No         No    Yes   Yes
 lavcopts:qpel        Flag            No         No         No    Yes   Yes
 lavcopts:dia         Integer         -2000      2000       No    Yes   Yes
 lavcopts:predia      Integer         -2000      2000       No    Yes   Yes
 lavcopts:bit_exact   Flag            No         No         No    Yes   Yes
 lavcopts:ildctcmp    Integer         0          2000       No    Yes   Yes
 lavcopts:skipcmp     Integer         0          2000       No    Yes   Yes
 lavcopts:mbcmp       Integer         0          2000       No    Yes   Yes
 lavcopts:subcmp      Integer         0          2000       No    Yes   Yes
 lavcopts:cmp         Integer         0          2000       No    Yes   Yes
 lavcopts:precmp      Integer         0          2000       No    Yes   Yes
 lavcopts:psnr        Flag            No         No         No    Yes   Yes
 lavcopts:debug       Integer         0          100000000  No    Yes   Yes
 lavcopts:format      Image format    No         No         No    Yes   Yes
 lavcopts:pred        Integer         0          20         No    Yes   Yes
 lavcopts:idct        Integer         0          20         No    Yes   Yes
 lavcopts:ildct       Flag            No         No         No    Yes   Yes
 lavcopts:dark_mask   Float           -1         1          No    Yes   Yes
 lavcopts:naq         Flag            No         No         No    Yes   Yes
 lavcopts:p_mask      Float           -1         1          No    Yes   Yes
 lavcopts:scplx_mask  Float           -1         1          No    Yes   Yes
 lavcopts:tcplx_mask  Float           -1         1          No    Yes   Yes
 lavcopts:lumi_mask   Float           -1         1          No    Yes   Yes
 lavcopts:autoaspect  Flag            No         No         No    Yes   Yes
 lavcopts:aspect      String          No         No         No    Yes   Yes
 lavcopts:vfdct       Integer         0          10         No    Yes   Yes
 lavcopts:vrc_init_oc Float           0          1          No    Yes   Yes
 lavcopts:vrc_init_cp Float           0          9999999    No    Yes   Yes
 lavcopts:vrc_buf_agg Float           0          99         No    Yes   Yes
 lavcopts:vrc_buf_siz Integer         4          24000000   No    Yes   Yes
 lavcopts:vrc_minrate Integer         0          24000000   No    Yes   Yes
 lavcopts:vrc_maxrate Integer         0          24000000   No    Yes   Yes
 lavcopts:vrc_overrid String          No         No         No    Yes   Yes
 lavcopts:vrc_eq      String          No         No         No    Yes   Yes
 lavcopts:vqmod_freq  Integer         No         No         No    Yes   Yes
 lavcopts:vqmod_amp   Float           0          99         No    Yes   Yes
 lavcopts:vqsquish    Float           0          99         No    Yes   Yes
 lavcopts:vi_qoffset  Float           0          31         No    Yes   Yes
 lavcopts:vi_qfactor  Float           -31        31         No    Yes   Yes
 lavcopts:mpeg_quant  Flag            No         No         No    Yes   Yes
 lavcopts:gray        Flag            No         No         No    Yes   Yes
 lavcopts:keyint      Integer         No         No         No    Yes   Yes
 lavcopts:vdpart      Flag            No         No         No    Yes   Yes
 lavcopts:vstrict     Integer         -99        99         No    Yes   Yes
 lavcopts:vpsize      Integer         0          100000000  No    Yes   Yes
 lavcopts:vcelim      Integer         -99        99         No    Yes   Yes
 lavcopts:vlelim      Integer         -99        99         No    Yes   Yes
 lavcopts:vb_qoffset  Float           0          31         No    Yes   Yes
 lavcopts:vb_strategy Integer         0          10         No    Yes   Yes
 lavcopts:vrc_strateg Integer         0          2          No    Yes   Yes
 lavcopts:vpass       Integer         0          3          No    Yes   Yes
 lavcopts:vmax_b_fram Integer         0          16         No    Yes   Yes
 lavcopts:vb_qfactor  Float           -31        31         No    Yes   Yes
 lavcopts:vqblur      Float           0          1          No    Yes   Yes
 lavcopts:vqcomp      Float           0          1          No    Yes   Yes
 lavcopts:vqdiff      Integer         1          31         No    Yes   Yes
 lavcopts:mblmax      Float           0          255        No    Yes   Yes
 lavcopts:mblmin      Float           0          255        No    Yes   Yes
 lavcopts:lmax        Float           0          255        No    Yes   Yes
 lavcopts:lmin        Float           0          255        No    Yes   Yes
 lavcopts:mbqmax      Integer         1          31         No    Yes   Yes
 lavcopts:mbqmin      Integer         1          31         No    Yes   Yes
 lavcopts:vqmax       Integer         1          31         No    Yes   Yes
 lavcopts:vqmin       Integer         1          31         No    Yes   Yes
 lavcopts:vqscale     Float           0          255        No    Yes   Yes
 lavcopts:vme         Integer         0          8          No    Yes   Yes
 lavcopts:v4mv        Flag            No         No         No    Yes   Yes
 lavcopts:mbd         Integer         0          9          No    Yes   Yes
 lavcopts:vhq         Flag            No         No         No    Yes   Yes
 lavcopts:vratetol    Integer         4          24000000   No    Yes   Yes
 lavcopts:vbitrate    Integer         4          24000000   No    Yes   Yes
 lavcopts:vcodec      String          No         No         No    Yes   Yes
 lavcopts:atag        Integer         0          65535      No    Yes   Yes
 lavcopts:abitrate    Integer         1          1000000    No    Yes   Yes
 lavcopts:acodec      String          No         No         No    Yes   Yes
 lameopts:help        Print           No         No         No    Yes   No 
 lameopts:preset      String          No         No         No    Yes   Yes
 lameopts:fast        Flag            No         No         No    Yes   Yes
 lameopts:br_max      Integer         0          1024       No    Yes   Yes
 lameopts:br_min      Integer         0          1024       No    Yes   Yes
 lameopts:free        Flag            No         No         No    Yes   Yes
 lameopts:nofree      Flag            No         No         No    Yes   Yes
 lameopts:highpassfre Integer         -1         48000      No    Yes   Yes
 lameopts:lowpassfreq Integer         -1         48000      No    Yes   Yes
 lameopts:vol         Float           0          10         No    Yes   Yes
 lameopts:ratio       Integer         0          100        No    Yes   Yes
 lameopts:br          Integer         0          1024       No    Yes   Yes
 lameopts:padding     Integer         0          3          No    Yes   Yes
 lameopts:mode        Integer         0          5          No    Yes   Yes
 lameopts:abr         Flag            No         No         No    Yes   Yes
 lameopts:cbr         Flag            No         No         No    Yes   Yes
 lameopts:vbr         Integer         0          5          No    Yes   Yes
 lameopts:aq          Integer         0          9          No    Yes   Yes
 lameopts:q           Integer         0          9          No    Yes   Yes
 info:help            Print           No         No         No    Yes   No 
 info:comment         String          No         No         No    Yes   Yes
 info:srcform         String          No         No         No    Yes   Yes
 info:copyright       String          No         No         No    Yes   Yes
 info:subject         String          No         No         No    Yes   Yes
 info:genre           String          No         No         No    Yes   Yes
 info:artist          String          No         No         No    Yes   Yes
 info:name            String          No         No         No    Yes   Yes
 noodml               Flag            No         No         Yes   Yes   Yes
 odml                 Flag            No         No         Yes   Yes   Yes
 noencodedups         Flag            No         No         No    Yes   Yes
 encodedups           Flag            No         No         No    Yes   Yes
 noautoexpand         Flag            No         No         No    Yes   Yes
 autoexpand           Flag            No         No         No    Yes   Yes
 vobsuboutid          String          No         No         Yes   Yes   Yes
 vobsuboutindex       Integer         0          31         Yes   Yes   Yes
 vobsubout            String          No         No         Yes   Yes   Yes
 passlogfile          String          No         No         Yes   Yes   Yes
 pass                 Print           No         No         No    Yes   No 
 force-avi-aspect     Float           0          3          Yes   Yes   Yes
 ffourcc              String          No         No         Yes   Yes   Yes
 fafmttag             Integer         No         No         Yes   Yes   Yes
 of:help              Print           No         No         No    Yes   No 
 of:rawaudio          Flag            No         No         No    Yes   Yes
 of:rawvideo          Flag            No         No         No    Yes   Yes
 of:lavf              Flag            No         No         No    Yes   Yes
 of:mpeg              Flag            No         No         No    Yes   Yes
 of:avi               Flag            No         No         No    Yes   Yes
 ovc:help             Print           No         No         No    Yes   No 
 ovc:x264             Flag            No         No         No    Yes   Yes
 ovc:nuv              Flag            No         No         No    Yes   Yes
 ovc:qtvideo          Flag            No         No         No    Yes   Yes
 ovc:xvid             Flag            No         No         No    Yes   Yes
 ovc:libdv            Flag            No         No         No    Yes   Yes
 ovc:vfw              Flag            No         No         No    Yes   Yes
 ovc:raw              Flag            No         No         No    Yes   Yes
 ovc:lavc             Flag            No         No         No    Yes   Yes
 ovc:frameno          Flag            No         No         No    Yes   Yes
 ovc:copy             Flag            No         No         No    Yes   Yes
 oac:help             Print           No         No         No    Yes   No 
 oac:faac             Flag            No         No         No    Yes   Yes
 oac:twolame          Flag            No         No         No    Yes   Yes
 oac:toolame          Print           No         No         No    Yes   No 
 oac:lavc             Flag            No         No         No    Yes   Yes
 oac:mp3lame          Flag            No         No         No    Yes   Yes
 oac:pcm              Flag            No         No         No    Yes   Yes
 oac:copy             Flag            No         No         No    Yes   Yes
 xsize                Print           No         No         No    Yes   No 
 x                    Print           No         No         No    Yes   No 
 audio-delay          Float           No         No         Yes   Yes   Yes
 audio-preload        Float           0          2          Yes   Yes   Yes
 audio-density        Integer         1          50         Yes   Yes   Yes
 noskip               Flag            No         No         No    Yes   Yes
 noskiplimit          Flag            No         No         No    Yes   Yes
 skiplimit            Integer         No         No         No    Yes   Yes
 o                    String          No         No         Yes   Yes   Yes
 ofps                 Float           0          No         Yes   Yes   Yes
 nohr-edl-seek        Flag            No         No         No    Yes   Yes
 hr-edl-seek          Flag            No         No         No    Yes   Yes
 frameno-file         String          No         No         Yes   Yes   Yes
 list-options         Print           No         No         No    Yes   No 
 show-profile         Print           No         No         No    Yes   No 
 profile              String list     No         No         No    Yes   Yes

Total: 606 options


Utilisation et Encodage vidéo avec mencoder


Considérons la conversion d'un fichier .ts (Format vidéo d'enregistrement sur FreeBox). Remplacer .ts par votre format de fichier (wmv,mpeg, ...).
Vous pouvez modifier la valeur de vbitrate pour diminuer la taille du fichier obtenu (vous perderez en qualité ...).



Télécharger le code

Obtenir les informations sur un fichier vidéo


Commande:

mplayer -identify in.avi -ao null -vo null -frames 0 2> /dev/null | grep ^ID_ | sort -u

Résultat de la commande:

ID_AUDIO_BITRATE=0
ID_AUDIO_BITRATE=80024
ID_AUDIO_CODEC=ffwmav2
ID_AUDIO_FORMAT=353
ID_AUDIO_ID=1
ID_AUDIO_NCH=0
ID_AUDIO_NCH=2
ID_AUDIO_RATE=0
ID_AUDIO_RATE=44100
ID_CLIP_INFO_N=4
ID_CLIP_INFO_NAME0=name
ID_CLIP_INFO_NAME1=author
ID_CLIP_INFO_NAME2=copyright
ID_CLIP_INFO_NAME3=comments
ID_CLIP_INFO_VALUE0=Heroglyph V2.5
ID_CLIP_INFO_VALUE1=DECLIC VIDEO
ID_CLIP_INFO_VALUE2= DECLIC VIDEO
ID_CLIP_INFO_VALUE3=Here is what I done with Heroglyph V2.5 in few minutes !!
ID_DEMUXER=asf
ID_FILENAME=hero25.wmv
ID_LENGTH=46.00
ID_VIDEO_ASPECT=0.0000
ID_VIDEO_BITRATE=247048
ID_VIDEO_CODEC=ffwmv3
ID_VIDEO_FORMAT=WMV3
ID_VIDEO_FPS=1000.000
ID_VIDEO_HEIGHT=288
ID_VIDEO_ID=2
ID_VIDEO_WIDTH=360


Il existe plusieurs logicil sous Windows (Et plus encore sous Linux) qui permettent d'obtenir des informations sur un fichier Vidéo.

Ci-dessous, l'exemple du logiciel mediainfo:



Télécharger le code

Conversion en mpeg4 avec codec de la famille lavc


Commande:

mencoder -oac mp3lame -lameopts cbr=128 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1000:aspect=16/9 Final-Rolland.ts -o Finale-Roland.avi

Télécharger le code

Conversion en divx avec codec xvid


Commande:

mencoder -ffourcc XVID -oac mp3lame -lameopts cbr=128 -ovc lavc -lavcopts vbitrate=1000:aspect=16/9 -of avi -srate 48000 -af lavcresample=48000 -fps 25 -ofps 25 -o Final-Rolland.avi Final-Rolland.ts

Télécharger le code

Encodage de qualité supérieur en 2 passes avec codec X264 (HD)


Commande:

in=original.ts
outputfile=fichier.x264.avi
bitrate=2048
mencoder "$in" -o /dev/null -ovc x264 -x264encopts "bitrate=$bitrate:frameref=8:mixed_refs:bframes=3:b_adapt:b_pyramid:weight_b:partitions=all:8x8dct:me=hex:subq=5:trellis=2:threads=auto:pass=1" -vf pp=li -nosound 
mencoder "$in" -o $outputfile -ovc x264 -x264encopts "bitrate=$bitrate:frameref=8:mixed_refs:bframes=3:b_adapt:b_pyramid:weight_b:partitions=all:8x8dct:me=hex:subq=5:trellis=2:threads=auto:pass=2"  -vf pp=li -oac mp3lame -lameopts cbr=192


Utilisation des profiles avec mencoder


Les lignes de commandes mencoder sont souvent super relou !!!
Heuresement, il existe un moyen simple de contourner cela : Les profiles

Télécharger le code

Example de profile mencoder (copier les lignes suivantes dans le fichier .conf de mencoder):


[mpeg4]
profile-desc="MPEG4 encoding"
ovc=lacv=yes
lavcopts=vcodec=mpeg4:vbitrate=1200
[mpeg4-hq]
profile-desc="HQ MPEG4 encoding"
profile=mpeg4

[HD1]
ovc=x264
x264encopts=bitrate=$bitrate:frameref=8:mixed_refs:bframes=3:b_adapt:b_pyramid:weight_b:partitions=all:8x8dct:me=hex:subq=5:trellis=2:threads=auto:pass=1
oac=nosound
o=/dev/null
vf=pp=li

 
[HD2]
ovc=x264
x264encopts=bitrate=3000:frameref=8:mixed_refs:bframes=3:b_adapt:b_pyramid:weight_b:partitions=all:8x8dct:me=hex:subq=5:trellis=2:threads=auto:pass=2
oac=mp3lame
lameopts=cbr:br=192
vf=pp=li
 
[NOHD]
ovc=xvid
xvidopts=bitrate=1000:trellis:me_quality=6:vhq=2
oac=mp3lame
lameopts=br=192:aq=0

Télécharger le code

Reste plus qu'a lancer:


Commande:

mencoder.exe -profile=HD1 FichierSource.WMV 
mencoder.exe -profile=HD2 FichierSource.WMV -o FichierDest.AVI

ou encore

mencoder -profile=mpeg4-hq toto.wmv -o toto.mpg
mencoder -show-profile

Décalage son et vidéo


L'option -audio-delay , retarde le son ou la vidéo en définissant le champ délai.

Par exemple, si une vidéo est jouée correctement par mplayer avec -delay 0.2, alors vous pouvez corriger la vidéo avec MEncoder avec -audio-delay -0.2 (Noter bien l'opposé 0.2 et -0.2 !!!)

Pour le moment, cette option ne fonctionne qu'avec le multiplexeur par défaut (-of avi).

Si vous utilisez un multiplexeur différent, alors vous devez utiliser -delay à la place.

On recherche d'abord le décalage son/vidéo avec mplayer (délai en secondes):

mplayer -delay -0.2 mavideo.avi

Procédé par dichotomie pour trouver la bonne valeur du décalage. Ensuite, il suffit de lancer la commande mencoder pour supprimer le décalage son/vidéo :

mencoder -of avi -oac copy -ovc copy -audio-delay 0.2 mavideo.avi -o mavideo_ok.avi


© Copyright 2009 , Inc. All Rights Reserved.