Hi,
Ok, I grabbed the CVS version this morning, and avirec -l now
works ok. But when I try to record with it, it's still giving me
segfaults. I traced one to an old libdivxencore.so library, so I got rid
of it and replaced it with a current one. However the segfault moved
elsewhere, and I'm not sure what to do with this one. I've included a
backtrace and command arguments and output info below. Hope this helps
you trace the problem. I've given a backtrace when using the DivX ;-)
codec, however I also get segfaults with the DivX5.0 and Microsoft MPEG-4
codecs as well. I didn't perform backtraces on with those, let me know if
you'd like them.
--Greg
(gdb) run
Starting program: /usr/local/bin/avirec -c DivX\ \;\-\)\ Fast\-Motion -F 15 -g
/dev/video0 -G /dev/dsp -m m -x 320 -y 240 /tmp/test.avi
[New Thread 1024 (LWP 561)]
<init> : Avifile CVS-020730-10:16-2.95.4
<init> : Available CPU flags: fpu vme de pse tsc msr mce cx8 mmx
<init> : 232.67 MHz Pentium MMX processor detected
<codec keeper> : /usr/local/lib/avifile0.7/ac3pass.so: A/V 1/0
<codec keeper> : /usr/local/lib/avifile0.7/divx4.so: A/V 0/3
<codec keeper> : /usr/local/lib/avifile0.7/ffmpeg.so: A/V 2/10
<codec keeper> : /usr/local/lib/avifile0.7/mp3lamebin_audioenc.so: A/V 1/0
<codec keeper> : /usr/local/lib/avifile0.7/mad_audiodec.so: A/V 1/0
<codec keeper> : /usr/local/lib/avifile0.7/vorbis_audio.so: A/V 1/0
<codec keeper> : /usr/local/lib/avifile0.7/win32.so: A/V 10/48
<LDT keeper> : Installed fs segment: 0x4022f000
<codec keeper> : /usr/local/lib/avifile0.7/mpeg_audiodec.so: A/V 1/0
<codec keeper> : /usr/local/lib/avifile0.7/audiodec.so: A/V 5/0
<codec keeper> : /usr/local/lib/avifile0.7/mjpeg.so: A/V 0/1
Using 30 Mb of memory for frame caching
using codec 'DivX ;-) Fast-Motion' (878070084)
BTTV driver version 0.7.83 detected
Broken VBI implementation; disabling closed captioning
v4l1baseif::grabSetParams(320, 240, 7)
4096
[New Thread 2049 (LWP 562)]
[New Thread 1026 (LWP 563)]
9/16 fragments available
4096 bytes each fragment
36864 bytes available
Bread 16384
Bread 16384
Bread 4096
Flushed 36864 bytes of data from audio buffers
Using 208 buffers (320x240)
[New Thread 2051 (LWP 564)]
read /dev/dsp: Interrupted system call
[New Thread 3076 (LWP 565)]
v4l1: VIDIOCSYNC in ::grabWait (frame 1)
v4l1: VIDIOCMCAPTURE in ::grabOne: Device or resource busy
colorspace = 1
<AVI writer> : AviWriteFile::AviWriteFile()
time: 0 frames: 0 cap drop: 0 enc drop: 0<Win32 plugin> : Using Win32 dll library:
divxc32f.dll
<Win32 video encoder> : W32 Quality 0 KeyFrames: 9999 BitRate: 910000
v4l1: VIDIOCSYNC in ::grabWait (frame 1)
v4l1: VIDIOCMCAPTURE in ::grabOne: Device or resource busy
time: 0 frames: 0 cap drop: 0 enc drop: 0<Win32 video encoder> : W32 Quality 0
KeyFrames: 9999 BitRate: 225000
Entering loop
time: 7 frames: 285 cap drop: 75 enc drop: 0
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 3076 (LWP 565)]
0x1c22603f in ?? ()
(gdb) bt
#0 0x1c22603f in ?? ()
#1 0x1c2097c2 in ?? ()
#2 0x1c206c1a in ?? ()
#3 0x1c204d94 in ?? ()
#4 0x1c203dd2 in ?? ()
#5 0x1c203c14 in ?? ()
#6 0x1c2030b9 in ?? ()
#7 0x1c202186 in ?? ()
#8 0x428939b8 in SendDriverMessage (hDriver=134680872, message=16392,
lParam1=-1086326732, lParam2=48) at driver.c:90
#9 0x42899231 in ICCompress (hic=134680872, dwFlags=0, lpbiOutput=0x8065c88,
lpData=0x42ac4008, lpbiInput=0x8065ba8, lpBits=0x1d0, lpckid=0x0, lpdwFlags=0xbf3ff91c,
lFrameNum=225, dwFrameSize=0, dwQuality=0, lpbiPrev=0x0, lpPrev=0x0) at vfl.c:108
#10 0x428a76df in avm::VideoEncoder::EncodeFrame (this=0x80793d8, src=0x810a408,
dest=0x42ac4008, is_keyframe=0xbf3ff91c, size=0xbf3ff920, lpckid=0x0)
at VideoEncoder.cpp:200
#11 0x400f6035 in avm::AviVideoWriteStream::AddFrame (this=0x8063b28, chunk=0x810a408,
pSize=0xbf3ffa58, pKeyframe=0xbf3ffa5c, pData=0x0) at AviVideoWriteStream.cpp:47
#12 0x0804cb3d in CaptureProcess::writer (this=0x805e620) at capproc.cpp:700
#13 0x0804d9f2 in CaptureProcess::writer_starter (arg=0x805e620) at capproc.h:233
#14 0x402470ba in pthread_start_thread () from /lib/libpthread.so.0
#15 0x40247101 in pthread_start_thread_event () from /lib/libpthread.so.0
(gdb)
On Tue, 30 Jul 2002, Zdenek Kabelac wrote:
> On Sat, Jul 27, 2002 at 09:02:27PM -0700, [EMAIL PROTECTED] wrote:
> > Hi,
> > I'm using Debian 3.0, with gcc 2.95.4, kernel 2.2.21. I compiled
> > avifile 0.7.12 and 0.7.13 with the same results. I saw on the mailing
> > list another user that has DEbian 3.0, and is getting segfaults. I too,
>
> where ???
>
> > amd getting seg faults when I try to play avi's, and when I try to get a
>
> post here at least the startup log
>
> > codec listing with avirec, and when I try to record with avirec. Zdenek
>
> this has been fixed and should work now in CVS
> If you have another crash - just send a backtrace
> (it's very easy to fix such bug then)
>
> > #0 0x40455f7e in vfprintf () from /lib/libc.so.6
> > #1 0x4045d3b6 in printf () from /lib/libc.so.6
> > #2 0x0804ed5a in ListCodecs (codec_list=@0x805d2c0) at avirec.cpp:162
>
> default 'incorrect' value was out-of bounds - now it's checked...
>
> --
> .''`. Zdenek Kabelac kabi@{debian.org, users.sf.net, fi.muni.cz}
> : :' : Debian GNU/Linux maintainer - www.debian.{org,cz}
> `. `' Modern processors are the most advanced heating systems around.
> `- www.tomshardware.com
>
> _______________________________________________
> Avifile mailing list
> [EMAIL PROTECTED]
> http://prak.org/mailman/listinfo/avifile
>
_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile