![]()
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: linux, ubuntu, dvd, burn dvd, burn dvd in linux, tovid, avi, mpg















January 30th, 2007 at 2:45 pm
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
February 20th, 2007 at 9:25 pm
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.
February 20th, 2007 at 9:33 pm
Small typo in my previous post: should be “their” instead of “there.”
February 20th, 2007 at 9:51 pm
Ack. Thanks Doug for pointing that out. Got it fixed now!
March 31st, 2007 at 5:29 am
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
April 2nd, 2007 at 12:18 pm
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
July 31st, 2007 at 7:05 am
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.
October 29th, 2007 at 12:01 pm
June 19th, 2008 at 4:49 am
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
March 30th, 2009 at 7:18 am
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
December 10th, 2009 at 3:57 am
How to burn dvd?here is an answer.