RSS

How to burn a DVD in Ubuntu linux (and other distros)

Tue, Aug 8, 2006

ArsGeek, Just Plain Geek, Linux, Ubuntu

Talk about it in our Forums

I(heart)DVD

Recently we looked at how to join multiple avi or mpg files together. Now let’s look at how to get these files onto a DVD so you can bring it to your friend’s house and impress them with just how geeky you are, you Ubuntu fiend you.

 

To do this, you’ll need a neat little tool called tovid (pronounced Too Vid).

 

First, go here and make sure that you have all of the dependencies required. This is easier than it sounds. Simply open Synaptic and do a search for each dependency. You’ll want to get all of the core and all of the recommended.

 

Now that you have all that, go here and download the Tovid .deb file made especially for Ubuntu.

 

You can download this to your desktop, and simply double click on it to start the install process. Read on once this is installed, because we’re going to journey into command line interface (CLI) land.

 

The Ubuntu Forums have an excellent guide to using tovid’s GUI here however you’ll find you have a bunch more flexibility using CLI.

 

Going back to our previous example, say you have all of the Bloodspell files (all 7 of them) and you want to convert the .avi files into something usable for building a DVD and then make the DVD. Some popcorn and a soda would be nice too, but Linux can’t make everything.

 

First, let’s create a folder on your desktop, called “build-dvd” and another called “burn-dvd”.

 

Move the Bloodspell .avi files into the build-dvd directory. Rename them to something short, like b1.avi - b7.avi. Then open up a terminal session and type the following:

 

cd Desktop/build-dvd

 

Now you’re in the folder with the .avi files. Let’s convert them to a usable .mpg format.

 

tovid -in b1.avi -out bloodspell_1

 

This can take a little bit of time, so go get a cup of joe or a nice spot of tea. When this process finishes, repeat it for all the files you want to convert. For sanities sake in this guide, we’ll do just two of the Bloodspell episodes.

 

If you’ve decided to read ahead a bit, good for you! Let’s make the dvd menu while we’re waiting for those files to be converted.

 

Move into the burn-dvd folder:

 

cd ~/Desktop/burn-dvd

 

Now that you’re here, enter in the following command:

 

makemenu “Bloodspell Episode 1″ “Bloodspell Episode 2″ -out bsdvd

 

This command uses the makemenu script to create a menue with the two entries in quotes, and then tells it what file to output too. When finished you should have a bsdvd.mpg file in your burn-dvd directory.

 

Now we really have to wait until tovid has generated our .mpg files fom the .avi files. Once this is done, read on.

 

Got the files? Good, move them into the burn-dvd folder:

 

cp blood*.mpg ../burn-dvd/

 

Now you should have your two bloodspell .mpgs and the menu in the burn-dvd folder.

 

Now let’s create the structure of the disk. The script we’ll use to actually burn the dvd automates a whole bunch of things, but it needs a .xml file to tell it what to do. Don’t know XML? Well good thing you’re reading this! We’ll use the makexml script to do it for us. Ready?

 

makexml -menu bsdvd.mpg bloodspell_1 mpg bloodspell_2.mpg -out BloodSpell

 

The first mpg file is the menu we created earlier. The next two mpg files are the bulk of the DVD and the last bit, “BloodSpell” will be the name of the .xml file this script will generate.

 

Got it? Good. Now let’s burn the silly thing.

 

makedvd -burn BloodSpell.xml

 

Make sure you have a blank DVD in the drive while you do this.

 

There are lots of other options available as well, such as including an audio track and animated menus and whatnot. You can use man makemenu for more info (same goes for the other scripts) or go here
for all of the man pages online. This tutorial is just to get you started.

 

Hope you found it helpful!

 

geek out.

 

Technorati Tags: , , , , , , ,

 

