1350
|
1
|
|
2 How to enable DivX4Linux support?
|
|
3 =================================
|
|
4
|
|
5 1. Download the codec:
|
1366
|
6 http://download2.projectmayo.com/dnload/divx4linux/divx4linux-20010718.zip
|
1350
|
7
|
|
8 2. Unpack it, and copy files to their place:
|
|
9 cp libdivxdecore.so.0.0.0 /usr/local/lib/
|
|
10 ln -s /usr/local/lib/libdivxdecore.so.0.0.0 /usr/local/lib/libdivxdecore.so.0
|
|
11 ln -s /usr/local/lib/libdivxdecore.so.0 /usr/local/lib/libdivxdecore.so
|
|
12 ldconfig
|
|
13 cp decore.h /usr/local/include/
|
|
14
|
|
15 3. Run mplayer's ./configure
|
|
16 Change #undef NEW_DECORE to #define NEW_DECORE in config.h
|
|
17 Change #define MPEG12_POSTPROC to #undef MPEG12_POSTPROC in config.h
|
|
18 Change DECORE_LIBS in config.mak to be:
|
|
19 DECORE_LIBS=-L/usr/local/lib -ldivxdecore
|
|
20
|
1355
|
21 4. Compile mplayer (make;make install)
|
1350
|
22
|
1351
|
23 5. How to enable it?
|
|
24 It's a bit tricky. As it conflicts with opendivx (it's API is very
|
1355
|
25 similar to opendivx's), opendivx code is disabled, and the opendivx
|
1351
|
26 driver calls this library too.
|
|
27 You have 2 choices:
|
|
28 -vc odivx : using divx4 codec as a new version of opendivx.
|
|
29 in this case it produces YV12 image in its own buffer,
|
|
30 and MPlayer (libvo) does colorspace conversion.
|
|
31 -vc divx4 : using divx4 codec's colorspace conversion.
|
|
32 in this mode, you can use YUY2/UYVY too.
|
|
33 Note: for YV12 (planar YUV 4:2:0) -vc odivx is faster, for packed
|
|
34 YUV modes (YUY2, UYVY) use -vc divx4. For RGB modes you can choose,
|
|
35 I think their speed is the same. Maybe it depends on current bpp.
|
|
36
|
|
37 Note: it supports postprocessing too, but range of values is strange:
|
1350
|
38 0 = no postproc
|
|
39 10 .. 20 = postproc, normal (like level 2 with divxds)
|
|
40 30 .. 60 = hard postproc, eats many cpu. (like level 4 with divxds)
|