Ok, I did some more experimenting, sticking to a single codec (Divx5.0).
It seems that the higher I set the framerate, the sooner it segfaults. I
set the framerate down to 5, can I can get a couple minutes of live
encoding done. Also, I noticed that when the system is more heavily
loaded (as in I start up mozilla while encoding), avirec crashes sooner
(usually during the time of high system load). I decided to run it
through a nother gdb session, which I've appended to the end of this
e-mail. Hope it sheds some more light on the problem.
--Greg
(gdb) run
Starting program: /usr/local/bin/avirec -a bitrate=225 -n ntsc -c DivX5.0 -F 15
-t 5m -g /dev/video0 -G /dev/dsp -m m -x 320 -y 240 -b 128 /tmp/test.avi
[New Thread 1024 (LWP 2961)]
<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/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 'DivX5.0' (808802372)
setting 'bitrate' = '225'
BTTV driver version 0.7.83 detected
Broken VBI implementation; disabling closed captioning
v4l1baseif::grabSetParams(320, 240, 7)
4096
[New Thread 2049 (LWP 2962)]
[New Thread 1026 (LWP 2963)]
8/16 fragments available
4096 bytes each fragment
32768 bytes available
Bread 16384
Bread 16384
Flushed 32768 bytes of data from audio buffers
Using 208 buffers (320x240)
[New Thread 2051 (LWP 2964)]
read /dev/dsp: Interrupted system call
[New Thread 3076 (LWP 2965)]
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<DivX4 plugin> : DivX5 linux encoder
<DivX4 plugin> : quality: 9500
Entering loop
time: 0 frames: 1 cap drop: 42 enc drop: 0v4l1: VIDIOCSYNC in ::grabWait (frame
0)
v4l1: VIDIOCMCAPTURE in ::grabOne: Device or resource busy
time: 0 frames: 1 cap drop: 42 enc drop: 0<Lame MP3 encoder> : LameEncoder init
ialized
<Lame MP3 encoder> : LameEncoder::SetBitrate(16000) 128kbps
<Lame MP3 encoder> : LameEncoder::GetFormat 128
<Lame MP3 encoder> : LameEncoder::Start() ch: 1 freq: 44100
time: 3 frames: 10 cap drop: 100 enc drop: 0ERROR: Freeing unknown memory!
ERROR: Freeing unknown memory!
time: 4 frames: 13 cap drop: 100 enc drop: 0ERROR: Freeing unknown memory!
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 3076 (LWP 2965)]
CaptureProcess::writer (this=0x8065f10) at capproc.cpp:214
214 int id=*(int*)(mem-4);
(gdb) bt
#0 CaptureProcess::writer (this=0x8065f10) at capproc.cpp:214
#1 0x0804d9f2 in CaptureProcess::writer_starter (arg=0x8065f10)
at capproc.h:233
#2 0x402470ba in pthread_start_thread () from /lib/libpthread.so.0
#3 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