Create DVD movie using mencoder, ffmpeg, dvdauthor

source :

Sometimes when we download movies like in the movies are separated into many file. It is reasonable cause the size huge. There are several way they split the file. By rar program, means they compressed and split it, by splitter program means they just split it.

To join the file is not very hard. For rar program, use the rar to decompressed and join them. I will write about install rar later.

$rar e movie_part1.rar

See the command? Define only the first part of the file, rar will determine the next part.

$rar e movie_part1.rar.part1

That’s a new kind of rar, it is the same way to decompress them.

Now how about the splitter program? They usually using windows base program to split the file. Like the splitter or many more program like it. In linux we simply use console command to join them back.

$ cat file1.avi file2.avi > ccmovie.avi

Okey now we need to convert one movie format to another. Let say create mpg file from avi. I need mpg format to burn them into cd/dvd.

Using movie encoder to create output.avi from ccmovie.avi (option -ovc and -oac sets no encoding, just streamcopy)

$ mencoder -o output.avi -noidx -oac copy -ovc copy ccmovie.avi

Next run FFmpeg video converter to set aspect ratio, by ntsc dvd or pal dvd television standard etc:

$ ffmpeg -i output.avi -y -target ntsc-dvd -sameq -aspect 16:9 out.mpg

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:

This is how to use dvdauthor.

< $ dvdauthor –title -o dvd -f out.mpg

Creates the table of contents file instead of a titleset:

$ dvdauthor -o dvd -T

Create dvd.iso:

$ mkisofs -dvd-video -o dvd.iso dvd/

Burn dvd.iso to DVD disk:

$ growisofs -dvd-compat -dvd-video -speed=4 -Z /dev/dvd dvd/*

These are sources to get ffmpeg, mencoder and dvdauthor (for mencoder that come with mplayer)

Leave a Reply

Your email address will not be published.

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