Barra laterale

multimedia:creare_dvd_con_mencoder

Creare DVD con mencoder

Autore: Fabio Di Matteo
Ultima revisione: 28/09/2007

Considerando come file di input il file movie.avi e come file di output il file movie.mpg.
Ulteriori info

DVD PAL

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
  -vf scale=720:576,harddup -srate 48000 -af lavcresample=48000 \
  -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=4/3 -ofps 25 \
  -o movie.mpg movie.avi

Creare la struttura del dvd

Per ottenere la struttura del DVD abbiamo bisogno di Dvdauthor . Creiamo un file di nome schemadvd.xml e scriviamoci dentro quanto segue:

<dvdauthor dest="dvd/" >
 <vmgm/>
 <titleset>
  <titles>
   <video format="pal" aspect="4:3" resolution="720x576" />
   <audio lang="en" />
   <pgc pause="0" >
    <vob file="movie.vob" pause="0" />
    <post> { g2 = 0; call vmgm menu entry title; } </post>
   </pgc>
  </titles>
 </titleset>
</dvdauthor>

Dove nella prima riga specifichiamo la directory di destinazione e nella seconda specifichiamo l'indirizzo del file video già codificato per il DVD-VIDEO.

dopodiche lanciamo :

dvdauthor -x schemadvd.xml

Se abbiamo più di un file mpeg2 invece...

<dvdauthor dest="dvd/" >
 <vmgm/>
 <titleset>
  <titles>
   <video format="pal" aspect="4:3" resolution="720x576" />
   <audio lang="en" />
   <pgc pause="0" >
    	<vob file="movie1.mpg" pause="0" />
	<vob file="movie2.mpg" pause="0" />
	<vob file="movie3.mpg" pause="0" />
	<vob file="movie4.mpg" pause="0" />
    <post> { g2 = 0; call vmgm menu entry title; } </post>
    </pgc>
  </titles>
 </titleset>
</dvdauthor>

dopodiche lanciamo :

dvdauthor -x schemadvd.xml

DVD NTSC

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
  -vf scale=720:480,harddup -srate 48000 -af lavcresample=48000 \
  -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=18:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9 -ofps 30000/1001 \
  -o movie.mpg movie.avi

DVD PAL se l'audio del nostro file è già AC3

mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
  -vf scale=720:576,harddup -ofps 25 \
  -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=15:vstrict=0:aspect=16/9 -o movie.mpg movie.avi

DVD NTSC se l'audio del nostro file è già AC3

mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf:telecine \
  -vf scale=720:480,harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:\
  vrc_maxrate=9800:vbitrate=5000:keyint=15:vstrict=0:aspect=16/9 -ofps 24000/1001 \
  -o movie.mpg movie.avi

SVCD PAL

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xsvcd -vf \
    scale=480:576,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
    vcodec=mpeg2video:mbd=2:keyint=15:vrc_buf_size=917:vrc_minrate=600:\
vbitrate=2500:vrc_maxrate=2500:acodec=mp2:abitrate=224 -ofps 25 \
    -o movie.mpg movie.avi

SVCD NTSC

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xsvcd  -vf \
    scale=480:480,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
    vcodec=mpeg2video:mbd=2:keyint=18:vrc_buf_size=917:vrc_minrate=600:\
vbitrate=2500:vrc_maxrate=2500:acodec=mp2:abitrate=224 -ofps 30000/1001 \
    -o movie.mpg movie.avi

PAL VCD

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
    scale=352:288,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
    vcodec=mpeg1video:keyint=15:vrc_buf_size=327:vrc_minrate=1152:\
vbitrate=1152:vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 25 \
    -o movie.mpg movie.avi

NTSC VCD

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
    scale=352:240,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
    vcodec=mpeg1video:keyint=18:vrc_buf_size=327:vrc_minrate=1152:\
vbitrate=1152:vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 30000/1001 \
    -o movie.mpg movie.avi

multimedia/creare_dvd_con_mencoder.txt · Ultima modifica: 18/04/2018 - 15:47 (modifica esterna)