CREATING ELEMENTARY DVD STREAMS
Some encoder automatically create elementary streams when it encodes into DVD. For instance, TMPGenc Plus automatically outputs, by default, a M2V video file and a 48 kHz WAV file.
CCE also can create a video stream alone. In truth, to create the audio stream it'll will require some additional application.
In any way, if your encoder will create a 4489 MB MPG file, you can de-multiplex it into video (MPV or, since it's a MPEG-2 file, a M2V) and audio.
If you have a movie slpit in two AVIs (e.g. movie_CD1.avi and movie_CD2.avi) you'll have to join them as explained in the
http://www.afterdawn.com/guides/archive/virtualdub_join_avi.cfmand, if VirtualDub gives you the an error like
the video streams have different sampling rates (29.97003 vs. 29.97000), applying
http://forums.afterdawn.com/thread_view.cfm/309635 .
We'll also suppose you'll be able to create (following the already written guides) an movie compliant to your TV system (PAL/NTSC).
'Elementary stream' means that a movie is made by a
video stream plus an
audio stream.
The operation of separating AUDIO and VIDEO is called
demultiplexing. Joining them in a fill movie is called
multiplexing.
If your encoder only creates full movies (MPG), you'll just have to de-multplex its output (MPG = MPV+MPA or M2V+MP2) or something else, depending upon which audio it puts in the DVD MPG.
Creating the video stream is NOT the first thing you need to do. First, you need to determine which kind of audio your DVD will have, since the video bitrate (that is, how big the video stream can be), depends on the audio bitrate.
DVD needs 48 kHz audio, and accept:
-
uncompressed audio [WAV] (about 1500 kbps);
-
MPEG audio [MP2] (various bitrates; let's say the standard 224 kbps);
-
Dolby Surround audio [AC3] , 1+1 channels (various bitrates; let's say the standard 192 kbps) or 5+1 channels (384 kbps or 448 kbps are the most common ones).
Since the uncompressed WAV format is too big (10.1 MB x length, in minutes) we'll use AC3 or MP2.
More, unless your AVI already has an 5+1 AC3 audio, you won't be able to have an AVI with 5+1 audio (you'll start from a 1+1 MP3 audio, generally 128 kbps). Let's say 'garbage in = garbage out'.
We'll use 192 kbps as 'standard bitrate' because we want to be sure to avoid lowering the sound quality, and since we start from a low-size AVI, having a video which has the maximum possible size isn't so important. 192 kbps is called 'optimal' and even if your input movie were a MPG with MP2 224 kbps, MP3 is a better compression that MP2.
To create the audio stream for your DVD movie let's open it with VirtualDub. Do File___File information.
- If the movie was an AVI with MP3 audio (standard stereo, but usually compressed MP3 CBR instead of MP3 VBR), VirtualDub will show, under the 'audio stream' box, 'Compression':
Fraunhofer MPEG Layer-3 Codec, and under audio stream's 'Data rate' its bitrate (more likely 128 kbps, maybe different).
- If the movie was a MPEG with MP2 audio (standard stereo), VirtualDub will show, under the 'audio stream' box 'Compression:'
Fraunhofer MPEG Layer-2 Codec, and under audio stream's 'Data rate' its bitrate (more likely 224 kbps, maybe different).
- If the movie was an AVI with AC3 audio, the 'audio stream' box 'Compression' box will contain 'unknown' but its bitrate (more likely, 384 kbps) will be contained in the audio stream's 'Data rate' box.
If your movie is an AVI with AC3 sound, open it with VirtualDubMod and do 'Stream____Stream list__Demux', calling it audio.ac3.
If the movie is a MPEG, or is an AVI with MP3 sound, open it with VirtualDub. Set Audio__Full Processing Mode and do File____Save WAV. In few minutes you'll have a WAV audio stream.
Unless your AVI already had AC3 sound run FFMPEG GUI.
Load that WAV as 'audio source'. Choose AC3 as 'audio format'. Bitrate = 192. Sampling rate = 48000 (Hertz). Channels = 2 (you wont be able to increase it).
Choose the 'audio output' name ad position, then press
[Convert].
Now let's create the DVD video (M2V). Run DVTool (v0.53 is free); put the movie's length (in minutes) and the audio's bitrate (192 kbps, unless your AVI already had a 384 or 448 kbps audio).
DVTool's output will be the 'ideal' M2V video's bitrate.
I hope ou already have an movie's encoder (AVI --> DVD). If not, choose amongthe ones explained in
http://www.afterdawn.com/guides/, or choose one anyway.
Now let's open your encoder, and load your input movie. Select, if optional, a TV format which fits your system. Insert, as 'average bitrate' the DVTool's output.
If you can, choose multi-pass encoding, which is slower, but produce a better quality than constant bitrate encoding.
Set your encoder then go to sleep (multi-pass encoding is very slow).
When you wake up, your have an approx 4 GB M2V file.
Open your authoring application, load the video, the audio (optional: the chapters) and select a destination directory
Run the authoring application (if you use IFOEdit, read the 1st part).
If you made all well, you'll have the DVDs BUPs,IFOs, the movie's VOB set which will be about 4489 MB (1 DVD5).
Burn that set with Nero (choosing [DVD] in the wizard's top), and 'DVD video' in the DVD wizard) and burn (low speed 'fatigues' less your DVD player).
What do you think about this method? I accept suggestions.