Corrected some typos in the commands and made some explanation clearer on november 18:
I have read many guides on how to this in Linux and decided that I would create my own keeping it as simple for newbies as it can be.
This guide lets you rip a DVD (just the main movie) and burn it on a DVD-R (4.7) that will play on your standalone player.
It is mainly command line, but fear not. It's easy.
One precision before we start. When I say in the guide open a console. I mean go in whatever file manager you use and open the console from the folder you want to work in.
You could also just ' cd ' to it manually. Also you can just copy and paste my commands.
Tools needed: DVD:Rip / dvdauhtor / transcode / mjpegtools / k3b
Optional: Kavi2svcd /QDVDAuthor or DVDStyler
1) Rip the DVD title(s) to harddisk with DVD:RIP in a project folder. This will create VOB files of the chosen title in that folder containing the movie and the soundtrack you picked.
2) Most of the time you will get around 5 or 6 numbered VOB's from a ripped title in your project folder.
Concatenate (merge) those VOB files into one by running in a console:
cat *.vob > movie.vob
3) You now have 1 VOB file. We need to demutliplex it and get the M2V and AC3 files out of there. From the folder, again using the console run:
tcextract -i movie.vob -t vob -x mpeg2 > movie.m2v
and after that:
tcextract -i movie.vob -a 0 -x ac3 -t vob > movie.ac3
This will produce a movie.M2V and a movie.AC3 file.
4) To requantize (shrink like DVDShrink on Windoze) your movie so it will fit on a single DVD-R (4.7) do as such:
tcrequant -i movie.m2v -o shrinked.m2v -f 1.5
This will produce a file called "shrinked.m2v"
The 1.5 at the end is the shrink factor if you like. 1 keeps the movie the same (just a reference) and 2.0 would reduce it to 50% of its size. So 1.5 seems reasonable as it equals 75% of the original size once processed.
If you prefer you can calculate the exact factor yourself with this formula:
requant_factor = (video_size / (4700000000 - audio_size)) * 1.04
Personnaly I often get a value around 1.30 for a normal 2 hours movie.
1.04 is a value used to leave overhead space for menus and chapters
If you are including more that one audio stream or a subtitle stream, those file sizes must also be subtracted from the maximum dvd image size.
All sizes are in bits.
5) Now we need to re multiplex those 2 files into a compliant DVDauthor file:
mplex -f 8 -o final.mpg shrinked.m2v movie.ac3
This will produce a file named: "final.mpg".
Note: mplex will detect if a pulldown is necessary and do it.
6) You can now add the file "final.mpg" to QDVDAuthor or Klvemkdvd authoring programs and create your DVD or use dvdauthor from the command line as such:
dvddirgen -o newdvd (create a dvd structure in a folder named newdvd)
- Populate de filesystem like so:
dvdauthor -o newdvd final.mpg
- Create DVD information (IFO) files:
dvdauthor -o newdvd -T
7)Burn the Video_TS and Audio_TS created with K3B DVD Video mode.