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

Today 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…

Comments

  1. Jake says:

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

  2. Jake says:

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

  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. 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

  5. E-man says:

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

  6. E-man says:

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

  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. 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! 🙂

  9. kasinathrao says:

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

  10. kasinathrao says:

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

Give me your feedback

This site uses Akismet to reduce spam. Learn how your comment data is processed.