Click the icon, share the link:
  • Digg
  • del.icio.us
  • MisterWong
  • Furl
  • Reddit
  • Technorati
  • BlinkList
  • feedmelinks
  • PopCurrent
  • Blogosphere News
  • Facebook
  • Fark
  • Mixx
  • Slashdot

This post was written by:

arsgeek - who has written 1980 posts on ArsGeek.


Contact the author

11 Comments For This Post

  1. arsgeek Says:

    Note, if you’re having trouble with Tovid under Edgy (Syntax error 299 or some such thing) see this article for the fix.

    http://www.ubuntuforums.org/showthread.php?t=183936&page=22

  2. Doug Beatty Says:

    This was really helpful. Thanks! There’s a small typo: the command “makexlml” in the instructions should be “makexml.” I think most people would figure that out pretty quickly on there own, but I just thought I would let you know.

  3. Doug Beatty Says:

    Small typo in my previous post: should be “their” instead of “there.”

  4. arsgeek Says:

    Ack. Thanks Doug for pointing that out. Got it fixed now!

  5. Robert Says:

    Hi Great Post… I think I almost got it…. After entering the burn command it went through a process and I got this:

    Please insert a blank DVD+/-R(W) disc into your DVD-recorder
    (/dev/dvdrw) if you have not already done so.
    Couldn’t find /dev/dvdrw! Are you sure your burner is /dev/dvdrw? Specify your
    burner with ‘-device /path/to/burner’.
    Stopping here.

    My dvd is on dev/hdc

    any help would be appreciate.

    Rob

  6. Robert Says:

    Ok I found the answer for me anyway…..
    the following is what I typed in where the xoxoxo is the name of the .xml file and of course meg would be replaced with the name of your place. I did try to be in the burn-dvd directory but it did not work until I typed in the actual path. Hope this helps someone else through the frustration

    makedvd -burn -device /dev/hdc /home/meg/Desktop/burn-dvd/xoxoxo.xml

  7. Robert 2 Says:

    Thanks for this tovid HOW-TO. The ‘Feisty’ tovid GUI still needs work, but this article set me on the correct path; so I dump the GUI and just go with the CLI.

  8. Nicolas Says:

  9. joey Says:

    i did what robert said on post #11… it finally quit giving me errors and now i see my external dvd on my dell latitude D410 actually light up… maybe its working?
    i’ll know when my nephew goes to watch this kung-fu panda flic on his not-so-codec friendly dvd player… thanks robert :|

  10. merso Says:

    I know a Mac DVD Creator,which is the perfect solution for Mac computer users to burn videos including AVI, MOV, FLV(YouTube video, Google video,etc), TS, TP, TRP, MP4, MPG, MPEG, VOB, 3GP, and DAT to video DVDs. It has very high output quality and provides users with a customizable DVD menu.
    http://apple-idvd.blogspot.com/2009/03/how-to-burn-video-to-dvd-on-mac.html

  11. burn dvd Says:

    How to burn dvd?here is an answer.

5 Trackbacks For This Post

  1. natech » Blog Archive » various how tos in ubuntu Says:

    [...] How to burn a DVD in Ubuntu linux (and other distros) [...]

  2. ArsGeek :: How to edit several AVI (or mpeg) files joined together Says:

    [...] Previously we looked at how to join several AVI files together, and then how to burn them to a DVD. [...]

  3. How to burn a DVD in Ubuntu linux (and other distros) : Tech Tips Says:

    [...] How to burn a DVD in Ubuntu linux (and other distros) [...]

  4. ArsGeek :: How to mount ISOs using a Nautilus script Says:

    [...] Animacide over at the Ubuntu Forums has posted a great set of scripts to mount/unmount ISO files. This ties in great with my previous articles on doing things with DVDs. Now you can easily mount the ISO file and check it before burning it. [...]

  5. tech.twomadgeeks.com » Blog Archive » How to burn a DVD in Ubuntu Linux Says:

    [...] Link: ArsGeek [...]

Leave a Reply