[Fwd: [Avifile]x2divx compile problem]

Here’s everything about my system:

  • PIII/600
  • Red Hat Linux 7.1 (all updates applied)
  • kernel-2.4.7 (compiled by myself)
  • SDL-1.2.2 (installed from RPMs)
  • Win32 codecs 0.18
  • libmpeg3-1.3 (included in the x2divx source tree)

I compiled avifile-0.6-20010713 and installed it in /usr/local
aviplay works fine.
Now, i try to use mpeg2divx to rip some DVDs. And here comes the

The binary (precompiled) mpeg2divx-0.9 core dumps at me. This is the

[root at pc /stuff]# mpeg2divx -o /stuff/1.avi 1.mpeg
Available CPU flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca
cmov pat pse36 mmx fxsr sse
598.063 MHz Pentium III (Coppermine) processor detected
/usr/local/lib/avifile/libwin32.so.0: found 26 plugins (A: 5 V: 21)
/usr/local/lib/avifile/libmpeg_audiodec.so.0: found 1 plugin (A: 1 V:
/usr/local/lib/avifile/libmp3lame_audioenc.so.0: found 1 plugin (A: 1
V: 0)
/usr/local/lib/avifile/libmjpeg.so.0: found 1 plugin (A: 0 V: 1)
/usr/local/lib/avifile/libffmpeg.so.0: found 3 plugins (A: 0 V: 3)
/usr/local/lib/avifile/libaudiodec.so.0: found 4 plugins (A: 4 V: 0)
set audio stream 0 of 1
set video stream 0 of 1
channels 6, rate 48000, samples 89805697
width 720, height 480, framerate 29.970030, frames 56072
Initializing registry
Initializing registry
Initializing registry
Initializing registry
Using Win32 dll library: divxc32.dll
Setting bit rate to 20000 160
Encoding frame 0 of 56072, 0.0 frames per sec Segmentation fault
(core dumped)
[root at pc /stuff]#

If i try to compile x2divx-0.9a, here’s what i get:

make[1]: Leaving directory /root/compile/x2divx-0.9a/libmpeg3-1.3' g++ -g -O3 -funroll-loops -I/usr/local/include/avifile -I./libmpeg3-1.3 -o mpeg2divx mpeg2divx.cpp -laviplay -lpthread libmpeg3-1.3/*/libmpeg3.a /usr/local/lib/libaviplay.so: undefined reference toXF86VidModeGetAllModeLines’
/usr/local/lib/libaviplay.so: undefined reference to
collect2: ld returned 1 exit status
make: *** [mpeg2divx] Error 1
[root at pc x2divx-0.9a]#

On avifile’s site, i saw that this problem is specific to SDL-1.1.7, and
i should downgrade to 1.1.6. But according to the README file included
with my avifile distribution, “use 1.2 or better if you can”.
Now, i do have SDL-1.2.2 :slight_smile:

What should i do?
Try a different avifile build?
Try a different SDL?
What exactly is the problem?-----Forwarded Message-----
From: @Florin_Andrei (Florin Andrei)
To: avifile list
Subject: [Avifile]x2divx compile problem

Florin Andrei