Create a movie DVD

This time we will show you how to create a movie DVD (from your collection of home videos, for example) that is playable on most set-top DVD players, using the mkdvd script.

Mkdvd is a great script that makes it easy to burn your movies to DVD, automating the entire process of constructing a DVD and burning it. The script uses MPlayer to convert any movie format supported by MPlayer (visit www.mplayerhq.hu/homepage/design6/info.html to find out what is supported) to the proper size and format required for DVD. Once converted, mkdvd will construct a simple menu containing the contents for the DVD and build a DVD image. Mkdvd can even take care of the burning of the DVD to either DVD-R/RW or DVD+R/RW media.

Installation

The mkdvd script relies on the following programs to build a DVD: Libdvdread (www.dtek.chalmers.se/groups/dvd/downloads.shtml), DVDAuthor (http://dvdauthor.sourceforge.net), Toolame (http://mikecheng.d2.net.au), Sox (http://sox.sourceforge.net), MJPEGTools (http://mjpeg.sourceforge.net), and MPlayer (www.mplayerhq.hu/homepage/design6/news.html). Download and install each of these programs in the order they are listed. Except for Toolame and MPlayer, the programs can be installed by untaring the source code and typing the following in a shell as root:

$ ./configure
$ make
$ make install


To install Toolame, untar the source code and type the following in a shell as root:

$ make
$ cp toolame /usr/local/bin


Detailed install instructions for MPlayer are available at www.mplayerhq.hu/DOCS/HTML/en/install.html.

Mkdvd is written in the Pike scripting language (http://pike.ida.liu.se) and requires the Pike interpreter to be installed on your computer. To install Pike, in a shell as root type:

$ sh Pike-v7.4.28-Linux-x86-i686.sh

To install mkdvd, copy the file to your hard disk and in a shell as root type:

$ gunzip mkdvd.pike.gz
$ mv mkdvd.pike /usr/local/bin
$ chmod +x /usr/local/bin/mkdvd.pike


To test that mkdvd is installed and working correctly, type mkdvd.pike in a shell. If the script has been installed correctly you will see a list of all the command line options supported by the script.

Burning DVDs

Now that mkdvd is installed, you are ready to burn a DVD! In this section we’ll use the example of a 60-minute home movie recorded onto your computer as a single movie file.

Before burning a DVD with a video of this length, it is a good idea to break the video into shorter chapters. This will allow you to select each scene from a menu and to navigate the DVD easily when you watch it later. Video editing applications such as Kino (http://kino.schirmacher.de) are relatively easy to use. Save each chapter as an individual movie file.

Once the movie is divided into chapters, you should have a collection of files on your hard disk, named, for example, mymovie-1.mpg, mymovie-2.mpg and mymovie-3.mpg. To create a DVD from these three movie files and burn it to DVD- media, type the following:

$ mkdvd.pike -b mymovie-1.mpg mymovie-2.mpg mymovie-3.mpg

If you use DVD+ media, use the following command instead:

$ mkdvd.pike -+ mymovie-1.mpg mymovie-2.mpg mymovie-3.mpg

The DVD created with the above command will contain a simple menu allowing you to select mymovie-1.mpg as chapter 1, mymovie-2.mpg as chapter 2 and mymovie-3.mpg as chapter 3.

Mkdvd can also generate an .iso image as an alternative to burning directly to DVD. The file, named dvd.iso, is an image of a DVD and can be burned to DVD later using either cdrecord-ProDVD or DVD+R/RW Tools. To create a .iso image, use the command:

$ mkdvd.pike --iso <movie file>

It may take some time to prepare the movie file for burning as it will probably need to be re-encoded to meet the specifications for DVD (for more information on the DVD specifications see www.dvdrhelp.com/dvd). This re-encoding process will require a large amount of temporary disk space: for example, our 60- minute movie needs approximately 2.5GB. Mkdvd will write a lot of progress information to the screen, so you can follow its status. Once it’s completed, you will be able to play the DVD using MPlayer, or insert the DVD into your set-top DVD player to play it back on your television.

The menu generated by mkdvd is very simple, so you might want to customise it when you create your DVD. To include a background image with the menu, include the switch “--image=<image file>” on the mkdvd command line. The image can be saved in most formats, such as JPG or GIF. You can change the default fonts used in the menu by including the switches “--menufont=&lr;path to font>” and “--menufontsize=<size>” on the command line. To specify a font, the full path to the font must be given. All of the fonts on your computer are most likely located under /usr/X11R6/lib/X11/fonts (as is the case for Red Hat Linux 9).

Join the PC World newsletter!

Error: Please check your email address.

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Alastair Cousins

PC World
Show Comments

Essentials

Lexar® JumpDrive® S57 USB 3.0 flash drive

Learn more >

Microsoft L5V-00027 Sculpt Ergonomic Keyboard Desktop

Learn more >

Mobile

Lexar® JumpDrive® S45 USB 3.0 flash drive 

Learn more >

Exec

Lexar® JumpDrive® C20c USB Type-C flash drive 

Learn more >

HD Pan/Tilt Wi-Fi Camera with Night Vision NC450

Learn more >

Lexar® Professional 1800x microSDHC™/microSDXC™ UHS-II cards 

Learn more >

Audio-Technica ATH-ANC70 Noise Cancelling Headphones

Learn more >

Budget

Back To Business Guide

Click for more ›

Most Popular Reviews

Latest News Articles

Resources

PCW Evaluation Team

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Ed Dawson

HP OfficeJet Pro 8730

As a freelance writer who is always on the go, I like my technology to be both efficient and effective so I can do my job well. The HP OfficeJet Pro 8730 Inkjet Printer ticks all the boxes in terms of form factor, performance and user interface.

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Aysha Strobbe

Windows 10 / HP Spectre x360

Ultimately, I think the Windows 10 environment is excellent for me as it caters for so many different uses. The inclusion of the Xbox app is also great for when you need some downtime too!

Mark Escubio

Windows 10 / Lenovo Yoga 910

For me, the Xbox Play Anywhere is a great new feature as it allows you to play your current Xbox games with higher resolutions and better graphics without forking out extra cash for another copy. Although available titles are still scarce, but I’m sure it will grow in time.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?