Linux Create / convert AVI file to DVD format ~ Create video DVDs

by on November 9, 2007 · 14 comments· LAST UPDATED January 28, 2008

in , ,

DeVeDe is a program or front-end to command line utilities to create video DVDs and CDs (VCD, sVCD or CVD), suitables for home players, from any number of video files, in any of the formats supported by Mplayer. The big advantage over other utilities is that it only needs Mplayer, Mencoder, DVDAuthor, VCDImager and MKisofs (well, and Python 2.4, PyGTK and PyGlade), so its dependencies are really small.

Install DeVeDe

Use apt-get command to install DeVeDe:
$ sudo apt-get install devede

To create dvds just type devede at command prompt:
$ devede &

You can also start devede by visiting Applications > Sound & Video > Devede

Linux Create AVI file to DVD format ( Create video DVDs )

Just choose the DVD / VCD type and follow on screen instructions.

Create DVD from command line

Following tools get installed with devede:

  1. mencoder : MPlayer’s Movie Encoder) is a simple movie encoder
  2. ffmpeg : FFmpeg video converter
  3. dvdauthor : assembles multiple mpeg program streams into a suitable DVD filesystem

So if you are a pro command line user, type the following commands to convert file1.avi fille2.avi to DVD format (if you are not comfortable with command line use devede GUI software and just skip following commands) :

$ cat file1.avi file2.avi > ccmovie.avi
Now run movie encoder to create out.avi from ccmovie.avi (option -ovc and -oac sets no encoding, just streamcopy)
$ mencoder -o out.avi -noidx -oac copy -ovc copy ccmovie.avi
Output:

MEncoder 2:1.0~rc1-0ubuntu13 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz (Family: 6, Model: 15, Stepping: 11)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0x385ceda
AVI file format detected.
VIDEO:  [MP42]  544x400  24bpp  29.970 fps  485.6 kbps (59.3 kbyte/s)
[V] filefmt:3  fourcc:0x3234504D  size:544x400  fps:29.97  ftime:=0.0334
videocodec: framecopy (544x400 24bpp fourcc=3234504d)
audiocodec: framecopy (format=55 chans=2 rate=44100 bits=0 B/s=16743 sample-0)
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing index...99f (100%)  0.00fps Trem:   0min  55mb  A-V:0.013 [474:133]
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Video stream:  474.111 kbit/s  (59263 B/s)  size: 45083566 bytes  760.727 secs  22799 frames
Audio stream:  133.948 kbit/s  (16743 B/s)  size: 12736975 bytes  760.712 secs

Next run FFmpeg video converter to set aspect ratio, ntsc dvd television standard etc:
$ ffmpeg -i out.avi -y -target ntsc-dvd -sameq -aspect 16:9 out.mpg
Output:

FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
  libavutil version: 1d.49.3.0
  libavcodec version: 1d.51.38.0
  libavformat version: 1d.51.10.0
  built on Jun  3 2007 20:59:25, gcc: 4.1.3 20070528 (prerelease) (Ubuntu 4.1.2-9ubuntu2)
Input #0, avi, from 'out.avi':
  Duration: 00:12:40.7, start: 0.000000, bitrate: 621 kb/s
  Stream #0.0: Video: msmpeg4v2, yuv420p, 544x400, 29.97 fps(r)
  Stream #0.1: Audio: mp3, 44100 Hz, stereo, 32 kb/s
Output #0, dvd, to 'out.mpg':
  Stream #0.0: Video: mpeg2video, yuv420p, 720x480, q=2-31, 6000 kb/s, 29.97 fps(c)
  Stream #0.1: Audio: ac3, 48000 Hz, stereo, 448 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=22798 q=0.0 Lsize=  312758kB time=760.7 bitrate=3368.3kbits/s 

At a high level, a DVD is a collection of menus and titles. Conceptually, a menu contains buttons which can be assigned actions and provides a list of choices to the end user, while a title contains the main content of the DVD. However, in reality many of the features available in menus (including buttons, pausing, and looping) are also available in titles. Use dvdauthor assembles multiple mpeg program streams into a suitable DVD filesystem. You should see DVD filesytem in dvd directory:
$ dvdauthor --title -o dvd -f out.mpg
Output:

DVDAuthor::dvdauthor, version 0.6.14.
Build options: gnugetopt magick iconv freetype
Send bugs to <dvdauthor-users@lists.sourceforge.net>
INFO: dvdauthor creating VTS
STAT: Picking VTS 01
STAT: Processing out.mpg...
STAT: VOBU 1888 at 304MB, 1 PGCS
INFO: Video pts = 0.500 .. 761.193
INFO: Audio[0] pts = 0.500 .. 761.204
STAT: VOBU 1900 at 305MB, 1 PGCS
INFO: Generating VTS with the following video attributes:
INFO: MPEG version: mpeg2
INFO: TV standard: ntsc
INFO: Aspect ratio: 16:9
INFO: Resolution: 720x480
INFO: Audio ch 0 format: ac3/2ch, 48khz drc
STAT: fixed 1900 VOBUS

