Direct VCD/SVCD/DVD mode

direct

in this mode encode2mpeg creates an mpeg stream, then a binary image and  finally burns the image on the selectred support (CD or DVD). You don't need to execute all the steps, you can only create the mpeg stream or the binary image.
A more detailed view fo the first block is showed below; mpeg2enc is used to create the mpeg video stream from a  yuv4mpeg stream generated by MPlayer. The audio stream can be mp2, mp3, ac3 or lpcm. Different tools can be used for this purpose: mp2enc, toolame, lame, MEncoder (libavcodec).



Direct mode is the defaul mode. If you don't select a specific mpeg profile a VCD is created. The profile options are:
-vcd
-svcd
-dvd

Common options

The following options can be used with every profile:
-abr <n> (audio bit rate, default 224/mp2, 128/mp3, 448/ac3-6ch, 192/ac3-2ch )
-asr <n> (audio sample rate, defaul 44100/mp2-mp3, 48000/ac3-lpcm)
-vfr  <1-8> (video frame rate, defaul is 4/NTSC, 3/PAL)
-n <n|p|s> (video norm, it's better to always specify the norm because it selects appropriate default values for other parameters)
-mp2 <mp2enc|toolame|mencoder|copy> (choose mp2 audio and use the specified tool)
-mp3 <lame|mencoder|copy> (choose mp3 audio and use the specified tool)
-ac3 <mencoder|copy> (choose ac3 audio and use the specified tool)
-lpcm (choose lpcm audio)
-qmatrix <kvcd|tmpgenc|default|hi-res> (select custom quantization matrices: this can reduces the size of the mpeg stream)
-mpegchannels <1-6> (number of channels of the audio stream, 1-6 for ac3/lpcm, 1-2 for mp2/mp3)
-normalize (apply normalize to the audio stream)
-volume <n> (change the amplitude of the audio stream)
-noscale (tell yuvscaler to not rescale the video stream to VCD/SVCD/DVD frame size. Usefull if you want to use mplayer scale filter for scaling)
-monochrome
-split <n> (split the resulting video in n MB chunk, defaul 800)
-nosplit (do not split the mpeg stream, defaul is to split)
-imageonly (create the mpeg stream and the binary image, but don't burn it)
-mpegonly (create only the mpeg stream)
-streamonly (create only the elementary video and audio stream without multiplexing them)
-cpu <1-8> (number of threads)

VCD

For the vcd profile you can specify the following options:
-a <1-3> (aspect ratio, defaul 2)
-vbr <n> (video bitrate, default 1152)
-wide2std (convert widescreen 16/9 input video into letterboxed 4/3 generating necessary black lines)
-mpeg1vbr (generate an mpeg1 variable video bit rate stream. Not all the hardware players can play such VCD)
-mp2 <mp2enc|toolame|mencoder|copy> (create an mp2 audio stream with the selected tool, default mp2enc)
-mp3 <lame|mencoder|copy> (create an mp3 audio stream with the selected tool, default lame)
-blank (blank a cd before burning)

SVCD

-a <2-3> (aspect ratio, defaul 2)
-vbr <n> (video bitrate, default 2500)
-mp2 <mp2enc|toolame|mencoder|copy> (create an mp2 audio stream with the selected tool, default mp2enc)
-mp3 <lame|mencoder|copy> (create an mp3 audio stream with the selected tool, default lame)
-ac3 <mencoder|copy> (create an ac3 audio stream with the selected tool, default mencoder)
-lpcm (create an uncompressed lpcm audio stream [48000 or 96000 kHz])
-multiaudio "aid0 aid1 ..." (output mpeg stream with several audio streams)
-p (play the movie as NTSC video using 3:2 pull­down,  -vfr 1 -p creates a smaller stream than -vfr 4)
-blank (blank a cd before burning)

DVD

-a <1-4> (aspect ratio, defaul 2)
-vbr <n> (video bitrate, default 7500)
-mp2 <mp2enc|toolame|mencoder|copy> (create an mp2 audio stream with the selected tool, default mp2enc)
-mp3 <lame|mencoder|copy> (create an mp3 audio stream with the selected tool, default lame)
-ac3 <mencoder|copy> (create an ac3 audio stream with the selected tool, default mencoder)
-lpcm (create an uncompressed lpcm audio stream [48000 or 96000 kHz])
-multiaudio "aid0 aid1 ..." (mpeg stream with several audio streams)
-p (play the movie as NTSC video using 3:2 pull­down,  -vfr 1 -p creates a smaller stream than -vfr 4)
-dvdaudiolang <code,code,...> (ISO 639 langauges codes)

Limitations

Direct VCD/SVCD/DVD mode doesn't handle correctly video that has a source frame rate different from the one of the final mpeg stream. This includes source video with variable frame rate, video with non standard frame rate (like 15 fps), and, sometimes, NTSC videos. PAL -> NTSC or NTSC -> PAL conversion is therefore not possible in this mode.

Examples

encode2mpeg -o clip -n p dvd://1 -aid 129 -ss 10:00 -frames 500 -mpegonly -wide2std
encode 20 seconds of video from a DVD to a 4/3 mpeg stream. Log file.

encode2mpeg -o svcd -n p dvd://1 -mp3 -svcd -a 3 -imageonly
encode a PAL DVD video to a 16/9 PAL SVCD with mp3 audio. Log file.

encode2mpeg -o vbr -n p dvd://1 -mpeg1vbr -qmatrix kvcd -wide2std -blank
encode a 16/9 PAL DVD video to a 4/3 PAL VCD with mpeg1 variable bit rate and using kvcd quantization matrices. Log file.