[FFmpeg-trac] #407(avcodec:open): Assertion fails in h264_refs.c

FFmpeg trac at avcodec.org
Tue Aug 30 10:24:55 CEST 2011


#407: Assertion fails in h264_refs.c
---------------------------+----------------------
Reporter:  redeemarr       |       Owner:
    Type:  defect          |      Status:  open
Priority:  important       |   Component:  avcodec
 Version:  git-master      |  Resolution:
Keywords:  h264 assertion  |  Blocked By:
Blocking:                  |  Reproduced:  1
Analyzed:  0               |
---------------------------+----------------------

Comment (by cehoyos):

 Does the crash happen before the assert?

 Do you believe it is more convenient to unzip a larger file, concatenate
 the samples to get a smaller file that can be fed to ffmpeg?

 Reimar may have been right that there is a size change involved:
 {{{
 $ ffmpeg -i assert.h264 -f null -
 ffmpeg version N-32157-g0629b1f, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on Aug 30 2011 09:51:47 with gcc 4.5.3
   configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
   libavutil    51. 14. 0 / 51. 14. 0
   libavcodec   53. 12. 0 / 53. 12. 0
   libavformat  53. 10. 0 / 53. 10. 0
   libavdevice  53.  3. 0 / 53.  3. 0
   libavfilter   2. 37. 0 /  2. 37. 0
   libswscale    2.  0. 0 /  2.  0. 0
 [h264 @ 0x12a2540] reference picture missing during reorder
 [h264 @ 0x12a2540] reference count overflow
 [h264 @ 0x12a2540] decode_slice_header error
 [h264 @ 0x12a2540] mmco: unref short failure
 [h264 @ 0x12a2540] concealing 2 DC, 2 AC, 2 MV errors
 [h264 @ 0x12a2540] number of reference frames (0+2) exceeds max (0;
 probably corrupt input), discarding one
 [h264 @ 0x12a0420] Estimating duration from bitrate, this may be
 inaccurate

 Seems stream 0 codec frame rate differs from container frame rate: 50.00
 (50/1) -> 25.00 (50/2)
 Input #0, h264, from 'assert.h264':
   Duration: N/A, bitrate: N/A
     Stream #0.0: Video: h264, yuv420p, 16x32, 25 fps, 25 tbr, 1200k tbn,
 50 tbc
 [buffer @ 0x12a0360] w:16 h:32 pixfmt:yuv420p tb:1/1000000 sar:0/1
 sws_param:
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf53.10.0
     Stream #0.0: Video: rawvideo (I420 / 0x30323449), yuv420p, 16x32,
 q=2-31, 200 kb/s, 90k tbn, 25 tbc
 Stream mapping:
   Stream #0.0 -> #0.0: h264 -> rawvideo
 Press [q] to stop, [?] for help
 [buffer @ 0x12a0360] Buffer video input changed from size:16x32
 fmt:yuv420p to size:640x480 fmt:yuv420p
 [buffer @ 0x12a0360] Inserting scaler filter
 [buffersink @ 0x12a6aa0] auto-inserting filter 'Input equalizer' between
 the filter 'src' and the filter 'out'
 [scale @ 0x12a3500] w:640 h:480 fmt:yuv420p -> w:16 h:32 fmt:yuv420p
 flags:0x2
 [h264 @ 0x12a2540] reference picture missing during reorder
 [h264 @ 0x12a2540] reference count overflow
 [h264 @ 0x12a2540] decode_slice_header error
 [h264 @ 0x12a2540] mmco: unref short failure
 [h264 @ 0x12a2540] concealing 2 DC, 2 AC, 2 MV errors
 [h264 @ 0x12a2540] number of reference frames (0+2) exceeds max (0;
 probably corrupt input), discarding one
 [buffer @ 0x12a0360] Buffer video input changed from size:640x480
 fmt:yuv420p to size:16x32 fmt:yuv420p
 [scale @ 0x12a3500] w:16 h:32 fmt:yuv420p -> w:16 h:32 fmt:yuv420p
 flags:0x2
 frame=    5 fps=  0 q=0.0 Lsize=      -0kB time=00:00:00.20 bitrate=
 -0.9kbits/s
 video:0kB audio:0kB global headers:0kB muxing overhead -inf%
 }}}

-- 
Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/407#comment:13>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list