[MPlayer-users] Dark video on DivX playback

Roland Häder mplayer at autoinstaller.de
Mon Jan 20 03:02:47 CET 2003


Hi,

I have tried to play a DivX video but I only can hear the sound track and I 
can see a dark video window.

I got the latest CVS of mplayer. The configuration script tells me:

  Enabled optional drivers:
    Input: streaming tv-v4l edl tv mpdvdkit2 vcd 
    Codecs: qtx xvid dshow/dmo win32 libvorbis liblzo 
    Audio output: alsa9 oss sdl mpegpes(dvb) 
    Video output: xvidix sdl vesa jpeg png mpegpes(dvb) fbdev svga aa ggi 
opengl dga xv x11 
  Disabled optional drivers:
    Input: tv-bsdbt848 cdda dvdnav dvdread dvdcss 
    Codecs: opendivx divx5linux divx4linux libdv libavcodec real xanim libmad 
    Audio output: sgi sun esd arts dxr2 nas win32 
    Video output: bl zr dxr3 dxr2 directx gif89a xmga mga directfb tdfxfb 3dfx 


Here's the entry from configure.log:


============ Checking for XviD ============

#include <xvid.h>
#include <divx4.h>
int main(void) { xvid_init(0, 0, 0, 0); return 0; }

gcc    /tmp/mplayer-conf-16205-26221.c -o /tmp/mplayer-conf-10198-26221.o -lm 
gcc: : No such file or directory

ldd /tmp/mplayer-conf-10198-26221.o
ldd: /tmp/mplayer-conf-10198-26221.o: No such file or directory


#include <xvid.h>
#include <divx4.h>
int main(void) { xvid_init(0, 0, 0, 0); return 0; }

gcc    /tmp/mplayer-conf-16205-26221.c -o /tmp/mplayer-conf-10198-26221.o -lm 
-lxvidcore

ldd /tmp/mplayer-conf-10198-26221.o
        libm.so.6 => /lib/libm.so.6 (0x4002c000)
        libxvidcore.so => /usr/local/lib/libxvidcore.so (0x4004e000)
        libc.so.6 => /lib/libc.so.6 (0x408c3000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Result is: yes
##########################################

============ Checking for DivX4 compatibility in XviD ============

#include <divx4.h>
int main(void) { (void) decore(0, 0, 0, 0); return 0; }

gcc    /tmp/mplayer-conf-16205-26221.c -o /tmp/mplayer-conf-10198-26221.o -lm 
-lxvidcore

ldd /tmp/mplayer-conf-10198-26221.o
        libm.so.6 => /lib/libm.so.6 (0x4002c000)
        libxvidcore.so => /usr/local/lib/libxvidcore.so (0x4004e000)
        libc.so.6 => /lib/libc.so.6 (0x408c3000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Result is: yes
##########################################

Looks like it's working, but as I said the video is pitch black. :(

I have backtraced it and ends up at the avifile project at sourceforge.net. 
Also latest CVS.

When I try to compile it (the deb's also didn't work) I can found this in 
config.log:

configure:18013: checking for decore in -ldivxdecore
configure:18044: gcc -o conftest -g -O2 -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_REENTRANT -pipe  -I/usr/include/freetype2  -Wall 
-Wno-unused  conftest.c -ldivxdecore  -lnsl -ldl  >&5
/usr/lib/libdivxdecore.so: undefined reference to `YV12toRGB24_mmx'
/usr/lib/libdivxdecore.so: undefined reference to `YV12toYUY2_mmx'
/usr/lib/libdivxdecore.so: undefined reference to `YV12toRGB32_mmx'
/usr/lib/libdivxdecore.so: undefined reference to `addblockInter'
/usr/lib/libdivxdecore.so: undefined reference to `addblockIntra'
collect2: ld returned 1 exit status

Some versions:
gcc version 2.95.4 20011002 (Debian prerelease)
GNU ld version 2.12.90.0.1 20020307 Debian/GNU Linux

I hope that's all enougth for you dev-guys. :) If you need more info, let me 
know it.

Chears,
  Roland



More information about the MPlayer-users mailing list