Mpeg VCD/SVCD/DVD Mode
this mode is very similar to DivX Mode, but
the output is an mpeg stream instead of an avi stream. The output video
stream can be mpeg1 (VCD), mpeg2 (SVCD/DVD) or a copy of the imput mpeg
video stream. The output audio stream can be mp2,
mp3,
ac3, lpcm or a copy of the input audio stream. This mode is
selected with the options: -mpeg.
A more detailed view fo the first block is showed below:

Here is a detailed explanation of the block diagram:
- MEncoder, using the argument of -encode option, creates an mpeg
stream with mpeg1 or mpeg2 video.
- The
audio track is
encoded
separately in an avi stream. This is done if, with -encode, you select
an ac3 or pcm audio or you use -multiaudio. The reason for a separate
avi is because mencoder can only encode mp2/mp3 audio in the mpeg stream
- The audio track is processed again as in Direct Mode. One of the
tool specified (mp2enc,toolame,lame or MEncoder) is used.
- mplex multiplexes the video stream and the audio stream(s).
If the output of MEncoder is a single mp2/mp3 audio track the block
diagram looks
a little bit different:

This time no avi audio file is created, there is no need for it. The
audio stream is anyway processed again as in Direct Mode. This step is,
generally, redondant, but some times you could need it.
If you choose a single mp2/mp3 audio track, the output of MEncoder is
already a valid mpeg stream. With the option -fast the block diagram
become:

You cannot use -fast if the mpeg stream will be processed by dvdauthor.
The mpeg stream created by MEncoder doesn't have DVD NAV (VOBU) packets
multiplexed in. The video and audio stream need to multiplexed with
mplex.
Options
As for Indirect Mode, in Mpeg Mode you can use all the options of DivX
Mode and Direct Mode, except that the following options are meanless in
Mpeg Mode:
-avisplit
-vbitrate (use -vbr)
-setaspect
-crop
-autocrop
-fixavi
The following options are not working at this moment in Mpeg Mode:
-split
-p
The following options are only available in Mpeg Mode:
-mpegmbr (change or unset the maximum video bit rate)
Usage
Mpeg Mode has been recently introduced. Tests with the
different options are ongoing for this mode.
TABLE 1 shows the results with different
1 PASS encoding options.
More results will be
available in the future.
With the option -encode you can select the different audio/video encode
options as you do in DivX Mode. The argument of -encode has the form
n:m:i[,b]
n can be:
0 - copy of the input audio stream
(-oac copy)
1 - pcm audio stream (-oac pcm)
2 - mp3lame fast (-oac mp3lame -lameopts fast)
3 - mp3lame standard (-oac mp3lame -lameopts preset=standard)
4 - mp2/libavcodec (-oac lavc -lavcopts acodec=mp2:abitrate=224)
5 - mp3/libavcodec (-oac lavc -lavcopts acodec=mp3:abitrate=224)
6 - ac3/libavcodec (-oac lavc -lavcopts acodec=ac3:abitrate=224)
7 - mp2/toolame (-oac toolame -toolameopts br=224)
m can be:
0 - copy of the input video stream
(-ovc copy)
1 - libavcodec/mpeg[12]video (-ovc lavc -lavcopts
vcodec=mpeg[12]video:psnr)
2 - as 1 + mbd=2 (mbd=2)
3 - as 1 + compression options
(mbd=1:loop:mv0:vlelim=-4:vcelim=7:trell:precmp=1:cmp=1:subcmp=1)
4 - as 1 + quality options
(mbd=2:mv0:dc=9:precmp=6:cmp=6:subcmp=6)
i can be 1 or 2 and select the number of encoding pass.
Warning
In Mpeg Mode MEncoder can show many times the following messages:
Error in stream: PTS earlier than SCR!
Error in stream: PTS to SCR delay 0 is too little!
Warning: DTS to SCR delay is too small
[mpeg2video @ 0x85f5fe0]rc buffer underflow
There is nothing
you can do to avoid them, and, usually, the mpeg stream created will
play fine with your player. Just ignore them.
Examples
encode2mpeg -o DVD dvd://1 -dvd -mpeg -imageonly -encode 0:0:1 -ac3 copy -n n -multiaudio 128,129,130 -addchapter copy -addsub copy
encode2mpeg -o DVD dvd://1 -dvd2dvd -imageonly -n n -multiaudio 128,129,130
Copy the video and three audio streams from a DVD to a DVD. Usefull if
the original DVD doesn't fit on a DVD5 and the copyed stream does. Log file.
encode2mpeg -o DVD5 dvd://1 -dvd -mpeg -encode 0:2:1 -ac3 copy -n n -mpegmbr -a 3 -usesbr 4480 -aid 128
Encode a DVD (with copy of one audio stream) to a DVD5. Log file.