Hi there,

I was having a problem with avirec capture performance being very poor -
lots of dropped frames (dropped in capture, none dropped in encoding). This
even at 320x240, with -m n switch specified to disable audio recording.
Stopping X and running from the console had no effect. I tried recompiling
with --enable-release, but this had no effect either. This was with avifile
downloaded from cvs a few days ago.

I thought maybe a newer version of avifile might help, so I checked out the
current cvs, and then the 0.7.7 tarball from the avifile site, but with both
I'm getting segmentation faults and freezing running avirec. It doesn't seem
to be codec-dependent, although all the codecs I have been able to try were
win32 ones (eg. DivX Fast-motion).

Here is the output, just listing the codecs available:
--- snip ---
root@dvr:/mnt/media/capture# avirec -l
<Init> : Avifile CVS-020527-21:14-2.95.3
<Init> : Available CPU flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr
pge mca cmov pat pse36 mmx fxsr sse
<Init> : 1100.05 MHz Intel(R) Celeron(TM) CPU                1100MHz
processor detected
<LDT_Keeper> : Installed fs segment: 0x4014d000
<Codec keeper> : /usr/local/lib/avifile0.7/win32.so:  A/V 13/48
<Codec keeper> : /usr/local/lib/avifile0.7/vorbis_audio.so:  A/V 1/0
<Codec keeper> : /usr/local/lib/avifile0.7/mpeg_audiodec.so:  A/V 1/0
<Codec keeper> : /usr/local/lib/avifile0.7/mp3lame_audioenc.so:  A/V 1/0
<Codec keeper> : /usr/local/lib/avifile0.7/mjpeg.so:  A/V 0/1
<Codec keeper> : /usr/local/lib/avifile0.7/mad_audiodec.so:  A/V 1/0
<Codec keeper> : /usr/local/lib/avifile0.7/ffmpeg.so:  A/V 2/8
<Codec keeper> : /usr/local/lib/avifile0.7/audiodec.so:  A/V 5/0
<Codec keeper> : /usr/local/lib/avifile0.7/ac3pass.so:  A/V 1/0
Uncompressed RGB
Uncompressed YUY2
Uncompressed YV12
DivX ;-) VKI (Fast-Motion)
<Win32 plugin> : GetRegValue: no such value for Software\LinuxLoader\
BitRate
  BitRate=0
<Win32 plugin> : GetRegValue: no such value for Software\LinuxLoader\
Crispness
  Crispness=0
<Win32 plugin> : GetRegValue: no such value for Software\LinuxLoader\
KeyFrames
  KeyFrames=0
DivX ;-) VKI (Low-Motion)
<Win32 plugin> : GetRegValue: no such value for Software\LinuxLoader\
BitRate
  BitRate=0
<Win32 plugin> : GetRegValue: no such value for Software\LinuxLoader\
Crispness
  Crispness=0
<Win32 plugin> : GetRegValue: no such value for Software\LinuxLoader\
KeyFrames
  KeyFrames=0
DivX ;-) Fast-Motion
<Win32 plugin> : GetRegValue: no such value for Software\LinuxLoader\
BitRate
  BitRate=0
<Win32 plugin> : GetRegValue: no such value for Software\LinuxLoader\
Crispness
  Crispness=0
<Win32 plugin> : GetRegValue: no such value for Software\LinuxLoader\
KeyFrames
  KeyFrames=0
DivX ;-) Low-Motion
<Win32 plugin> : GetRegValue: no such value for Software\LinuxLoader\
BitRate
  BitRate=0
<Win32 plugin> : GetRegValue: no such value for Software\LinuxLoader\
Crispness
  Crispness=0
<Win32 plugin> : GetRegValue: no such value for Software\LinuxLoader\
KeyFrames
  KeyFrames=0
Microsoft MPEG-4
<Win32 plugin> : GetRegValue: no such value for Software\LinuxLoader\
BitRate
  BitRate=0
<Win32 plugin> : GetRegValue: no such value for Software\LinuxLoader\
Crispness
  Crispness=0
<Win32 plugin> : GetRegValue: no such value for Software\LinuxLoader\
KeyFrames
  KeyFrames=0
Brooktree(r) ProSummer Video (32)
Brooktree(r) YUV411 Raw
Indeo(r) Video 5.04
  QuickCompress=0
Indeo Video 4.1
<Win32 plugin> : GetRegValue: no such value for Software\Intel\Indeo\4.1
QuickCompress
  QuickCompress=0
MS Motion JPEG
AVID Codec (AVRn)
TechSmith Screen Capture (TSCC)
Huffyuv lossless codec [HFYU]
VP31(r) Compressor
Cinepak Video
I263
Motion Wavelets
AVI Mszh
AVI Zlib
MS RLE
OS Motion JPEG
  h_samp=(no default)
  v_samp=(no default)
  quant_tbl=(no default)
  smoothing=(no default)
Segmentation fault
--- snip ---


The following was after I did one capture that seemed to work fine. Then I
tried exactly the same capture - avirec produced the following output and
then the machine froze up completely. During several tests, I found that if
avirec segfaults during capture, the machine becomes completely unstable.
Usually running any other programs after this results in the machine
freezing up.

--- snip ---
root@dvr:/mnt/media/capture# avirec -i1 -t5s -c"DivX ;-) Fast-Motion"
testav.avi
<Init> : Avifile CVS-020527-21:14-2.95.3
<Init> : Available CPU flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr
pge mca cmov pat pse36 mmx fxsr sse
<Init> : 1100.05 MHz Intel(R) Celeron(TM) CPU                1100MHz
processor detected
<LDT_Keeper> : Installed fs segment: 0x4014d000
<Codec keeper> : /usr/local/lib/avifile0.7/win32.so:  A/V 13/48
<Codec keeper> : /usr/local/lib/avifile0.7/vorbis_audio.so:  A/V 1/0
<Codec keeper> : /usr/local/lib/avifile0.7/mpeg_audiodec.so:  A/V 1/0
<Codec keeper> : /usr/local/lib/avifile0.7/mp3lame_audioenc.so:  A/V 1/0
<Codec keeper> : /usr/local/lib/avifile0.7/mjpeg.so:  A/V 0/1
<Codec keeper> : /usr/local/lib/avifile0.7/mad_audiodec.so:  A/V 1/0
<Codec keeper> : /usr/local/lib/avifile0.7/ffmpeg.so:  A/V 2/8
<Codec keeper> : /usr/local/lib/avifile0.7/audiodec.so:  A/V 5/0
<Codec keeper> : /usr/local/lib/avifile0.7/ac3pass.so:  A/V 1/0
Using 61 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(384, 288, 7)
1024
Using 292 buffers
0/16 fragments available
1024 bytes each fragment
0 bytes available
Flushed 0 bytes of data from audio buffers
colorspace = 1
<AVI writer> : AviWriteFile::AviWriteFile()
 time: 0 frames: 0 cap drop: 0 enc drop: 0
--- snip ---

Some system information:
Celeron 1GHz, 128MB RAM, Via 694T/686-based motherboard
GeForce 2 MX 200 AGP
Slackware 8.0
Kernel 2.4.18
XFree86 4.2.0 with nVidia 1.0-2880 drivers
Dynalink TView99 capture card (Bt878-based)
IDE DMA enabled, drive formatted with ext3

XawTV 3.74 works fine, and ffmpeg is able to record OK from the video
device, although only at low resolutions without dropping frames. avibench
reports approx 65MB/sec playing a DivX file, if that's any guage of system
performance.

Thanks,
Paul Eggleton


_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to