Creates the table of contents file instead of a titleset:
$ dvdauthor -o dvd -T
Output:

DVDAuthor::dvdauthor, version 0.6.14.
Build options: gnugetopt magick iconv freetype
Send bugs to <dvdauthor-users@lists.sourceforge.net>
INFO: dvdauthor creating table of contents
INFO: Scanning dvd/VIDEO_TS/VTS_01_0.IFO

Create dvd.iso:
$ mkisofs -dvd-video -o dvd.iso dvd/
Output:

Setting input-charset to 'UTF-8' from locale.
  3.20% done, estimate finish Fri Nov  9 16:49:50 2007
  6.38% done, estimate finish Fri Nov  9 16:49:50 2007
  9.57% done, estimate finish Fri Nov  9 16:49:50 2007
 12.76% done, estimate finish Fri Nov  9 16:49:50 2007
 15.95% done, estimate finish Fri Nov  9 16:49:50 2007
 19.13% done, estimate finish Fri Nov  9 16:49:50 2007
 22.33% done, estimate finish Fri Nov  9 16:49:54 2007
 25.51% done, estimate finish Fri Nov  9 16:49:53 2007
 28.70% done, estimate finish Fri Nov  9 16:49:53 2007
 31.88% done, estimate finish Fri Nov  9 16:49:53 2007
 35.08% done, estimate finish Fri Nov  9 16:49:52 2007
 38.26% done, estimate finish Fri Nov  9 16:49:52 2007
 41.45% done, estimate finish Fri Nov  9 16:49:52 2007
 44.64% done, estimate finish Fri Nov  9 16:49:54 2007
 47.83% done, estimate finish Fri Nov  9 16:49:54 2007
 51.01% done, estimate finish Fri Nov  9 16:49:53 2007
 54.21% done, estimate finish Fri Nov  9 16:49:53 2007
 57.39% done, estimate finish Fri Nov  9 16:49:53 2007
 60.58% done, estimate finish Fri Nov  9 16:49:53 2007
 63.77% done, estimate finish Fri Nov  9 16:49:54 2007
 66.96% done, estimate finish Fri Nov  9 16:49:54 2007
 70.14% done, estimate finish Fri Nov  9 16:49:54 2007
 73.33% done, estimate finish Fri Nov  9 16:49:54 2007
 76.52% done, estimate finish Fri Nov  9 16:49:53 2007
 79.71% done, estimate finish Fri Nov  9 16:49:53 2007
 82.89% done, estimate finish Fri Nov  9 16:49:53 2007
 86.09% done, estimate finish Fri Nov  9 16:49:53 2007
 89.27% done, estimate finish Fri Nov  9 16:49:54 2007
 92.46% done, estimate finish Fri Nov  9 16:49:55 2007
 95.65% done, estimate finish Fri Nov  9 16:49:55 2007
 98.84% done, estimate finish Fri Nov  9 16:49:55 2007
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 4096
Path table size(bytes): 42
Max brk space used 0
156833 extents written (306 MB)

