HOWTO Create a DVD video disc: Encoding the movies
Encode from a misc video format
You will have to choose between NTSC and PAL.
- Most of Europe & Australia use PAL.
- America use NTSC.
You can refer to the list of TV formats used in different countries around the world at http://mightylegends.zapto.org/dvd/tv_standards.html if you are unsure what format you should use.
transcode \ -i yourvideofile1.avi \ -y ffmpeg \ --export_prof dvd-pal \ --export_asr 3 \ -o yourvideofile1 -D0 \ -b224 \ -N 0x2000 \ -s2 \ -m yourvideofile1.ac3 \ -J modfps=clonetype=3 \ --export_fps 25
transcode \ -i yourvideofile1.avi \ -y ffmpeg \ --export_prof dvd-ntsc \ --export_asr 3 \ -o yourvideofile1 -D0 \ -b224 \ -N 0x2000 \ -s2 \ -m yourvideofile1.ac3 \ -J modfps=clonetype=3 \ --export_fps 29.97
The above will produce 2 files 'yourvideofile1.m2v/yourvideofile1.ac3' which have been split from the original into video & audio files.
The video(.m2v) has now been re-encoded into a DVD compliant mpeg2 format & the audio(.ac3) has been encoded into an AC3 DVD audio stream.
The Aspect Ratio
The above transcode lines will convert & encode to an aspect ratio of 16:9.
If an aspect ratio of 4:3 is desired then replace --export_asr 3 with --export_asr 2 in your transcode line.
Dvdauthor will only work correctly on files with aspect ratios of either 4:3 or 16:9.
Convert 2-channel stereo audio track to 5.1 surround sound (optional)
Using the above transcode lines will result in a 2-channel stereo audio track.
Depending on the brand of 5.1 surround sound entertainment system, this may result in the audio only being present on the centre & sub channels.
Find out if the original .avi/.mpg file already contains a 5.1 AC3 audio track: Kode:
mplayer -vo dummy -identify original.avi 2> /dev/null | grep "5.1 ("
A positive output would look something like: Kode:
AC3: 5.1 (3f+2r+lfe) 48000 Hz 384.0 kbit/s
If it does, then extract it using 'tcextract' (part of the transcode package) & use it in your mplex line below instead. In this way, front to rear panning will not be lost on true 5.1 audio tracks, & no added conversion is necessary:
tcextract \ -d2 -i matrix.avi \ -a0 \ -x ac3 \ | tcextract -d2 \ -x ac3 \ -t raw > matrix.ac3
If it doesn't, then using the existing 2-channel audio track, it is possible to create a 5.1 surround sound track so that the audio will be present on all 6 channels (front to rear panning is lost).
Combine the new audio & video files into one DVD mpg
mplex -f 8 -o yourvideofile1.mpg yourvideofile1.m2v yourvideofile1.ac3
Test your files in mplayer or xine. eg. mplayer -vo xv matrix_dvd.mpg