Create DVD from .AVI using bash.
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
And insert
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.
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):
Step 4. Now run the movie encoder to create out.avi from yourname.avi (option -ovc and -oac sets no encoding, just stream copy.)
Step 5. Next run FFmpeg Video Converter to set aspect ratio, ntsc/pal dvd television standard etc:
For USA
For Europe
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:
Step 7. Create the table of contents file instead of a titleset:
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.
Step 9. Now you have installed mkisofs, we can create .ISO files using this command.
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.
If you have any questions or thoughts to share please leave it here in a comment. Thank you!
