[x264-devel] ffmpeg+x264 error

lou at fakeoutdoorsman.com lou at fakeoutdoorsman.com
Mon Dec 14 20:57:37 CET 2009


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


Did you check bug reports prior to posting your message?  Probably
related to:

Crash when using x11grab with libx264 to record desktop
https://roundup.ffmpeg.org/roundup/ffmpeg/issue1535


More information about the x264-devel mailing list