Difference between revisions of "Convert any video to DVD"

From Maze's wiki
Jump to: navigation, search
Line 34: Line 34:
 
Convert to DVD:
 
Convert to DVD:
 
<pre>
 
<pre>
 +
export VIDEO_FORMAT=PAL
 
dvdauthor -o dvd -x dvd.xml
 
dvdauthor -o dvd -x dvd.xml
 
</pre>
 
</pre>

Revision as of 09:51, 27 February 2011

Check format of the file:

mplayer -vo dummy -ao dummy -identify your_video.avi 2>&1 | grep AUDIO_FORMAT | cut -d '=' -f 2

if format is AC3:

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

if not:

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

create dvd structure in dvd.xml:

<dvdauthor>
  <vmgm />
    <titleset>
      <titles>
        <pgc>
          <vob file="your_video.mpg" />
        </pgc>
      </titles>
    </titleset>
</dvdauthor>

Convert to DVD:

export VIDEO_FORMAT=PAL
dvdauthor -o dvd -x dvd.xml

Burn to Disc

growisofs -dvd-compat -Z /dev/sr0 -dvd-video ./dvd/