Step 1. We need the following tools installed :
mencoder: (MPlayer’s Movie Encoder) is a simple movie encoder.
ffmpeg: FFmpeg video converter.
dvdauthor: assembles multiple mpeg program streams into a suitable DVD file system.
If you already have them installed just ignore the following step.
Step 2. We can easily install the three packages using DAG Repo. We need to activate it though.
Edit /etc/yum.repos.d
user@server:$ nano -w /etc/yum.repos.d/dag.repo
And insert
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
When /etc/yum.repos.d is updated. Simply install the packages using yum.
user@server:$ yum install mencoder ffmpeg dvdauthor ffmpeg-devel
If you have any lib problems please read here more about it.
Step 3. If you are a pro command line user, type the following commands to convert file1.avi fille2.avi to DVD format (if you have only one .avi file, then just skip following command):
user@server:$ cat file1.avi file2.avi > ccmovie.avi
Step 4. Now run the movie encoder to create out.avi from yourname.avi (option -ovc and -oac sets no encoding, just stream copy.)
user@server:$ mencoder -o out.avi -noidx -oac copy -ovc copy yourname.avi
Step 5. Next run FFmpeg Video Converter to set aspect ratio, ntsc/pal dvd television standard etc:
For USA
user@server:$ ffmpeg -i out.avi -y -target ntsc-dvd -sameq -aspect 16:9 out.mpg
For Europe
user@server:$ ffmpeg -i out.avi -y -target pal-dvd -sameq -aspect 4:3 out.mpg
Step 6. 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 file system. You should see DVD file system in DVD directory:
user@server:$ dvdauthor --title -o dvd -f out.mpg
Step 7. Create the table of contents file instead of a titleset:
user@server:$ dvdauthor -o dvd -T
Step 8. Now your all set, the DVD is done. But what you see is that the DVD files are all loose in the folder. So what we want to do is make a .ISO (Image) of the dvd. So it’s ready to burn. What we need for that is the RPM mkisofs. We can easily install that, because we have activated the DAG Repo. So install the mkisofs package using yum.
user@server:$ yum install mkisofs
Step 9. Now you have installed mkisofs, we can create .ISO files using this command.
user@server:$ mkisofs -dvd-video -o name-your-dvd.iso dvd/
Step 10. Now your DVD is done. I hope this tutorial has helped you and may help others. We finish with burning the DVD onto an empty DVD.
user@server:$ growisofs -dvd-compat -dvd-video -speed=4 -Z /dev/dvd dvd/*
If you have any questions or thoughts to share please leave it here in a comment. Thank you!