More info:

If I don't specify an audio bitrate, I can get past the seg fault. 
Then, the result avi is identified by avitype as:


cache:~ # avitype test_.avi                                           
                                              <init> : Avifile
RELEASE-0.7.38-031104-21:44-gcc version 3.3.1 (SuSE Linux)
<init> : Available CPU flags: fpu vme de pse tsc msr pae mce cx8 apic
sep mtrr pge mca cmov pat pse36 mmx fxsr sse
<init> : 866.48 MHz Pentium III (Coppermine) processor detected
<reader> : checking: test_.avi
<AVI reader> : MainHeader: MicroSecPerFrame=66666 MaxBytesPerSec=0
 PaddingGranularity=0 Flags=[ HAS_INDEX TRUST_CKTYPE ] TotalFrames=255
 InitialFrames=0 Streams=2 SuggestedBufferSize=0 WxH=384x288
 Scale=66666 Rate=1000000 Start=0 Length=0
<AVI reader> : StreamHeader: Type=vids Handler=DIV3 Flags=[ ]
 InitialFrames=0 Scale=66666 Rate=1000000 Start=0 Length=255
 SuggestedBufferSize=0 Quality=-1 SampleSize=0 Rect l,r,t,b=0,384,0,288
<AVI reader> : StreamHeader: Type=auds Handler=0x1 Flags=[ ]
 InitialFrames=0 Scale=4 Rate=176400 Start=0 Length=1073741823
 SuggestedBufferSize=0 Quality=0 SampleSize=4 Rect l,r,t,b=0,0,0,0
<AVI reader> : Reading index from offset: 1572028
<AVI reader> : WARNING: invalid index entry 152 -- id: 1651978544 
offset: 1034570 size:  4294967295 (pos: 1574476)
<AVI reader> : Reconstructing index from offset: 65544
<AVI reader> : Trying to reconstruct broken avi stream (could take a
lot of time)
<AVI reader> : WARNING: stream header has incorrect dwLength (255 != 300)
<AVI reader> : Stream 0 vids : DIV3 (0x33564944) 300 chunks (1.17KB)
<AVI reader> : WARNING: stream header has incorrect dwLength
(1073741823 != 1420)
<AVI reader> : Stream 1 auds : PCM (0x1) 1 chunks (0.01KB)
<StreamCache> : Creating cache for file descriptor: 3


On Fri, 28 Jan 2005 14:42:09 -0700, Steve Webb <[EMAIL PROTECTED]> wrote:
> Hi there.
> 
> Having problems with a Suse 9.1 machine using the basic hauppage card
> (Bt878) capturing audio with my avirec.
> 
> Commandline:
> avirec -m s -n ntsc -t 7200s -c "DivX ;-) Low-Motion" -a
> BitRate=350000 -a KeyFrames=30 -d test.avi -g /dev/video0 -G /dev/dsp
> -F 15 -d -b 64
> 
> Error (after about 10 seconds of capture):
> ==> hr:0  rest:27  fnum:147 0x2
> ==> hr:0  rest:28  fnum:148 0x2
> read /dev/dsp: Input/output error
> ==> hr:0  rest:29  fnum:149 0x2
> frame rate for audio: 8000
> <Lame MP3 encoder> : Setting bit rate to 8000 (64kbps)
>  time: 10 frames: 152 cap drop: 2 enc drop: 0Segmentation fault
> 
> If I capture without any audio (-m n), the capture goes fine (but no
> audio obviously).
> 
> The esound daemon is running (turning it off doesn't change things)
> and the soundcard does work and I can use several other apps to view
> the TV (with audio).
> 
> There are no errors or relevant messages in /var/log/messages or 
> /var/log/boot.*
> 
> Is the error misleading?  Is the mp3 encoder just kicking-in after 10
> seconds of capture and the lame encoder codec failing or something?
> From the looks of the error message, avirec can't read from /dev/dsp,
> but I'm thinking that it should fail right away instead of waiting for
> 10 seconds to go by.
> 
> I'm using the stock Suse (9.0) build of the avifile stuff and I'm
> using the windows_all codec bundle from the mplayer site with the
> binaries.tgz.tar from the avifile site extracted over the top of the
> windows_all stuff.
> 
> Any ideas?
> 
> - Steve
> 
> --
> Sent from Steve Webb's gmail account.
> 


-- 
Sent from Steve Webb's gmail account.

_______________________________________________
Avifile mailing list
[email protected]
http://prak.org/mailman/listinfo/avifile

Reply via email to