Tuesday, February 9, 2010

Bookmark and Share

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

May 31, 2009 by Ivan  
Filed under Ubuntu

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…

Bookmark and Share

Related Post(s)

Comments

9 Responses to “[Tutorial] Convert Xvid or Avi to DVD Format in Ubuntu”
  1. Jake says:

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

  2. Ivan says:

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

  3. merso says:

    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.html#131

  4. Ivan says:

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

  5. E-man says:

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

  6. Ivan says:

    What directory you find for?

  7. oceanman says:

    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! :)

  8. kasinathrao says:

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

Trackbacks

Check out what others are saying about this post...
  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 [...]



Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!