Results 1 to 6 of 6
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-14-2011 #1
How to convert a video file to an iso to burn to dvd
Use your package manager to install ffmpeg, dvdauthor, growisofs and genisoimage. You may want to install vlc just to test that the iso file is what you want before you burn it. I use debian, so my commands would be like this:
sudo apt-get install ffmpeg dvdauthor genisoimage growisofs vlc
Before you begin, it is best to do a
There is a trick that I have found to getting widescreen movies to format right for the dvd, and that is to pass the "-aspect 16:9" option to ffmpeg. It will make the .mpg file look squished, but the dvd will burn correctly. This is why I recommend installing vlc to test the .iso file before you waste a dvd.
Ok, lets get to it!
Get you a video file. I have used all kinds, but mostly I convert .mkv files to mpg to use. I don't really care how you got the video file either.
Now that you have a video file, you want to convert it to a dvd readable format, which is .mpg. We will use ffmpeg to do this, and this is how:
ffmpeg -i yourfile.mkv -target ntsc-dvd yournewfile.mpg
Depending on the size of the file you are converting, it could take a while. I usually convert 8+ GB files so it takes an hour or so.
If you have a widescreen movie, then you will want to declare "-aspect 16:9" in the command so that it will keep the widescreen format when you convert it to iso.
ffmpeg -i yourfile.mkv -target ntsc-dvd -aspect 16:9 yournewfile.mpg
When you have more than one audio track, ffmpeg will use the first one as default. It doesn't matter if it is your native tongue, it still uses it. We can change that with "-map".
Let's say we have a file with two audio tracks. One is german, one is english, and german is the first one. The video track is usually the first one (0.0), so we will define two maps because ffmpeg wants you to define all the maps that are being output, which is usually two.
The german audio will be (0.1) and the english audio will be (0.2). By default, with no specification, ffmpeg will use the german audio track because it is first. Here is how we specify for ffmpeg to use english:
ffmpeg -i yourfile.mkv -target ntsc-dvd -aspect 16:9 -map 0.0 -map 0.2 yournewfile.mpg
Now, run the command (whichever one you need) and wait. When it is done, you should have a nice new .mpg file to play with. You should know that ffmpeg does much more than this, but that would exceed the scope of this tutorial. Maybe when I experiment more with video editing, I will explain more of ffmpeg in other tutorials.
We can move on to dvdauthor now.
Dvdauthor takes the .mpg files and creates a dvd file structure suitable for playing in dvd players. To create a simple structure from one of your .mpg files, you need to create a directory to put your dvd file structure in. I usually make a folder with the same name as the project I am working on.
mkdir dvd dvdauthor -o dvd -t yournewfile.mpg
When you add your files, you can then create a TOC (table of contents) so that genisoimage can read it to create the .iso file. That command is:
dvdauthor -o dvd -T
We are now ready to convert your dvd to an .iso file to burn.
The command we use to convert all of that is:
genisoimage -dvd-video -o yourimage.iso dvd
Now, use vlc and open the file and see if it is what you wanted it to be. If not, go through the steps and see if you can't change something to get it right.
Once you have created the .iso image, you can use whatever you want to burn it, but I have been happy with growisofs. I find that command line burners are faster and just more convenient.
growisofs -dvd-compat -Z /dev/sr0=yourimage.iso
Now, go watch your movie!
- 06-16-2011 #2
- Join Date
- Jun 2011
We have a excellent GUI to do that, the program is devede.
- 06-16-2011 #3We have a excellent GUI to do that, the program is devede.
There are probably gui tools to do all of this stuff, but I have found that the command line tools are much more efficient and just work a lot better. They don't crash near as often, and give you a lot better errors if you have errors.
Happy Trails, Rok
- 06-16-2011 #4
- 06-17-2011 #5
Yeah, I know about these programs, but for some reason, the gui programs LOVE to crash in the middle of doing something.
Honestly, if I wanted a gui to do these things, I would have used Windows.
Sorry for the helpful post guys. I just thought I would help a few of the people who enjoy using the command line as much as me.
And for dvid who said devede, yes I use it sometimes. It likes to add static to my audio when I encode to dvd on most .mkv files. I am converting 8 - 16 GB files, and most of the gui programs crash about 2 GB into the files.
k9copy crashes when I start to convert just about anything.
You know, these gui tools you guys keep recommending are just visual frontends to the commands I am using. Why not cut out the middleman?
Oh, and thank you rokytnji for the like.
Last edited by gruven; 06-17-2011 at 05:25 AM.
- 06-18-2011 #6