Thomas Froescher, email@example.com
How to rip a DVD and encode it into an MPEG-4 AVI with K3B
- Ripping the DVD
- Setting up the encoding
- Encoding process
This document is a temporarily description for the DVD ripping and video encoding
feature of K3B. The document describes the single steps to backup a DVD to
the harddisk and to encode it to an MPEG-4 compliant AVI.
K3B is only the frontend for these steps. For ripping and encoding the linux
video stream processing tool transcode is used.
- transcode version 0.6.0pre5 and its dependencies
- a MPEG-4 encoder; either Xvid (www.xvid.org) or DivX4/5 (www.divx.com)
- libdvdread (tested with version 0.9.2, www.dtek.chalmers.se/groups/dvd/)
- libdvdcss version 0.0.3.ogle3 for CSS-encrypted DVDs
(www.dtek.chalmers.se/groups/dvd/, don't use libdvdcss-1.0, its buggy and slow.
Version 1.2.0 should work too, but has not been tested)
3. Ripping the DVD
First step is to choose the title/movie you want to rip. For this click on
the drive icon of your DVD-Drive. You will now see a list that shows the
content of the DVD with all movie sequence. The longest movie sequence
(usually the main movie) is automatically selected. Right click on the
title and choose copy.
In the following dialog enter the destination directory in the first line.
The second and third will be filled out automatically. Don't change these
Now press start and wait until the ripping has been finished.
INFO: You should now have a directory which contains a project file
(k3bDVDRip.xml), a vob directory with the vob file (like vts_0x_y.vob)
and tmp directory with the IFO files (video_ts.ifo and one like vts_0x_0.ifo)
4. Setting up the encoding
Open the encoding dialog in the menu Tools->Encode video. Now load the
project file from the DVD-Rip (k3bDVDRip.xml in your movie directory) and
set a file name for your final avi (movie.avi). You can now set the
parameters for the encoding. For a first test choose the amount of CDs
your final avi should be and the language you want it to have.
The other settings can be left default.
(More information on each parameter and their choices is available as
"What's This" help, via right clicking the corresponding GUI element).
Change to the Advanced Audio/Video Settings tab panel to set the final
size of your movie. Here you can cut off black borders and resize your
movie to get a proper quality (We experienced good results with a width
Initializing of the preview could fail. So first click on the slider below
the preview to get a new picture. To the right of the preview choose the
"FAST" resizing method. This scaling can only handle pixel sizes which are
a multipile of 8, but is a lot faster than pixel "EXACT" resizing. You may
also enable auto-crop. (Auto-crop should work most times. If not first try
another sample image.)
When changing the final size of your movie the "VIDEO QUALITY" should be
greater than 0.15 (at least for a single CD rip).
Once again, see the "What's This" help for detailed information.
Now start encoding.
5. Encoding process
Encoding first scans the whole movie for the min/max level of the audio
track. The result is a gain level to boost/normalize the audio track.
(This is normally done by the AC3 decoder of your amplifier. This can't be
done with the final AVI because it contains a MP3 track.)
After that the video and audio track will be encoded and after a few hours
you are able to watch your encoded video with every DivX capable player
(i.e mplayer, xine, aviplay and of course each player based on M$ Systems).
In general first see the debug output for further information. If this
doesn't help you find help on the k3b-users mailing list
If you are using DivX make sure you choose the codec version installed
on your system. You cannot install both versions on your linux box because
both binaries are using the same name. If you've trouble with the
different installations search all libdivxencore.so and libdivxdecore.so
files and delete them. Install the version you want and start encoding
If aspect ratio detection fails (your final movie is to high) set the
height by hand after resizing and verify the aspect ratio in the info box