[FFmpeg-trac] #596(undetermined:new): ffmpeg killed while encoding

FFmpeg trac at avcodec.org
Thu Oct 27 10:31:28 CEST 2011


#596: ffmpeg killed while encoding
--------------------------------------+----------------------------------
             Reporter:  benoit_friry  |                     Type:  defect
               Status:  new           |                 Priority:  normal
            Component:  undetermined  |                  Version:  0.8.5
             Keywords:                |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+----------------------------------
 Hello,

 I try to convert a big mjpeg video into h264. ffmpeg crashes while
 encoding.

 The command is:
 $ ./ffmpeg -i ~/tmp/test.avi -an  -vcodec libx264 -preset slow -profile
 high -crf 25  -f mp4 ~/tmp/test.mp4

 $ ./ffmpeg -v 9 -loglevel 99 -i ~/tmp/test.avi
 ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers
   built on Oct 26 2011 22:09:58 with gcc 4.6.1
   configuration: --prefix=/opt/bf_ffmpeg --enable-gpl --enable-libfaac
 --enable-libx264 --enable-nonfree --enable-postproc
   libavutil    51.  9. 1 / 51.  9. 1
   libavcodec   53.  7. 0 / 53.  7. 0
   libavformat  53.  4. 0 / 53.  4. 0
   libavdevice  53.  1. 1 / 53.  1. 1
   libavfilter   2. 23. 0 /  2. 23. 0
   libswscale    2.  0. 0 /  2.  0. 0
   libpostproc  51.  2. 0 / 51.  2. 0
 [avi @ 0x257d400] Format avi probed with size=2048 and score=100
 [AVI demuxer @ 0x257da00] use odml:1
 st:1 removing common factor 4 from timebase
 [mjpeg @ 0x257f480] buffer too small, expanding to 108576 bytes
 [mjpeg @ 0x257f480] marker=d8 avail_size_in_buf=108576
 [mjpeg @ 0x257f480] marker parser used 0 bytes (0 bits)
 [mjpeg @ 0x257f480] marker=fe avail_size_in_buf=108574
 [mjpeg @ 0x257f480] marker parser used 14 bytes (112 bits)
 [mjpeg @ 0x257f480] marker=db avail_size_in_buf=108558
 [mjpeg @ 0x257f480] index=0
 [mjpeg @ 0x257f480] qscale[0]: 2
 [mjpeg @ 0x257f480] marker parser used 67 bytes (536 bits)
 [mjpeg @ 0x257f480] marker=c4 avail_size_in_buf=108489
 [mjpeg @ 0x257f480] class=0 index=0 nb_codes=12
 [mjpeg @ 0x257f480] class=0 index=1 nb_codes=12
 [mjpeg @ 0x257f480] class=1 index=0 nb_codes=251
 [mjpeg @ 0x257f480] class=1 index=1 nb_codes=251
 [mjpeg @ 0x257f480] marker parser used 418 bytes (3344 bits)
 [mjpeg @ 0x257f480] marker=c0 avail_size_in_buf=108069
 [mjpeg @ 0x257f480] sof0: picture: 720x576
 [mjpeg @ 0x257f480] component 0 2:2 id: 0 quant:0
 [mjpeg @ 0x257f480] component 1 1:1 id: 1 quant:0
 [mjpeg @ 0x257f480] component 2 1:1 id: 2 quant:0
 [mjpeg @ 0x257f480] pix fmt id 22111100
 [mjpeg @ 0x257f480] marker parser used 17 bytes (136 bits)
 [mjpeg @ 0x257f480] escaping removed 1257 bytes
 [mjpeg @ 0x257f480] marker=da avail_size_in_buf=108050
 [mjpeg @ 0x257f480] component: 0
 [mjpeg @ 0x257f480] component: 1
 [mjpeg @ 0x257f480] component: 2
 [mjpeg @ 0x257f480] marker parser used 106792 bytes (854331 bits)
 [mjpeg @ 0x257f480] marker=d9 avail_size_in_buf=0
 [mjpeg @ 0x257f480] mjpeg decode frame unused 0 bytes
 [avi @ 0x257d400] All info found
 Input #0, avi, from '/home/benoit/tmp/test.avi':
   Duration: 00:47:29.56, start: 0.000000, bitrate: 21670 kb/s
     Stream #0.0, 1, 1/25: Video: mjpeg, yuvj420p, 720x576, 1/25, 25 tbr,
 25 tbn, 25 tbc
     Stream #0.1, 1, 1/44100: Audio: pcm_s16le, 44100 Hz, 2 channels, s16,
 1411 kb/s
 At least one output file must be specified

 I didn't succeed to produce a bt.

 $ gdb ./ffmpeg_g
 GNU gdb (GDB) 7.3-debian
 Copyright (C) 2011 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later
 <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 and "show warranty" for details.
 This GDB was configured as "x86_64-linux-gnu".
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>...
 Reading symbols from /home/benoit/tmp/bf_ffmpeg/ffmpeg/ffmpeg_g...done.
 (gdb) r -i ~/tmp/test.avi -an  -vcodec libx264 -preset slow -profile high
 -crf 25  -f mp4 ~/tmp/test.mp4
 Starting program: /home/benoit/tmp/bf_ffmpeg/ffmpeg/ffmpeg_g -i
 ~/tmp/test.avi -an  -vcodec libx264 -preset slow -profile high -crf 25  -f
 mp4 ~/tmp/test.mp4
 [Thread debugging using libthread_db enabled]
 ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers
   built on Oct 26 2011 22:09:58 with gcc 4.6.1
   configuration: --prefix=/opt/bf_ffmpeg --enable-gpl --enable-libfaac
 --enable-libx264 --enable-nonfree --enable-postproc
   libavutil    51.  9. 1 / 51.  9. 1
   libavcodec   53.  7. 0 / 53.  7. 0
   libavformat  53.  4. 0 / 53.  4. 0
   libavdevice  53.  1. 1 / 53.  1. 1
   libavfilter   2. 23. 0 /  2. 23. 0
   libswscale    2.  0. 0 /  2.  0. 0
   libpostproc  51.  2. 0 / 51.  2. 0
 Input #0, avi, from '/home/benoit/tmp/test.avi':
   Duration: 00:47:29.56, start: 0.000000, bitrate: 21670 kb/s
     Stream #0.0: Video: mjpeg, yuvj420p, 720x576, 25 tbr, 25 tbn, 25 tbc
     Stream #0.1: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
 [buffer @ 0x13ee3c0] w:720 h:576 pixfmt:yuvj420p tb:1/1000000 sar:0/1
 sws_param:
 [libx264 @ 0x13e5e60] using cpu capabilities: MMX2 SSE2Slow SlowCTZ
 [libx264 @ 0x13e5e60] profile High, level 3.0
 [libx264 @ 0x13e5e60] 264 - core 119 r2106 07efeb4 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options:
 cabac=1 ref=5 deblock=1:0:0 analyse=0x3:0x113 me=umh subme=8 psy=1
 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1
 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3
 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
 intra_refresh=0 rc_lookahead=50 rc=crf mbtree=1 crf=25.0 qcomp=0.60
 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 Output #0, mp4, to '/home/benoit/tmp/test.mp4':
   Metadata:
     encoder         : Lavf53.4.0
     Stream #0.0: Video: libx264, yuvj420p, 720x576, q=2-31, 200 kb/s, 25
 tbn, 25 tbc
 Stream mapping:
   Stream #0.0 -> #0.0
 Press [q] to stop, [?] for help
 frame= 5934 fps=  1 q=30.0 size=   62734kB time=00:03:55.24
 bitrate=2184.7kbits/s dup=537 drop=0
 Program terminated with signal SIGKILL, Killed.
 The program no longer exists.
 (gdb) bt
 No stack.
 (gdb) disass $pc-32,$pc+32
 No registers.
 (gdb) info all-registers
 The program has no registers now.
 (gdb) quit

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/596>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list