Convert any video to DVD
From Maze's wiki
Revision as of 19:12, 26 February 2011 by Admin (talk | contribs) (Created page with '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: <pre> encoder -oac copy -ovc lavc -of…')
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:
encoder -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:
dvdauthor -o dvd -x dvd.xml
Burn to Disc
growisofs -dvd-compat -Z /dev/sr0 -dvd-video ./dvd/