Sunday, 21 September 2008

Mov/Divx/Xvid/Wmv/Etc to DVD (PAL or NTSC)

A Guide To: Making DVDs from Various Video Formats

First up we need to make sure we have correct tools install by opening the terminal and typing the following;

$ sudo apt-get install mencoder ffmpeg dvdauthor mkisofs

now wait for the tools to install.

Step 1: Convert Media to .AVI (Go to the next step, if the file you wish to convert is already in the .avi format)

In this step we will transcode your media into .avi format so that it is accepted by ffmpeg, by going to the folder your videos in on the terminal eg; $ cd /home/YOU/Videos then enter the following into the terminal;

$ mencoder YourMovieHere -ovc xvid -xvidencopts pass=1 -oac mp3lame -lameopts vbr=3 -o /dev/null

Replacing YourMovieHere in the line with your video file's name and wait for that to finish.

Next up we type into the terminal

$ mencoder YourMovie -ovc xvid -xvidencopts pass=2:bitrate=1000 -oac mp3lame -lameopts vbr=3 -o output.avi

Changing YourMovie to your movies name in that line.

Step Two: Convert the .avi file to a .mpg file

Right, now that you have a file that ffmpeg will accept, enter one of the following depending on the type of DVD your making into the terminal to transcode the file into a compliant .mpg file.

$ ffmpeg -i output.avi -target pal-dvd final.mpg

Or If your DVD player uses ntsc then replace the 'pal' to 'ntsc'. Or if you want you can type:

$ ffmpeg -i output.avi -target pal-dvd -aspect 16:9 final.mpg

This will make the aspect ratio 16:9, see what works for you.

Now wait and youll have your final.mpg file ready after this.

Step 3: Create the DVD file structure

In the terminal enter;

$ dvdauthor -o DVD/ -t final.mpg

wait for that to finish then enter;

$ dvdauthor -o DVD/ -T

Now we have our dvd stucture in the folder named dvd.

Step 4: Create The .ISO File

In the terminal type;

$ mkisofs -dvd-video -v -o DVD.iso DVD

and this will leave us with our file name DVD.iso which is ready to be burned to a disk, You can do that by simply entering a blank DVD into your DVD drive and right clicking on the DVD.iso image and selecting "Write To Disk" from the drop down menu.