I'm trying to recompress some videos made with Corel Photopaint. The videos consist of some (~25) pictures merged together to form the video. All play back with mplayer fine. But when I try to change them to divx with mencoder some work (and get reencoded fine) and some not. File: bk-1-ps-5mb.avi mencoder -ovc divx4 -divx4opts q=5:br=1000 bk-1-ps-5mb.avi -o bk-1-ps-5mb.divx.avi debian unstable Linux wopr 2.4.21-ff #3 Wed Aug 20 01:53:59 CEST 2003 i686 GNU/Linux -rwxr-xr-x 1 root root 1142224 2003-08-06 15:09 /lib/libc-2.3.2.so lrwxrwxrwx 1 root root 13 2003-08-10 01:02 /lib/libc.so.6 -> libc-2.3.2.so XFree86 Version 4.3.0 (Debian 4.3.0-0ds4 20030416150820 dstone@aedificator) Release Date: 18 March 2003 X Protocol Version 11, Revision 0, Release 6.6 Build Operating System: Linux 2.4.21-pre5 i686 [ELF] Build Date: 16 April 2003 Reading specs from /usr/lib/gcc-lib/i386-linux/3.3.1/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i386-linux Thread model: posix gcc version 3.3.1 (Debian) GNU ld version 2.14.90.0.5 20030722 Debian GNU/Linux GNU assembler 2.14.90.0.5 20030722 Debian GNU/Linux processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 11 model name : Intel(R) Celeron(TM) CPU 1133MHz stepping : 1 cpu MHz : 1133.233 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse bogomips : 2260.99 intel i830MG onboard graphics (notebook) dri from dri.sf.net, as of 12. Aug. 03 Intel Corp. 82801CA/CAM AC'97 Audio mencoder -v -ovc divx4 -divx4opts q=5:br=1000 bk-1-ps-5mb.avi -o bk-1-ps-5mb.divx.avi Using GNU internationalization Original domain: messages Original dirname: /usr/share/locale Current domain: mplayer Current dirname: /usr/local/share/locale MEncoder dev-CVS-030916-18:10-3.3.1 (C) 2000-2003 MPlayer Team CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1) Detected cache-line size is 32 bytes CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 SSE Reading /home/robos/.mplayer/codecs.conf: 60 audio & 151 video codecs File not found: 'frameno.avi' Failed to open frameno.avi Reading config file /home/robos/.mplayer/mencoder: No such file or directory init_freetype Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay [file] File size is 5242880 bytes STREAM: [file] bk-1-ps-5mb.avi STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) success: format: 0 data: 0x0 - 0x500000 AVI file format detected. list_end=0xD4 ======= AVI Header ======= us/frame: 200000 (fps=5.000) max bytes/sec: 4598400 padding: 0 MainAVIHeader.dwFlags: (2064) HAS_INDEX TRUST_CKTYPE frames total: 44 initial: 0 streams: 1 Suggested BufferSize: 919680 Size: 639 x 479 ========================== list_end=0xD4 ==> Found video stream: 0 ====== STREAM Header ===== Type: vids FCC: (0) Flags: 0 Priority: 0 Language: 0 InitialFrames: 0 Rate: 1000/200 = 5.000 Start: 0 Len: 44 Suggested BufferSize: 919680 Quality 0 Sample size: 0 ========================== found 'bih', 40 bytes of 40 ======= VIDEO Format ====== biSize 40 biWidth 639 biHeight 479 biPlanes 1 biBitCount 24 biCompression 0='' biSizeImage 919680 =========================== Broken chunk? chunksize=1816 (id=JUNK) list_end=0x2697F60 Found movie at 0x800 - 0x2697F60 stream_seek: WARNING! Can't seek to 0x2697F60 ! Auto-selected AVI video ID = 0 AVI: Searching for audio stream (id:-1) AVI: No audio stream found -> no sound. AVI video size=40465920 (44) audio size=0 VIDEO: [] 639x479 24bpp 5.000 fps 36787.2 kbps (4490.6 kbyte/s) [V] filefmt:3 fourcc:0x0 size:639x479 fps: 5.00 ftime:=0.2000 Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1 ========================================================================== Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 639 x 479 (preferred csp: BGR 24-bit) Trying filter chain: expand divx4 Could not find matching colorspace - retrying with -vop scale... Opening video filter: [scale] SwScale params: -1 x -1 (-1=no scaling) Trying filter chain: scale expand divx4 The selected video_out device is incompatible with this codec. VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 639 x 479 (preferred csp: BGR 24-bit) Trying filter chain: expand divx4 Could not find matching colorspace - retrying with -vop scale... Opening video filter: [scale] SwScale params: -1 x -1 (-1=no scaling) Trying filter chain: scale expand divx4 The selected video_out device is incompatible with this codec. VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 639 x 479 (preferred csp: BGR 24-bit) Trying filter chain: expand divx4 Could not find matching colorspace - retrying with -vop scale... Opening video filter: [scale] SwScale params: -1 x -1 (-1=no scaling) Trying filter chain: scale expand divx4 The selected video_out device is incompatible with this codec. VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 639 x 479 (preferred csp: BGR 24-bit) Trying filter chain: expand divx4 Could not find matching colorspace - retrying with -vop scale... Opening video filter: [scale] SwScale params: -1 x -1 (-1=no scaling) Trying filter chain: scale expand divx4 The selected video_out device is incompatible with this codec. VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 639 x 479 (preferred csp: BGR 24-bit) Trying filter chain: expand divx4 Could not find matching colorspace - retrying with -vop scale... Opening video filter: [scale] SwScale params: -1 x -1 (-1=no scaling) Trying filter chain: scale expand divx4 The selected video_out device is incompatible with this codec. VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 639 x 479 (preferred csp: BGR 24-bit) Trying filter chain: expand divx4 VDec: using BGR 24-bit as output csp (no 0) Movie-Aspect is undefined - no prescaling applied. VO Config (639x479->639x479,flags=0,'MPlayer',0x42475218) REQ: flags=0x201 req=0x0 encoder binary profile: S Segmentation fault (gdb) run -v -ovc divx4 -divx4opts q=5:br=1000 -o bk-1-ps-5mb.divx.avi bk-1-ps-5mb.avi Starting program: /usr/local/bin/mencoder -v -ovc divx4 -divx4opts q=5:br=1000 -o bk-1-ps-5mb.divx.avi bk-1-ps-5mb.avi [New Thread 16384 (LWP 9148)] Using GNU internationalization Original domain: messages Original dirname: /usr/share/locale Current domain: mplayer Current dirname: /usr/local/share/locale MEncoder dev-CVS-030916-18:10-3.3.1 (C) 2000-2003 MPlayer Team CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1) Detected cache-line size is 32 bytes CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 SSE Reading /home/robos/.mplayer/codecs.conf: 60 audio & 151 video codecs File not found: 'frameno.avi' Failed to open frameno.avi Reading config file /home/robos/.mplayer/mencoder: No such file or directory init_freetype Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay [file] File size is 5242880 bytes STREAM: [file] bk-1-ps-5mb.avi STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) success: format: 0 data: 0x0 - 0x500000 AVI file format detected. list_end=0xD4 ======= AVI Header ======= us/frame: 200000 (fps=5.000) max bytes/sec: 4598400 padding: 0 MainAVIHeader.dwFlags: (2064) HAS_INDEX TRUST_CKTYPE frames total: 44 initial: 0 streams: 1 Suggested BufferSize: 919680 Size: 639 x 479 ========================== list_end=0xD4 ==> Found video stream: 0 ====== STREAM Header ===== Type: vids FCC: (0) Flags: 0 Priority: 0 Language: 0 InitialFrames: 0 Rate: 1000/200 = 5.000 Start: 0 Len: 44 Suggested BufferSize: 919680 Quality 0 Sample size: 0 ========================== found 'bih', 40 bytes of 40 ======= VIDEO Format ====== biSize 40 biWidth 639 biHeight 479 biPlanes 1 biBitCount 24 biCompression 0='' biSizeImage 919680 =========================== Broken chunk? chunksize=1816 (id=JUNK) list_end=0x2697F60 Found movie at 0x800 - 0x2697F60 stream_seek: WARNING! Can't seek to 0x2697F60 ! Auto-selected AVI video ID = 0 AVI: Searching for audio stream (id:-1) AVI: No audio stream found -> no sound. AVI video size=40465920 (44) audio size=0 VIDEO: [] 639x479 24bpp 5.000 fps 36787.2 kbps (4490.6 kbyte/s) [V] filefmt:3 fourcc:0x0 size:639x479 fps: 5.00 ftime:=0.2000 Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1 ========================================================================== Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 639 x 479 (preferred csp: BGR 24-bit) Trying filter chain: expand divx4 Could not find matching colorspace - retrying with -vop scale... Opening video filter: [scale] SwScale params: -1 x -1 (-1=no scaling) Trying filter chain: scale expand divx4 The selected video_out device is incompatible with this codec. VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 639 x 479 (preferred csp: BGR 24-bit) Trying filter chain: expand divx4 Could not find matching colorspace - retrying with -vop scale... Opening video filter: [scale] SwScale params: -1 x -1 (-1=no scaling) Trying filter chain: scale expand divx4 The selected video_out device is incompatible with this codec. VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 639 x 479 (preferred csp: BGR 24-bit) Trying filter chain: expand divx4 Could not find matching colorspace - retrying with -vop scale... Opening video filter: [scale] SwScale params: -1 x -1 (-1=no scaling) Trying filter chain: scale expand divx4 The selected video_out device is incompatible with this codec. VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 639 x 479 (preferred csp: BGR 24-bit) Trying filter chain: expand divx4 Could not find matching colorspace - retrying with -vop scale... Opening video filter: [scale] SwScale params: -1 x -1 (-1=no scaling) Trying filter chain: scale expand divx4 The selected video_out device is incompatible with this codec. VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 639 x 479 (preferred csp: BGR 24-bit) Trying filter chain: expand divx4 Could not find matching colorspace - retrying with -vop scale... Opening video filter: [scale] SwScale params: -1 x -1 (-1=no scaling) Trying filter chain: scale expand divx4 The selected video_out device is incompatible with this codec. VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 639 x 479 (preferred csp: BGR 24-bit) Trying filter chain: expand divx4 VDec: using BGR 24-bit as output csp (no 0) Movie-Aspect is undefined - no prescaling applied. VO Config (639x479->639x479,flags=0,'MPlayer',0x42475218) REQ: flags=0x201 req=0x0 encoder binary profile: S Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 9148)] 0x082ec86e in uw_frame_state_for () (gdb) bt #0 0x082ec86e in uw_frame_state_for () #1 0x082ec9a9 in __frame_state_for () #2 0x406c3712 in __get_eh_table_language () from /usr/lib/libstdc++-libc6.2-2.so.3 #3 0x406c3938 in __unwinding_cleanup () from /usr/lib/libstdc++-libc6.2-2.so.3 #4 0x406c3b55 in __throw () from /usr/lib/libstdc++-libc6.2-2.so.3 #5 0x4004b33a in ?? () from /usr/local/lib/libdivxencore.so.0 #6 0x000000d4 in ?? () #7 0x4068f040 in __after_morecore_hook () from /lib/libc.so.6 #8 0x4068f040 in __after_morecore_hook () from /lib/libc.so.6 #9 0x4005ded2 in encore () from /usr/local/lib/libdivxencore.so.0 #10 0x080ad7c2 in config (vf=0xd4, width=639, height=479, d_width=639, d_height=479, flags=0, outfmt=1111970328) at ve_divx4.c:313 #11 0x080c58c9 in vf_next_config (vf=0x84d58c8, width=212, height=212, d_width=212, d_height=212, voflags=212, outfmt=1111970328) at vf.c:486 #12 0x080b9016 in mpcodecs_config_vo (sh=0x84b3288, w=479, h=639, preferred_outfmt=212) at vd.c:316 #13 0x080b976a in init (sh=0x84b3288) at vd_raw.c:46 #14 0x080b87d6 in init_video (sh_video=0x84b3288, codecname=0x0, vfm=0x0, status=1) at dec_video.c:232 #15 0x080b8a84 in init_best_video_codec (sh_video=0x84b3288, video_codec_list=0xbfffe494, video_fm_list=0x0) at dec_video.c:278 #16 0x08087de8 in main (argc=212, argv=0xd4) at mencoder.c:676 (gdb) disass $pc-32 $pc+32 Dump of assembler code from 0x82ec84e to 0x82ec88e: 0x082ec84e : or %cl,0x5650f045(%ebp) 0x082ec854 : call 0x82eba6c 0x082ec859 : mov %eax,%edi 0x082ec85b : mov %eax,%esi 0x082ec85d : add 0xfffffff0(%ebp),%edi 0x082ec860 : add $0x10,%esp 0x082ec863 : jmp 0x82ec7ee 0x082ec865 : lea 0x0(%esi),%esi 0x082ec868 : mov 0x8(%ebp),%ecx 0x082ec86b : mov 0x4c(%ecx),%eax 0x082ec86e : cmpw $0xb858,(%eax) 0x082ec873 : je 0x82ec944 0x082ec879 : cmpb $0xb8,(%eax) 0x082ec87c : jne 0x82ec887 0x082ec87e : cmpl $0xad,0x1(%eax) 0x082ec885 : je 0x82ec88e 0x082ec887 : mov $0x5,%eax 0x082ec88c : jmp 0x82ec83d End of assembler dump. (gdb) info all-registers eax 0xd4 212 ecx 0xbfffde40 -1073750464 edx 0x0 0 ebx 0x83e3f40 138297152 esp 0xbfffdd50 0xbfffdd50 ebp 0xbfffdd68 0xbfffdd68 esi 0xbfffde40 -1073750464 edi 0xbfffe048 -1073749944 eip 0x82ec86e 0x82ec86e eflags 0x210246 2163270 cs 0x23 35 ss 0x2b 43 ds 0x2b 43 es 0x2b 43 fs 0x0 0 gs 0x0 0 st0 0 (raw 0x00000000000000000000) st1 0 (raw 0x00000000000000000000) st2 0 (raw 0x00000000000000000000) st3 0 (raw 0x00000000000000000000) st4 0 (raw 0x00000000000000000000) st5 0 (raw 0x00000000000000000000) st6 -1 (raw 0xbfff8000000000000000) st7 -1 (raw 0xbfff8000000000000000) fctrl 0x37f 895 fstat 0x21 33 ftag 0xffff 65535 fiseg 0x23 35 fioff 0x400866a9 1074292393 foseg 0x2b 43 fooff 0x400b755c 1074492764 fop 0x5d8 1496 xmm0 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x8000000000000000, 0x8000000000000000}, v16_int8 = { 0xff }, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff, 0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff} xmm1 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x8000000000000000, 0x8000000000000000}, v16_int8 = { 0xff }, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff, 0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff} xmm2 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x8000000000000000, 0x8000000000000000}, v16_int8 = { 0xff }, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff, 0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff} xmm3 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x8000000000000000, 0x8000000000000000}, v16_int8 = { 0xff }, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff, 0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff} xmm4 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x8000000000000000, 0x8000000000000000}, v16_int8 = { 0xff }, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff, 0xffffffffffffffff}, ---Type to continue, or q to quit--- uint128 = 0xffffffffffffffffffffffffffffffff} xmm5 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x8000000000000000, 0x8000000000000000}, v16_int8 = { 0xff }, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff, 0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff} xmm6 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x8000000000000000, 0x8000000000000000}, v16_int8 = { 0xff }, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff, 0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff} xmm7 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x8000000000000000, 0x8000000000000000}, v16_int8 = { 0xff }, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff, 0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff} mxcsr 0x1f80 8064 mm0 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}} mm1 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}} mm2 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}} mm3 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}} mm4 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}} mm5 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}} mm6 {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000}, v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80}} mm7 {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000}, v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80}}