ZM 1.24.2 Video Generation Failed!

Forum for questions and support relating to the 1.24.x releases only.
Locked
temper5
Posts: 5
Joined: Sat Sep 19, 2009 2:01 pm

ZM 1.24.2 Video Generation Failed!

Post by temper5 »

Hi!
Have a problem with ZM 1.24.2 from svn and ffmpeg from svn

/tmp/zmvideo.log

09/19/09 16:55:55.040350 zmvideo[2685].INF [Creating video file Event-121-r1-s1$
09/19/09 16:55:55.280059 zmvideo[2685].ERR [Unable to generate video, check /va$
09/19/09 16:56:03.046566 zmvideo[2689].INF [Creating video file Event-121-r1-s1$
09/19/09 16:56:03.268913 zmvideo[2689].ERR [Unable to generate video, check /va$
09/19/09 16:56:10.014806 zmvideo[2693].INF [Creating video file Event-121-r1-s1$
09/19/09 16:56:10.177316 zmvideo[2693].ERR [Unable to generate video, check /va$
09/19/09 16:58:54.278176 zmvideo[2771].INF [Creating video file Event-121-r1-s1$
09/19/09 16:58:54.435595 zmvideo[2771].ERR [Unable to generate video, check /va$
09/19/09 17:08:08.069657 zmvideo[3071].INF [Creating video file Event-129-r1-s1$
09/19/09 17:08:08.224277 zmvideo[3071].ERR [Unable to generate video, check /va$

/var/www/events/1/121/ffmpeg.log

FFmpeg version SVN-r19830, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-shared --enable-pthreads
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.35. 0 / 52.35. 0
libavformat 52.38. 0 / 52.38. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
built on Sep 13 2009 18:29:36, gcc: 4.3.3

Seems stream 0 codec frame rate differs from container frame rate: 1.08 (27/25)$
Input #0, image2, from '%03d-capture.jpg':
Duration: 00:00:26.85, start: 0.000000, bitrate: N/A
Stream #0.0: Video: mjpeg, yuvj420p, 320x240 [PAR 1:1 DAR 4:3], 27 tbr, 1.0$
Output #0, avi, to 'Event-121-r1-s1.avi':
Stream #0.0: Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 200 $
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
Illegal instruction
promethiusan
Posts: 9
Joined: Mon Sep 21, 2009 7:53 pm

Post by promethiusan »

Hmm, I had SVN-r19480 of ffmpeg that wasn't working. I just upgraded to SVN-r20006 and still can't get it to work. I'm seeing this in the ffmpeg.log:

Input #0, image2, from '%05d-capture.jpg':
Duration: 00:00:03.83, start: 0.000000, bitrate: N/A
Stream #0.0, 100/2969: Video: mjpeg, gray, 320x240 [PAR 1:1 DAR 4:3], 100/2969, 29.69 tbr, 29.69 tbn, 29.69 tbc
Output #0, asf, to 'SideYard-68534-r1-s1.asf':
Stream #0.0, 1/90000: Video: 0x0000, gray, 320x240 [PAR 1:1 DAR 4:3], 1/25, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0.0 -> #0.0
Encoder (codec id 17) not found for output stream #0.0
*** glibc detected *** /usr/local/bin/ffmpeg: free(): invalid next size (normal): 0x095a8070 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb75d7604]
/lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb75d95b6]
/usr/lib/i686/cmov/libavformat.so.52(url_fclose+0x24)[0xb7f48074]

I have tried with two different monitor source types and different output formats, I see changes the "codec id" but the glibc error stays the same. I get the feeling I have some incompatibility between ffmpeg and some library, but I have no clue whats going on.

The full ffmpeg dump is here:

FFmpeg version SVN-r20006, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Sep 23 2009 23:47:52 with gcc 4.3.3
configuration: --enable-gpl --enable-shared --enable-pthreads
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.36. 0 / 52.20. 0
libavformat 52.39. 0 / 52.31. 0
libavdevice 52. 2. 0 / 52. 1. 0
libswscale 0. 7. 1 / 0. 7. 1
[mjpeg @ 0x958a070]marker=d8 avail_size_in_buf=47835
[mjpeg @ 0x958a070]buffer too small, expanding to 47835 bytes
[mjpeg @ 0x958a070]marker parser used 0 bytes (0 bits)
[mjpeg @ 0x958a070]marker=e0 avail_size_in_buf=47833
[mjpeg @ 0x958a070]marker parser used 16 bytes (128 bits)
[mjpeg @ 0x958a070]marker=db avail_size_in_buf=47815
[mjpeg @ 0x958a070]index=0
[mjpeg @ 0x958a070]qscale[0]: 0
[mjpeg @ 0x958a070]marker parser used 67 bytes (536 bits)
[mjpeg @ 0x958a070]marker=c0 avail_size_in_buf=47746
[mjpeg @ 0x958a070]sof0: picture: 320x240
[mjpeg @ 0x958a070]component 0 1:1 id: 0 quant:0
[mjpeg @ 0x958a070]pix fmt id 11000000
[mjpeg @ 0x958a070]marker parser used 11 bytes (88 bits)
[mjpeg @ 0x958a070]marker=c4 avail_size_in_buf=47733
[mjpeg @ 0x958a070]class=0 index=0 nb_codes=12
[mjpeg @ 0x958a070]marker parser used 31 bytes (248 bits)
[mjpeg @ 0x958a070]marker=c4 avail_size_in_buf=47700
[mjpeg @ 0x958a070]class=1 index=0 nb_codes=251
[mjpeg @ 0x958a070]marker parser used 181 bytes (1448 bits)
[mjpeg @ 0x958a070]marker=da avail_size_in_buf=47517
[mjpeg @ 0x958a070]escaping removed 196 bytes
[mjpeg @ 0x958a070]component: 0
[mjpeg @ 0x958a070]marker parser used 47320 bytes (378555 bits)
[mjpeg @ 0x958a070]marker=d9 avail_size_in_buf=0
[mjpeg @ 0x958a070]mjpeg decode frame unused 0 bytes
Input #0, image2, from '%05d-capture.jpg':
Duration: 00:00:03.83, start: 0.000000, bitrate: N/A
Stream #0.0, 100/2969: Video: mjpeg, gray, 320x240 [PAR 1:1 DAR 4:3], 100/2969, 29.69 tbr, 29.69 tbn, 29.69 tbc
Output #0, asf, to 'SideYard-68534-r1-s1.asf':
Stream #0.0, 1/90000: Video: 0x0000, gray, 320x240 [PAR 1:1 DAR 4:3], 1/25, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0.0 -> #0.0
Encoder (codec id 17) not found for output stream #0.0
*** glibc detected *** /usr/local/bin/ffmpeg: free(): invalid next size (normal): 0x095a8070 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb75d7604]
/lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb75d95b6]
/usr/lib/i686/cmov/libavformat.so.52(url_fclose+0x24)[0xb7f48074]
======= Memory map: ========
08048000-0805d000 r-xp 00000000 08:01 47096705 /usr/local/bin/ffmpeg
0805d000-0805e000 r--p 00014000 08:01 47096705 /usr/local/bin/ffmpeg
0805e000-0805f000 rw-p 00015000 08:01 47096705 /usr/local/bin/ffmpeg
0805f000-08063000 rw-p 0805f000 00:00 0
09582000-09a47000 rw-p 09582000 00:00 0 [heap]
b6f00000-b6f21000 rw-p b6f00000 00:00 0
b6f21000-b7000000 ---p b6f21000 00:00 0
b702d000-b703a000 r-xp 00000000 08:01 25567297 /lib/libgcc_s.so.1
b703a000-b703b000 r--p 0000c000 08:01 25567297 /lib/libgcc_s.so.1
b703b000-b703c000 rw-p 0000d000 08:01 25567297 /lib/libgcc_s.so.1
b704b000-b704e000 rw-p b704b000 00:00 0
b704e000-b7052000 r-xp 00000000 08:01 47007291 /usr/lib/libXdmcp.so.6.0.0
b7052000-b7053000 rw-p 00003000 08:01 47007291 /usr/lib/libXdmcp.so.6.0.0
b7053000-b7057000 r-xp 00000000 08:01 47007981 /usr/lib/libogg.so.0.5.3
b7057000-b7058000 r--p 00003000 08:01 47007981 /usr/lib/libogg.so.0.5.3
b7058000-b7059000 rw-p 00004000 08:01 47007981 /usr/lib/libogg.so.0.5.3
b7059000-b70ae000 r-xp 00000000 08:01 47007983 /usr/lib/liboil-0.3.so.0.3.0
b70ae000-b70af000 r--p 00054000 08:01 47007983 /usr/lib/liboil-0.3.so.0.3.0
b70af000-b70c6000 rw-p 00055000 08:01 47007983 /usr/lib/liboil-0.3.so.0.3.0
b70c6000-b70c8000 rw-p b70c6000 00:00 0
b70c8000-b70ca000 r-xp 00000000 08:01 47007280 /usr/lib/libXau.so.6.0.0
b70ca000-b70cb000 r--p 00001000 08:01 47007280 /usr/lib/libXau.so.6.0.0
b70cb000-b70cc000 rw-p 00002000 08:01 47007280 /usr/lib/libXau.so.6.0.0
b70cc000-b70e4000 r-xp 00000000 08:01 47005834 /usr/lib/libxcb.so.1.1.0
b70e4000-b70e5000 r--p 00017000 08:01 47005834 /usr/lib/libxcb.so.1.1.0
b70e5000-b70e6000 rw-p 00018000 08:01 47005834 /usr/lib/libxcb.so.1.1.0
b70e6000-b70e7000 rw-p b70e6000 00:00 0
b70e7000-b70ee000 r-xp 00000000 08:01 49769315 /lib/tls/i686/cmov/librt-2.9.so
b70ee000-b70ef000 r--p 00006000 08:01 49769315 /lib/tls/i686/cmov/librt-2.9.so
b70ef000-b70f0000 rw-p 00007000 08:01 49769315 /lib/tls/i686/cmov/librt-2.9.so
b70f0000-b70f2000 r-xp 00000000 08:01 49769302 /lib/tls/i686/cmov/libdl-2.9.so
b70f2000-b70f3000 r--p 00001000 08:01 49769302 /lib/tls/i686/cmov/libdl-2.9.so
b70f3000-b70f4000 rw-p 00002000 08:01 49769302 /lib/tls/i686/cmov/libdl-2.9.so
b70f4000-b70f9000 r-xp 00000000 08:01 47008086 /usr/lib/libraw1394.so.8.2.0
b70f9000-b70fa000 r--p 00004000 08:01 47008086 /usr/lib/libraw1394.so.8.2.0
b70fa000-b70fb000 rw-p 00005000 08:01 47008086 /usr/lib/libraw1394.so.8.2.0
b70fb000-b7116000 r-xp 00000000 08:01 47008834 /usr/lib/libvorbis.so.0.4.0
b7116000-b7117000 r--p 0001a000 08:01 47008834 /usr/lib/libvorbis.so.0.4.0
b7117000-b7125000 rw-p 0001b000 08:01 47008834 /usr/lib/libvorbis.so.0.4.0
b7125000-b7130000 r-xp 00000000 08:01 47008214 /usr/lib/libvorbisenc.so.2.0.3
b7130000-b7131000 r--p 0000a000 08:01 47008214 /usr/lib/libvorbisenc.so.2.0.3
b7131000-b721f000 rw-p 0000b000 08:01 47008214 /usr/lib/libvorbisenc.so.2.0.3
b721f000-b7220000 rw-p b721f000 00:00 0
b7220000-b726f000 r-xp 00000000 08:01 47008178 /usr/lib/libtheora.so.0.3.4
b726f000-b7270000 r--p 0004e000 08:01 47008178 /usr/lib/libtheora.so.0.3.4
b7270000-b7271000 rw-p 0004f000 08:01 47008178 /usr/lib/libtheora.so.0.3.4
b7271000-b728c000 r-xp 00000000 08:01 37363714 /usr/lib/sse2/libspeex.so.1.5.0
b728c000-b728d000 r--p 0001a000 08:01 37363714 /usr/lib/sse2/libspeex.so.1.5.0
b728d000-b728e000 rw-p 0001b000 08:01 37363714 /usr/lib/sse2/libspeex.so.1.5.0
b728e000-b72fb000 r-xp 00000000 08:01 47008109 /usr/lib/libschroedinger-1.0.so.0.1.0
b72fb000-b72fc000 r--p 0006d000 08:01 47008109 /usr/lib/libschroedinger-1.0.so.0.1.0
b72fc000-b72fd000 rw-p 0006e000 08:01 47008109 /usr/lib/libschroedinger-1.0.so.0.1.0
b72fd000-b72fe000 rw-p b72fd000 00:00 0
b72fe000-b730a000 r-xp 00000000 08:01 47007726 /usr/lib/libgsm.so.1.0.12
b730a000-b730b000 rw-p 0000b000 08:01 47007726 /usr/lib/libgsm.so.1.0.12
b730b000-b731f000 r-xp 00000000 08:01 25567393 /lib/libz.so.1.2.3.3
b731f000-b7320000 r--p 00013000 08:01 25567393 /lib/libz.so.1.2.3.3
b7320000-b7321000 rw-p 00014000 08:01 25567393 /lib/libz.so.1.2.3.3
b7321000-b7322000 rw-p b7321000 00:00 0
b7322000-b7330000 r-xp 00000000 08:01 47007293 /usr/lib/libXext.so.6.4.0
b7330000-b7331000 r--p 0000d000 08:01 47007293 /usr/lib/libXext.so.6.4.0
b7331000-b7332000 rw-p 0000e000 08:01 47007293 /usr/lib/libXext.so.6.4.0
b7332000-b741c000 r-xp 00000000 08:01 47007274 /usr/lib/libX11.so.6.2.0
b741c000-b741d000 ---p 000ea000 08:01 47007274 /usr/lib/libX11.so.6.2.0
b741d000-b741e000 r--p 000ea000 08:01 47007274 /usr/lib/libX11.so.6.2.0
b741e000-b7420000 rw-p 000eb000 08:01 47007274 /usr/lib/libX11.so.6.2.0
b7420000-b7421000 rw-p b7420000 00:00 0
b7421000-b74e4000 r-xp 00000000 08:01 47007354 /usr/lib/libasound.so.2.0.0
b74e4000-b74e6000 r--p 000c2000 08:01 47007354 /usr/lib/libasound.so.2.0.0
b74e6000-b74e9000 rw-p 000c4000 08:01 47007354 /usr/lib/libasound.so.2.0.0
b74e9000-b7515000 r-xp 00000000 08:01 47008619 /usr/lib/libdc1394.so.22.1.0
b7515000-b7516000 rw-p 0002b000 08:01 47008619 /usr/lib/libdc1394.so.22.1.0
b7516000-b7556000 rw-p b7516000 00:00 0
b7556000-b7563000 r-xp 00000000 08:01 47457342 /usr/lib/i686/cmov/libavutil.so.49.15.0
b7563000-b7564000 r--p 0000c000 08:01 47457342 /usr/lib/i686/cmov/libavutil.so.49.15.0
b7564000-b7565000 rw-p 0000d000 08:01 47457342 /usr/lib/i686/cmov/libavutil.so.49.15.0
b7565000-b7568000 rw-p b7565000 00:00 0
b7568000-b76c4000 r-xp 00000000 08:01 49769299 /lib/tls/i686/cmov/libc-2.9.so
b76c4000-b76c5000 ---p 0015c000 08:01 49769299 /lib/tls/i686/cmov/libc-2.9.so
b76c5000-b76c7000 r--p 0015c000 08:01 49769299 /lib/tls/i686/cmov/libc-2.9.so
b76c7000-b76c8000 rw-p 0015e000 08:01 49769299 /lib/tls/i686/cmov/libc-2.9.so
b76c8000-b76cc000 rw-p b76c8000 00:00 0
b76cc000-b76e1000 r-xp 00000000 08:01 49769313 /lib/tls/i686/cmov/libpthread-2.9.so
b76e1000-b76e2000 r--p 00014000 08:01 49769313 /lib/tls/i686/cmov/libpthread-2.9.so
b76e2000-b76e3000 rw-p 00015000 08:01 49769313 /lib/tls/i686/cmov/libpthread-2.9.so
b76e3000-b76e5000 rw-p b76e3000 00:00 0
b76e5000-b7709000 r-xp 00000000 08:01 49769303 /lib/tls/i686/cmov/libm-2.9.so
b7709000-b770a000 r--p 00023000 08:01 49769303 /lib/tls/i686/cmov/libm-2.9.so
b770a000-b770b000 rw-p 00024000 08:01 49769303 /lib/tls/i686/cmov/libm-2.9.so
b770b000-b7739000 r-xp 00000000 08:01 47457413 /usr/lib/i686/cmov/libswscale.so.0.7.1
b7739000-b773a000 r--p 0002d000 08:01 47457413 /usr/lib/i686/cmov/libswscale.so.0.7.1
b773a000-b773b000 rw-p 0002e000 08:01 47457413 /usr/lib/i686/cmov/libswscale.so.0.7.1
b773b000-b7749000 r-xp 00000000 08:01 47096433 /usr/local/lib/libavutil.so.50.3.0
b7749000-b774a000 r--p 0000d000 08:01 47096433 /usr/local/lib/libavutil.so.50.3.0
b774a000-b774b000 rw-p 0000e000 08:01 47096433 /usr/local/lib/libavutil.so.50.3.0
b774b000-b774e000 rw-p b774b000 00:00 0
b774e000-b7c0c000 r-xp 00000000 08:01 47457353 /usr/lib/i686/cmov/libavcodec.so.52.20.0
b7c0c000-b7c0d000 r--p 004be000 08:01 47457353 /usr/lib/i686/cmov/libavcodec.so.52.20.0
b7c0d000-b7c16000 rw-p 004bf000 08:01 47457353 /usr/lib/i686/cmov/libavcodec.so.52.20.0
b7c16000-b7f24000 rw-p b7c16000 00:00 0
b7f24000-b7fcf000 r-xp 00000000 08:01 47457365 /usr/lib/i686/cmov/libavformat.so.52.31.0
b7fcf000-b7fd0000 r--p 000ab000 08:01 47457365 /usr/lib/i686/cmov/libavformat.so.52.31.0
b7fd0000-b7fd6000 rw-p 000ac000 08:01 47457365 /usr/lib/i686/cmov/libavformat.so.52.31.0
b7fd6000-b8022000 rw-p b7fd6000 00:00 0
b8022000-b802b000 r-xp 00000000 08:01 47457380 /usr/lib/i686/cmov/libavdevice.so.52.1.0
b802b000-b802c000 r--p 00008000 08:01 47457380 /usr/lib/i686/cmov/libavdevice.so.52.1.0
b802c000-b802d000 rw-p 00009000 08:01 47457380 /usr/lib/i686/cmov/libavdevice.so.52.1.0
b803c000-b803e000 rw-p b803c000 00:00 0
b803e000-b803f000 r-xp b803e000 00:00 0 [vdso]
b803f000-b805b000 r-xp 00000000 08:01 25567338 /lib/ld-2.9.so
b805b000-b805c000 r--p 0001b000 08:01 25567338 /lib/ld-2.9.so
b805c000-b805d000 rw-p 0001c000 08:01 25567338 /lib/ld-2.9.so
bfc48000-bfc5d000 rw-p bffeb000 00:00 0 [stack]
Aborted
temper5
Posts: 5
Joined: Sat Sep 19, 2009 2:01 pm

Post by temper5 »

I have configure ffmpeg like this
./configure --enable-gpl --enable-shared --enable-pthreads --enable-runtime-cpudetect
and now everysing ok
This error because I have use Pentium II
https://lists.ubuntu.com/archives/unive ... 00629.html
Locked