A simple Linux DVD HOWTO in a command line

Merging two or more AVI videos streams

If you have two .avi files, so it’s a good idea to merge them. It makes live easier if you’ve got a single file.

avimerge -i my_video_1 my_video_2.avi -o my_input_video.avi


Coverting

Now comes the converting itself. “crop=455:256::” means cutting off the left and right edge. The two colons are empty. A default for center/center is assumed then. The calculation for the aperture is done by multiplying 256(y-res) * 1,77 (16/9 aspect) = 455 (x-res):

mencoder -oac lavc
-ovc lavc
-of mpeg
-mpegopts format=dvd -vf crop=455:256::,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:
threads=4:
acodec=ac3:abitrate=192 -ofps 25
-o my_output_video.mpg my_input_video.avi


DVD creation

Create a XML file with this content: dvd.xml

<dvdauthor>
<vmgm />
<titleset>
<titles>
<video format="pal" aspect="16:9"/>
<audio format="ac3" lang="de"/>
<pgc>
<vob file="my_output_video.mpg"/>
</pgc>
</titles>
</titleset>
</dvdauthor>

Then perform this command:

dvdauthor -o dvd -x dvd.xml


Testing

mplayer dvd:// -dvd-device ./dvd


Writing to DVD-RW

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

Troubleshooting:
If the burned image fails playing in a DVD player, you could just try to burn with a low speed factor.

growisofs -dvd-compat -Z /dev/dvdrw -dvd-video ./dvd/ -speed=1

Additional information (e.g. speed) about your DVD media and drive can be retrieved with this command:

dvd+rw-mediainfo /dev/dvd