Hello, <br><br>I got following worrying error when video resolution is not divisible by 8.<br>Resolutions near that one divisible by 4 resulted in same exception.<br><br>This happens at the end of execution, video file seems fine. This error prevented my 2-pass script from working.<br>
Using only 1 thread results in ordinary Segfault.<br><br>root@dhq3:~/dream/dev/trunk/server/dhq/dc# ffmpeg -i badresvideo.flv -an -threads 4 -vcodec libx264 -vpre libx264-max -vpre libx264-default -me_method epzs -crf 25 -f mp4 /tmp/tmptfiRtf-vt.mp4<br>
FFmpeg version SVN-r20598, Copyright (c) 2000-2009 Fabrice Bellard, et al.<br> built on Nov 30 2009 23:32:20 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)<br> configuration: --enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-libfaac --enable-nonfree --enable-version3 --enable-libmp3lame --enable-avfilter<br>
libavutil 50. 4. 0 / 50. 4. 0<br> libavcodec 52.41. 0 / 52.41. 0<br> libavformat 52.39. 2 / 52.39. 2<br> libavdevice 52. 2. 0 / 52. 2. 0<br> libavfilter 1. 8. 0 / 1. 8. 0<br> libswscale 0. 7. 1 / 0. 7. 1<br>
[flv @ 0x8a44420]MAX_READ_SIZE:5000000 reached<br><br>Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 16.00 (16/1)<br>Input #0, flv, from 'badresvideo.flv':<br> Duration: 00:04:55.81, start: 0.000000, bitrate: 193 kb/s<br>
Stream #0.0: Video: flashsv, bgr24, 1026x640, 193 kb/s, 16 tbr, 1k tbn, 1k tbc<br> Metadata<br> hasKeyframes : true<br> audiodatarate : 0<br> hasVideo : true<br> canSeekToEnd : false<br> framerate : 16<br>
videocodecid : 3<br> datasize : 7033047<br> lasttimestamp : 296<br> audiosize : 0<br> length : 295.81<br> hasAudio : false<br> audiodelay : 0<br> videosize : 7030504<br>
metadatacreator : inlet media FLVTool2 v1.0.6 - <a href="http://www.inlet-media.de/flvtool2">http://www.inlet-media.de/flvtool2</a><br> lastkeyframetimestamp: 295<br> height : 640<br> filesize : 7052000<br>
hasMetadata : true<br> videodatarate : 189<br> duration : 296<br> hasCuePoints : false<br> width : 1026<br>File '/tmp/tmptfiRtf-vt.mp4' already exists. Overwrite ? [y/N] y<br>
[libx264 @ 0x8a75a50]using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64<br>[libx264 @ 0x8a75a50]profile High, level 3.1<br>Output #0, mp4, to '/tmp/tmptfiRtf-vt.mp4':<br> Stream #0.0: Video: libx264, yuv420p, 1026x640, q=10-51, 200 kb/s, 16 tbn, 16 tbc<br>
Stream mapping:<br> Stream #0.0 -> #0.0<br>Press [q] to stop encoding<br>frame= 4733 fps= 81 q=-1.0 Lsize= 2020kB time=295.75 bitrate= 55.9kbits/s s/s<br>video:1963kB audio:0kB global headers:0kB muxing overhead 2.880588%<br>
*** glibc detected *** ffmpeg: corrupted double-linked list: 0x092bb640 ***<br>======= Backtrace: =========<br>/lib/tls/i686/cmov/libc.so.6[0xb7ce5d0d]<br>/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7ce94f0]<br>/usr/local/lib/libx264.so.79(x264_lookahead_delete+0xe0)[0xb7e6a8d0]<br>
======= Memory map: ========<br>08048000-085de000 r-xp 00000000 08:11 6046888 /usr/local/bin/ffmpeg<br>085de000-085ed000 rw-p 00596000 08:11 6046888 /usr/local/bin/ffmpeg<br>085ed000-0a475000 rw-p 085ed000 00:00 0 [heap]<br>
a94dc000-aa067000 rw-p a94dc000 00:00 0<br>aa8f9000-aab1f000 rw-p aa8f9000 00:00 0<br>ab320000-ab546000 rw-p ab320000 00:00 0<br>abd47000-abf6d000 rw-p abd47000 00:00 0<br>ac76e000-b309a000 rw-p ac76e000 00:00 0<br>b309a000-b309b000 ---p b309a000 00:00 0<br>
b309b000-b389b000 rw-p b309b000 00:00 0<br>b3a7b000-b5b76000 rw-p b3a7b000 00:00 0<br>b5b76000-b5b77000 ---p b5b76000 00:00 0<br>b5b77000-b6377000 rw-p b5b77000 00:00 0<br>b6377000-b6378000 ---p b6377000 00:00 0<br>b6378000-b6b78000 rw-p b6378000 00:00 0<br>
b6b78000-b6b79000 ---p b6b78000 00:00 0<br>b6b79000-b7379000 rw-p b6b79000 00:00 0<br>b7a00000-b7a21000 rw-p b7a00000 00:00 0<br>b7a21000-b7b00000 ---p b7a21000 00:00 0<br>b7b7a000-b7b7c000 rw-p b7b7a000 00:00 0<br>b7b7c000-b7b86000 r-xp 00000000 08:11 12648449 /lib/libgcc_s.so.1<br>
b7b86000-b7b87000 rw-p 0000a000 08:11 12648449 /lib/libgcc_s.so.1<br>b7b87000-b7c6f000 r-xp 00000000 08:11 6037552 /usr/lib/libstdc++.so.6.0.9<br>b7c6f000-b7c72000 r--p 000e8000 08:11 6037552 /usr/lib/libstdc++.so.6.0.9<br>
b7c72000-b7c74000 rw-p 000eb000 08:11 6037552 /usr/lib/libstdc++.so.6.0.9<br>b7c74000-b7c7a000 rw-p b7c74000 00:00 0<br>b7c7a000-b7dc3000 r-xp 00000000 08:11 20389912 /lib/tls/i686/cmov/<a href="http://libc-2.7.so">libc-2.7.so</a><br>
b7dc3000-b7dc4000 r--p 00149000 08:11 20389912 /lib/tls/i686/cmov/<a href="http://libc-2.7.so">libc-2.7.so</a><br>b7dc4000-b7dc6000 rw-p 0014a000 08:11 20389912 /lib/tls/i686/cmov/<a href="http://libc-2.7.so">libc-2.7.so</a><br>
b7dc6000-b7dc9000 rw-p b7dc6000 00:00 0<br>b7dc9000-b7ddd000 r-xp 00000000 08:11 20389926 /lib/tls/i686/cmov/<a href="http://libpthread-2.7.so">libpthread-2.7.so</a><br>b7ddd000-b7ddf000 rw-p 00013000 08:11 20389926 /lib/tls/i686/cmov/<a href="http://libpthread-2.7.so">libpthread-2.7.so</a><br>
b7ddf000-b7de2000 rw-p b7ddf000 00:00 0<br>b7de2000-b7e91000 r-xp 00000000 08:11 6046887 /usr/local/lib/libx264.so.79<br>b7e91000-b7e92000 rw-p 000ae000 08:11 6046887 /usr/local/lib/libx264.so.79<br>b7e92000-b7e99000 rw-p b7e92000 00:00 0<br>
b7e99000-b7eae000 r-xp 00000000 08:11 6046421 /usr/local/lib/libopencore-amrwb.so.0.0.2<br>b7eae000-b7eaf000 rw-p 00014000 08:11 6046421 /usr/local/lib/libopencore-amrwb.so.0.0.2<br>b7eaf000-b7edb000 r-xp 00000000 08:11 6045917 /usr/local/lib/libopencore-amrnb.so.0.0.2<br>
b7edb000-b7edc000 rw-p 0002c000 08:11 6045917 /usr/local/lib/libopencore-amrnb.so.0.0.2<br>b7edc000-b7f39000 r-xp 00000000 08:11 19791887 /usr/local/lib/libmp3lame.so.0.0.0<br>b7f39000-b7f3b000 rw-p 0005c000 08:11 19791887 /usr/local/lib/libmp3lame.so.0.0.0<br>
b7f3b000-b7f6b000 rw-p b7f3b000 00:00 0<br>b7f6b000-b7f79000 r-xp 00000000 08:11 19791917 /usr/local/lib/libfaac.so.0.0.0<br>b7f79000-b7f7c000 rw-p 0000d000 08:11 19791917 /usr/local/lib/libfaac.so.0.0.0<br>b7f7c000-b7f7d000 rw-p b7f7c000 00:00 0<br>
b7f7d000-b7fa0000 r-xp 00000000 08:11 20389916 /lib/tls/i686/cmov/<a href="http://libm-2.7.so">libm-2.7.so</a><br>b7fa0000-b7fa2000 rw-p 00023000 08:11 20389916 /lib/tls/i686/cmov/<a href="http://libm-2.7.so">libm-2.7.so</a><br>
b7fa2000-b7fb6000 r-xp 00000000 08:11 6039500 /usr/lib/libz.so.1.2.3.3<br>b7fb6000-b7fb7000 rw-p 00013000 08:11 6039500 /usr/lib/libz.so.1.2.3.3<br>b7fbd000-b7fc0000 rw-p b7fbd000 00:00 0<br>b7fc0000-b7fc1000 r-xp b7fc0000 00:00 0 [vdso]<br>
b7fc1000-b7fdb000 r-xp 00000000 08:11 12648450 /lib/<a href="http://ld-2.7.so">ld-2.7.so</a><br>b7fdb000-b7fdd000 rw-p 00019000 08:11 12648450 /lib/<a href="http://ld-2.7.so">ld-2.7.so</a><br>bff8d000-bffa2000 rw-p bffeb000 00:00 0 [stack]<br>
Aborted<br>root@dhq3:~/dream/dev/trunk/server/dhq/dc#<br><br><br><br>--Teemu Keinonen<br><br>