Burn dvd.iso to DVD disk:
$ growisofs -dvd-compat -dvd-video -speed=4 -Z /dev/dvd dvd/*

Further readings:

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 14 comments… read them below or add one }

1 Thomas November 16, 2007 at 1:46 pm

Thanks for the nice article.

As far as I know the last command should be:

growisofs -dvd-compat -Z /dev/dvd=dvd.iso

to burn the already prepared image to DVD.

The command written in the article probably will use the directory structure instead of the prepared image.

Reply

2 sony March 17, 2009 at 7:07 pm

Hi,

excellent article! created a script and my server does it all automatic :-)
only thing to mention: i removed the -aspect option of ffmpeg because the video was resized not correctly –

thx a lot
cheers

Reply

3 Dave July 27, 2009 at 10:00 am

Great, I love the command line and use it whenever I can. Another task made enjoyable. Thanks heaps

Reply

4 Bill July 28, 2009 at 8:07 pm

Great, but this is why people will never leave M$. They just want to click and create.

Reply

5 Joe August 9, 2009 at 5:57 pm

That’s the problem with a lot of Linux users. They believe that Linux should only cater to those that want to run programs through the command line. I think its smart to cater to those “mouse clickers”, the more people using Linux the less there are using Windows.

Reply

6 Jeuno October 3, 2009 at 9:30 pm

Has anyone found found a easier way to do this through gnome. I agree with 4 and 5. I and my girlfriend are using Linux full time now but things like this make you want to go back to windows. I don’t mind using the shell but this is to much for my girlfriend to wrap her head around.

Reply

7 Chris October 21, 2009 at 2:03 am

Only thing about DeVeDe, your stuck with /tmp if the drive or partition does not have enough space then its, oh well use something else. I will stick to command line where I have more control

Reply

8 Greg November 22, 2009 at 3:01 pm

Didn’t you read one of the first lines, “Just choose the DVD / VCD type and follow on screen instructions.” This is the easier way to use this in gnome! but it’s so freaking easy for you “mouse clickers” that the author didn’t bother going through the tutorial! Go back to windows if you want (or just learn how to read) but good luck finding a program that’s easier to use than this, it’s more trouble trying to find the program than simply selecting it in the package manager (you’ll probably have to buy or steal it both of which are much more of a PITA).

Reply

9 alkibulan December 17, 2009 at 9:06 pm

Hey Guys

On windows I was a Mac man for along time, then I went to windows because the Mac software to much to pay for. But Mac is very stable. Then I heard about Linux and found it to be much like Mac, except the software, is open source. Now not only am I able, to have more control over what I do with my system, but I don’t have to pay for a dam penny to Bill Gates and his pals. You see I don’t have much of a problem learning something new, the problem I have is every time I fix windows for some body they don’t want to learn how to fix there own windows they just want to click,click click and crash! I have a great DVD converter that works well on linux Ubuntu 9.10. Now! I will admit there are some issues but not as much as windows. I been using linux for 8years now and I don’t get spy ware. add ware pop ups, nor do I get anyone from M$ tell me to activate a product Key for activation. And just to top it off! I don’t have to worry about my system catching viruses because Linux user who know how to use linux know how to keep their system stable through such a stable command line and great fire wall structure. I so far, have been on a mission to prove to window user, if you keep clicking you will keep crashing. Lets go back to the source what was the first OS system UNIX OR WINDOWS AT&T? If I am wrong I believe it was Unix first! Then came Bill Gates and Apple. But Unix was use by the Military and AT&T. Linux is just off shoot of Unix with some command line still present to this very day. I think windows user, did better when they were using DOS. Because if you know commands its easer to fix your system. But now everybody is sold on the concept that clicking means you have more command, but in reality you have less. And don’t for get to activate your product key every 30 days or else you want be able, to get inside your own system! Good Luck to all those Clickers! Out there! Have fun!

Thank the programmers for Linux and its Chief designer Mr. Linux himself,
I Love Linux systems I am free of Windows!

Reply

10 JustMe December 19, 2009 at 5:27 pm

I agree windows is such a draw to those who want it simple… and I have to say I get that BUT this is so much faster and I enjoy reading and the challenge (sp) so this is great…like minded people. BUT…again…. Greg IMHO that was really a slam to the Jeuno who is at least trying so cut them some slack.
I say, ” way to go” to everyone who at least keeps an open mind and tries…that’s on both sides of the issue.
Hey that’s JustMe ;-)

Reply

11 free user April 3, 2010 at 2:14 am

First some questions about the dvd subject, then some words about freedom.
1) Is it possible to build the vob file with ffmpeg?
2) Is it possible to insert tiltle tracks with ffmpeg?
3) What is the best bit-rate for videos to play in dvd?
4) Once the vob file is ready, How can this be used with DeVeDe avoiding to recode again? There is an option to tell that the file is ready to use, but it seems that DeVeDe still converts or at least copies the file.

About Freedom:
The philosophy of uinix is to build systems reusing the programs that already exist in the system as filters. A good implementation of of unix allows an efficient interconnection of filters via pipes, performing in a concurrent consumer-producer way.
Programs like DeVeDe are an interface to that programs.
If one need to have more control and knows how the things work, it is possible to use directly the filters, instead of the default values defined in graphical interface, like DeVeDe.
Where does the freedom come? apart from the obvious open source philosophy of Linux, and other free software. One have the option to configure the systems with enough control to fulfill one’s needs as far as one knows what is needed.
On the other side, the commercial products, under closed and forbidden source code licenses, try to standardize their systems, they wish their users just use their marvelous, copy righted and patented in a limited way that they decide is more convenient to them.
Apart of all the money they charge for programs that are not so original inventions as they claim, many of them using free software under hood (see the hall of shame link in ffmpeg site), they impose standards like AVCHD, limiting our freedom. They say that is because piracy is a problem, but their obstacles are jumped by pirates, but place many problems in users producing their own movies.(that is just an example).
The happy mouse-clickers are just using the more general, standard, options of the software, once they want to take more control, they see limited to have it, with linux you may have both, the friendly interface for mouse-clickers and full control with the programs under hood. As I learn more of video formats and properties, I will wish to have more control, to produce better quality videos, and select the way to record in the limited options of the camcorder. Just a question of experience, that Linux allows to achieve, thanks to users like Vivek that share their knowledge.

Reply

12 elad February 11, 2011 at 9:24 pm

Hi, Thanks a lot !
I used Devede and followed your instructions.
Works Great!!

Reply

13 Barry Coughlan April 15, 2011 at 11:38 pm

This is brilliant, thank you for putting the time and effort in.

Reply

14 marc q July 27, 2011 at 2:19 am

It works, but I have an issue with the sound being way too “metallic” and loud. the settings has it as 100%, nothing over more gain, just the default value. How can I have this solved?

Reply

Leave a Comment

Tagged as: , , , , , ,

Previous post:

Next post: