[Tutorial] Convert Xvid or Avi to DVD Format in Ubuntu

Sunday May 31, 2009 by  

Ubuntu LogoToday i want to backup all my tutorial videos into DVDs, but the problem is all my videos are not in DVD format. Some are .avi, .flv, .mov and these type of file cannot be convert to DVD video. You need to convert them to .mpg format first then compile to DVD format.

First you need to install these tools:
1. mencoder
2. ffmpeg
If you don’t have that yet, you can install with this command:

 sudo apt-get install mencoder ffmpeg

If you already have then continue with this step:
1. Convert media to .avi format (if your file already in .avi, then continue to next step):

mencoder (inputfile) -ovc xvid -xvidencopts pass=1 -oac mp3lame -lameopts vbr=3 -o /dev/null

After which type:

mencoder (inputfile) -ovc xvid -xvidencopts pass=2:bitrate=1000 -oac mp3lame -lameopts vbr=3 -o (outputfile)

If you like to add subtitle use this command:

mencoder (inputfile) -sub  -ovc xvid -xvidencopts pass=2:bitrate=1000 -oac mp3lame -lameopts vbr=3 -o (outputfile)

2. Up to this step i assume you already have .avi file format. Then continue to convert to .mpg file:

ffmpeg -i (inputfile) -target pal-dvd final.mpg

If your DVD player uses ntsc then replace the ‘pal’ to ‘ntsc’. example:

ffmpeg -i (inputfile) -target ntsc-dvd final.mpg

Or if you want you can type:

ffmpeg -i (inputfile) -target pal-dvd -aspect 16:9 final.mpg


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

Now you already have .mpg file, later i will show you how to make the DVD Video with this file.

Have a nice day…

What people search:

Other Interesting Articles:

Post comment as twitter logo facebook logo
Sort: Newest | Oldest

i want to convert all net movie formats to dvd player format

i want to convert all net movie formats to dvd player format

Why on EARTH would I want to type all those commands in. I would prefer just to drag and drop ANY video format onto a window and hit convert....

and out should pop (not 3 hours later like with DeVeDe on my core2duo either) anice iso image or perhaps it should even burn it to dvd for me.. deleting whatever is on the dvd if necessary.

When you have a solution like that post it please! :)

Why on EARTH would I want to type all those commands in. I would prefer just to drag and drop ANY video format onto a window and hit convert....

and out should pop (not 3 hours later like with DeVeDe on my core2duo either) anice iso image or perhaps it should even burn it to dvd for me.. deleting whatever is on the dvd if necessary.

When you have a solution like that post it please! :)

ok i instaled the program but im haveing problems finding the directory for my videos

What directory you find for?

ok i instaled the program but im haveing problems finding the directory for my videos

Good article for the users who want to convert avi to dvd,I know a Mac DVD Creator can perfectly convert and burn avi files to dvd on Mac,you may go to have a try:
http://www.mac-dvd-software.com/mac-dvd-creator.ht...

Unfortunately i don't have a mac...
To expensive for me...
But thanks for the information.

Good article for the users who want to convert avi to dvd,I know a Mac DVD Creator can perfectly convert and burn avi files to dvd on Mac,you may go to have a try:
http://www.mac-dvd-software.com/mac-dvd-creator.ht...

Unfortunately i don't have a mac...
To expensive for me...
But thanks for the information.

Have you tried DeVeDe ??? It's in the repositories.

Hi Jake,
i haven't try it. I installed it and so far so good.
Thanks for the tips :)

Have you tried DeVeDe ??? It's in the repositories.

Hi Jake,
i haven't try it. I installed it and so far so good.
Thanks for the tips :)

Trackbacks

  1. [...] 1, 2009 · Print This Article From the last post, i assume you already have file(s) in .mpg format. Now let’s continue to make a dvd video [...]