Accueil > Articles > Rip DVD et Encodage DIVX avec MPlayer/MEncoder
Rip DVD et Encodage DIVX avec MPlayer/MEncoder
jeudi 20 mars 2008, par
Prérequis
Le présent article utilise le script shell "dvdrip" que j’ai développé pour cette tache. Celui-ci s’appui sur MPlayer et son compère MEncoder pour tout le travail.
Le script utilise des options qui commence par ’—’. Des options supplémentaires pour mplayer/mencoder peuvent aussi être ajoutées (ces options commence par un simple caractère ’-’).
Usage du script ’dvdrip’
Usage: dvdrip [OPTIONS]...
dvdrip Options:
-h display this help and exit
Generic parameters:
--dvd=NUM select DVD title to encode [1]
--inm=FILE use FILE* as input stream to encode []
--in=FILE use FILE as input to encode []
--out=FILE use FILE as output file [title1]
--log=FILE redirect mencoder output to FILE [off]
--check check for crop detection with mplayer
--dump dump full audio/video/sub stream to file [title1.vob]
Audio and Sub-title parameters:
--mp3 downmix and reencode audio to mp3 [off]
--abr=VALUE use specified value for bitrate [128]
--am=VALUE change encoding mode (0=st, 1=js, 2=dc, 3=mono)
--sub=sid extract vob subtitle []
--ac3=aid extract additionnal sound track
Video parameters:
--codec=<lavc|x264|xvid> select codec used to encode [lavc]
--mode=<two|one|vbr> select encoding mode [two]
--preview generate preview [off]
--fast real-time no HQ encoding [off]
--copts=<opt>[:opt] codec additionnal options []
--vbr=VALUE use specified value for bitrate (mode one/two) [1500]
--vqs=VALUE use specified value for constant quality (mode vbr) [2.5]
--deint deinterlace video [off]
--crop=X:Y:0X:0Y crop picture using these values [no crop]
--vf=FILTER add video filter to chain
Be carefull, order of --deint, --crop and --vf options are taken into account when
creating filter chain.
MEncoder Options:
-v output verbose information
-dvdangle select DVD angle to encode
-aid select audio stream by it's ID
-sid select subtitle by it's ID (use --sub instead to extract)
-quiet don't display status line
Copie du DVD et dechiffrage
Première étape, il faut copier le DVD sur le disque dur en supprimant le chiffrage CSS. MPlayer est utilisé pour cette tache via l’option "—dump" de dvdrip.
dvdrip --dvd=1 --out=titre1 --dump
Encodage DIVX
Après dump du titre à convertir, on relance "dvdrip" avec les options pour la conversion.
dvdrip --in=titre1.vob --out=titre1_divx --log=titre1.log --crop=720:432:72:0 --vf=hqdn3d
Conclusion
L’avantage de ce script shell est qu’il permet de scripter facilement la conversion de tous les titres du dvd.
Télécharge le script ici :
<<<