Profiles


Some hardware DVD players are able to play mpeg4 avi. Usually the avi stream has to meet some restrictions called profiles. There exist DivX profiles and MPEG-4 profiles. encode2mpeg support the following profiles:

-profile
Name
-vbr
-setaspect
VBV_buffer
vrc_maxrate
max_bframes
DivXHa
DivX Handheld
200(537)
160(176)
1572
800
0
DivXPo
DivX Portable
768(4854)
320(352)
3145
8000
1
DivXHT
DivX Home Theater
4000(4854)
640(720)
3145
8000
1
DivXHD
DivX High Def
8000(9708)
1280(1280)
6291
16000
2
spL0
MPEG-4 Simple Profile Level 0
64(64)
160(176)
163


spL1
MPEG-4 Simple Profile Level 1
64(64)
160(176)
163


spL2
MPEG-4 Simple Profile Level 2
128(128)
320(352) 655


spL3
MPEG-4 Simple Profile Level 3
384(384)
320(352) 655


aspL0
MPEG-4 Advanced Simple Profile L0
128(128)
160(176) 163


aspL1
MPEG-4 Advanced Simple Profile L1
128(128)
160(176) 163


aspL2
MPEG-4 Advanced Simple Profile L2
384(384)
320(352) 655


aspL3
MPEG-4 Advanced Simple Profile L3
768(768)
320(352) 655


aspL4
MPEG-4 Advanced Simple Profile L4
3000(3000)
320(352) 1310


aspL5
MPEG-4 Advanced Simple Profile L5
8000(8000)
640(720)
1835



When you select a profile, the options: -vf harddup -fixavi will be set togheter with the ones specified in the previous table (maximum values are in patentesis). For example using: -profile DivXHT will set: -vf harddup -fixavi -vbr 4000 -setaspect 640 VBV_buffer=3145 vrc_maxrate=8000 max_bframes=1 and using: -profile aspL5 will set -vf harddup -fixavi -vbr 8000 -setaspect 640 VBV_buffer=1835 The profiles DivXHT (libavcodec and xvid) and aspL5 (libavcodec only) have been tested with the Philips DVP 642.

Example:
encode2mpeg -o movie dvd://1 -avionly -aid 128 -encode 3:2:2 -profile divxht

OpenDML

Avi files can be as big as 2GB, but there exists an extension allowing bigger files called OpenDML. MEncoder creates by default avi files with OpenDML extensions but this could be a problem. If the player does not understand OpenDML extensions, it will play only the first GB of video and will completly ignore the rest of the avi file. By adding the option -noodml to encode2mpeg, you can avoid OpenDML extensions and the avi file will play correctly (if its size is less than 2GB). If you have a player that do not understand OpenDML extensions and your avi file is bigger than 2GB you can solve the problem in two ways:

Text Subtitle Conversion

Some hardware players are able to display text subtitles together with avi streams. encode2mpeg has the capability to convert a text subtitle file that MPlayer understand (and that your player may not understand) in another format. During the conversion process you can also change some proprierties of the subtitle file.

To convert a text subtitle use:
-txtsub <subtitle file>
The text subtitle will be converted to SubViewer format by default. It is possible to control some parameters of the subtitle file with the option -txtsubopts. For example the option:
-txtsubopts Sami:en:dos:on:10:25:sub
will convert to Sami format,append the text en to the name specifyed with -o, use cr/lf as line termination, end the file name with ;1 (iso9660 standard), add a delay of 10 seconds to the subtitle, use 25 as subtitle fps and use sub as filename extension. The default values of -txtsubopts are SubViewer:null:unix:off:0:default:default. You can omit the default values from the argument of -txtsubopts. For example:
-txtsubopts MicroDVD::dos:on
will set MicroDVD as subtitle format, terminate the lines with cr/lf and end the file name with ;1. The other parameters will keep their default values. The option -txtsubopts apply to a previous -txtsub option. You can convert more than one subtitle, each one with a different set of parameters like:
-txtsub <subfile1> -txtsubopts :en -txtsub <subfile2> -txtsubopts :fr
If you convert more than one subtitle, be sure that the final subtitle file names are different: use the option -txtsuboptions with appropriate arguments. Text subtitle conversion is possible only in Avi Mode, therefore the encode2mpeg command line must include the option -avionly. The following table shows the subtitle formats that encode2mpeg can generate with their extensions, also reported are the subtitle formats that the Philips DVP 642 can play, if the file has to be in dos format or unix format and if its name has to terminate with ;1.

subtitle format
extension
DVP 642
SubViewer
srt
yes dos ;1
MicroDVD
sub
yes dos ;1
Sami
smi
yes unix/dos ;1
JACOsub
jss
no
MPsub
mpsub
no


Top