On Tue, 28 Aug 2001, Zdenek Kabelac wrote:
> On Wed, Aug 29, 2001 at 04:00:45AM +0200, Kevin wrote:
> > I have mpeg2divx from x2divx 0.9a crashing here to with todays cvs without
> > ffmpeg support. I used divx4linux-20010824. Heres the gdb dump:
> >
> > width 352, height 288, framerate 25.000000, frames 102632
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > Creators::SetCodecAttr (info=@0x0, attribute=0x807fd2e "BitRate",
> > value=1800)
> > at
> > /usr/lib/gcc-lib/i386-linux/2.95.2/../../../../include/g++-3/std/bastring.h:147
> > 147 Rep *rep () const { return reinterpret_cast<Rep *>(dat) - 1; }
>
> Obviously passing 0x0 info reference is not a good idea - I think
> this is fault in mpeg2divx.
Hmm, I see your point :)
I tried this versions aviplay and it works, so it seems that the avifile
lib is ok. I guess in the info reference a description of the codec to be
used is passed. The CodecInfo:match returns NULL for every codec that is
listed in include/formats.h on my system. I tried avitest.cpp and that
fails, too:
kread@kiste:~/sw/video/avifile-0.6/samples/misc$ ./avitest test.avi
Available CPU flags: fpu vme de pse tsc msr mce cx8 pge mmx syscall
3dnowext 3dnow k6_mtrr
501.125 MHz AMD-K6(tm)-III Processor processor detected
/usr/local/lib/avifile0.6/libwin32-0.6.so.0: found A: 6 V: 27 plugins
/usr/local/lib/avifile0.6/libmpeg_audiodec-0.6.so.0: found A: 1 V: 0
plugin
/usr/local/lib/avifile0.6/libmp3lamebin_audioenc-0.6.so.0: found A: 1
V: 0 plugin
/usr/local/lib/avifile0.6/libmjpeg-0.6.so.0: found A: 0 V: 1 plugin
/usr/local/lib/avifile0.6/libdivx4-0.6.so.0: found A: 0 V: 2 plugins
/usr/local/lib/avifile0.6/libaudiodec-0.6.so.0: found A: 5 V: 0 plugins
/usr/local/lib/avifile0.6/libac3pass-0.6.so.0: found A: 1 V: 0 plugin
AviWriteFile: FATAL: Could not create encoder
Hmm, could it be that the interface to select the codec to use has changed
in the libs and x2divx hasnt' cought up with this yet?
cheers,
Kevin
_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile