[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] New info -- Was: Problems with avi2swf

From: Amartyo Banerjee
Subject: [Swftools-common] New info -- Was: Problems with avi2swf
Date: Mon, 17 Nov 2003 12:58:43 -0800 (PST)

Ok, here is some more info. Perhaps it will help to track down why the segfault 
My version of avifile as reported by  'avifile-config --version'  is 0.7.39. 
Basically it is a cvs
version, checked out on October 10, 2003.
The avi file was created with ffmpeg using the command listed in my last email 
to this mailing
list about combining jpegs into an swf file.
I recompiled avi2swf with the '-g3' flag. Here is the gdb session:
(gdb) file /usr/local/bin/avi2swf
(gdb) set args /home/amartyo/experiment/30sec.avi
(gdb) run
Starting program: /usr/local/bin/avi2swf /home/amartyo/experiment/30sec.avi
<init> : Avifile CVS-0.7.39-031007-11:59-gcc version 3.2 (Mandrake Linux 9.0 
<init> : Available CPU flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr 
e mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
<init> : 1900.10 MHz Intel(R) Pentium(R) 4 CPU 1.90GHz processor detected
<reader> : checking: /home/amartyo/experiment/30sec.avi
<AVI reader> : MainHeader: MicroSecPerFrame=40000 MaxBytesPerSec=25000
 PaddingGranularity=0 Flags=[ HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE ] 
 InitialFrames=0 Streams=1 SuggestedBufferSize=1048576 WxH=352x288
 Scale=0 Rate=0 Start=0 Length=0
<AVI reader> : StreamHeader: Type=vids Handler=DIVX Flags=[ ]
 InitialFrames=0 Scale=1 Rate=25 Start=0 Length=750
 SuggestedBufferSize=1048576 Quality=-1 SampleSize=0 Rect l,r,t,b=0,352,0,288
<AVI reader> : Reading index from offset: 1041184
<AVI reader> : Stream 0 vids : DIVX (0x58564944) 750 chunks (2.93KB)
<StreamCache> : Creating cache for file descriptor: 6

Program received signal SIG32, Real-time event 32.
0x40527479 in sigsuspend () from /lib/i686/libc.so.6
Current language:  auto; currently c
(gdb) bt
#0  0x40527479 in sigsuspend () from /lib/i686/libc.so.6
#1  0x4085de58 in pthread_create () from /lib/i686/libpthread.so.0
#2  0x4085daa1 in pthread_create () from /lib/i686/libpthread.so.0
#3  0x4030ca50 in avm::PthreadTask::PthreadTask(void*, void* (*)(void*), void*)
    () from /usr/local/lib/libaviplay-0.7.so.0
#4  0x40156523 in avm::Cache::create(int) ()
   from /usr/local/lib/libaviplay-0.7.so.0
#5  0x401570f9 in avm::InputStream::async() ()
   from /usr/local/lib/libaviplay-0.7.so.0
#6  0x401533f0 in avm::AviReadHandler::init(char const*) ()
   from /usr/local/lib/libaviplay-0.7.so.0
#7  0x40154bb5 in avm::CreateAviReadHandler(char const*, unsigned) ()
   from /usr/local/lib/libaviplay-0.7.so.0
#8  0x40159d11 in avm::ReadFile::ReadFile(char const*, unsigned) ()
   from /usr/local/lib/libaviplay-0.7.so.0
#9  0x40159ba4 in avm::CreateReadFile(char const*, unsigned) ()
   from /usr/local/lib/libaviplay-0.7.so.0
#10 0x0804a815 in videoreader_avifile_open(_videoreader_t*, char*) (
    v=0xbffff690, filename=0xbffff8b2 "/home/amartyo/experiment/30sec.avi")
    at /usr/local/include/avifile-0.7/avifile.h:472
#11 0x0804abe9 in main (argc=2, argv=0xbffff744) at avi2swf.cc:490
#12 0x40516082 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) cont

Program received signal SIG32, Real-time event 32.
0x40527479 in sigsuspend () from /lib/i686/libc.so.6
(gdb) cont
<reader> : Initialized video stream (chunk tblsz: 750, fmtsz: 40)
Couldn't open video stream
<LDT keeper> : Installed fs segment: 0x40013000
<codec keeper> : Found 11 plugins (/usr/local/lib/avifile-0.7,A:41,V:84)
<XviD plugin> : XviD linux decoder
<codec keeper> : XviD video decoder created

<CImage> : Cannot convert non-YUV image to BGR24

Program received signal SIGSEGV, Segmentation fault.
ringbuffer_clear (r=0x80b8a08) at q.c:194
194         free(i->buffer);
(gdb) bt
#0  ringbuffer_clear (r=0x80b8a08) at q.c:194
#1  0x0804a706 in videoreader_avifile_close(_videoreader_t*) (v=0x80b8a08)
    at avi2swf.cc:331
#2  0x0804bbd9 in finish (i=0x8156168) at v2swf.c:413
#3  0x0804c13e in encodeoneframe (i=0x8156168) at v2swf.c:573
#4  0x0804c91b in v2swf_read (v2swf=0x80b8a08, buffer=0xbfffe690, len=4096)
    at v2swf.c:816
#5  0x0804afb2 in main (argc=2, argv=0xbffff744) at avi2swf.cc:553
#6  0x40516082 in __libc_start_main () from /lib/i686/libc.so.6

Hope this helps in figuring out the problem.

Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

reply via email to

[Prev in Thread] Current Thread [Next in Thread]