[FFmpeg-trac] #5453(avcodec:new): Broken h264 sample permanently damages decoder output

FFmpeg trac at avcodec.org
Mon Aug 14 08:19:40 EEST 2017


#5453: Broken h264 sample permanently damages decoder output
-------------------------------------+-------------------------------------
             Reporter:  cehoyos      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avcodec
              Version:  3.0.2        |               Resolution:
             Keywords:  h264         |               Blocked By:
  regression                         |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by ponpon):

 In git master, this doesn't seemt fixed. should i open a new ticket?
 {{{
 ffmpeg -threads 1 -i vlc_cut.h264 -f null -
 ffmpeg version N-86951-g45759540a5 Copyright (c) 2000-2017 the FFmpeg
 developers
   built with clang version 3.9.1 (tags/RELEASE_391/final)
   configuration: --prefix=/sw --disable-shared --enable-static --enable-
 gpl --enable-version3 --enable-nonfree --enable-pthreads --optflags=-Ofast
 --cc=clang-mp-3.9 --cxx=clang++-mp-3.9 --extra-cflags=' -march=native
 -I/sw/include -I/opt/local/include ' --extra-ldflags=' -L/sw/lib
 -L/opt/local/lib -fopenmp' --extra-ldlibflags='-L/sw/lib -L/opt/local/lib
 -static' --target-os=darwin --arch=x86_64 --cpu=corei7-avx --enable-
 avresample --enable-libfdk-aac --enable-libmp3lame --enable-
 libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg
 --enable-libopus --enable-libspeex --enable-libtheora --enable-libvorbis
 --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid
 --enable-libfreetype --enable-openssl --enable-gnutls --enable-gcrypt
 --enable-gmp --enable-librtmp --enable-libass --enable-fontconfig
 --enable-libfribidi --enable-libbluray --enable-libdc1394 --enable-
 libmodplug --enable-lzma --enable-libx264 --enable-libx265 --enable-
 libzimg --enable-libvidstab --enable-libsoxr --enable-libsmbclient
 --enable-libcdio --enable-opengl --enable-opencl --disable-vda --pkg-
 config-flags=' --libs --static'
   libavutil      55. 70.100 / 55. 70.100
   libavcodec     57.102.100 / 57.102.100
   libavformat    57. 76.100 / 57. 76.100
   libavdevice    57.  7.100 / 57.  7.100
   libavfilter     6. 98.100 /  6. 98.100
   libavresample   3.  6.  0 /  3.  6.  0
   libswscale      4.  7.102 /  4.  7.102
   libswresample   2.  8.100 /  2.  8.100
   libpostproc    54.  6.100 / 54.  6.100
 [h264 @ 0x7f9aa3003600] Format h264 detected only with low score of 1,
 misdetection possible!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x7f9aa4000600] SPS unavailable in decode_picture_timing
 [h264 @ 0x7f9aa4000600] non-existing PPS 0 referenced
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] no frame!
 [h264 @ 0x7f9aa4000600] Reference 2 >= 2
 [h264 @ 0x7f9aa4000600] error while decoding MB 53 11, bytestream 29395
 [h264 @ 0x7f9aa4000600] Invalid NAL unit 6, skipping.
 [h264 @ 0x7f9aa4000600] cabac decode of qscale diff failed at 1 53
 [h264 @ 0x7f9aa4000600] error while decoding MB 1 53, bytestream -6
 [h264 @ 0x7f9aa4000600] Found reference and non-reference fields in the
 same frame, which is not implemented. Update your FFmpeg version to the
 newest one from Git. If the problem still occurs, it means that your file
 has a feature which has not been implemented.
 [h264 @ 0x7f9aa4000600] If you want to help, upload a sample of this file
 to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing
 list. (ffmpeg-devel at ffmpeg.org)
 [h264 @ 0x7f9aa4000600] decode_slice_header error
 [h264 @ 0x7f9aa4000600] illegal short term buffer state detected
 [h264 @ 0x7f9aa4000600] reference picture missing during reorder
 [h264 @ 0x7f9aa4000600] Missing reference picture, default is 65687
 [h264 @ 0x7f9aa4000600] Reference 2 >= 2
 [h264 @ 0x7f9aa4000600] error while decoding MB 76 23, bytestream 24156
 [h264 @ 0x7f9aa4000600] cabac decode of qscale diff failed at 57 2
 [h264 @ 0x7f9aa4000600] error while decoding MB 57 2, bytestream 18456
 Input #0, h264, from 'vlc_cut.h264':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, top first),
 1920x1080 [SAR 1:1 DAR 16:9], 25.25 fps, 25 tbr, 1200k tbn, 50 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native))
 Press [q] to stop, [?] for help
 [h264 @ 0x7f9aa3001000] reference picture missing during reorder
     Last message repeated 1 times
 [h264 @ 0x7f9aa3001000] Missing reference picture, default is 65646
     Last message repeated 1 times
 [h264 @ 0x7f9aa3001000] reference picture missing during reorder
 [h264 @ 0x7f9aa3001000] Missing reference picture, default is 65647
 [h264 @ 0x7f9aa3001000] reference picture missing during reorder
 [h264 @ 0x7f9aa3001000] Missing reference picture, default is 65654
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf57.76.100
     Stream #0:0: Video: wrapped_avframe, yuv420p, 1920x1080 [SAR 1:1 DAR
 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
     Metadata:
       encoder         : Lavc57.102.100 wrapped_avframe
 [h264 @ 0x7f9aa3001000] Reference 2 >= 2
 [h264 @ 0x7f9aa3001000] error while decoding MB 53 11, bytestream 29395
 [h264 @ 0x7f9aa3001000] Invalid NAL unit 6, skipping.
 [h264 @ 0x7f9aa3001000] cabac decode of qscale diff failed at 1 53
 [h264 @ 0x7f9aa3001000] error while decoding MB 1 53, bytestream -6
 [h264 @ 0x7f9aa3001000] Found reference and non-reference fields in the
 same frame, which is not implemented. Update your FFmpeg version to the
 newest one from Git. If the problem still occurs, it means that your file
 has a feature which has not been implemented.
 [h264 @ 0x7f9aa3001000] If you want to help, upload a sample of this file
 to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing
 list. (ffmpeg-devel at ffmpeg.org)
 [h264 @ 0x7f9aa3001000] decode_slice_header error
 [h264 @ 0x7f9aa3001000] illegal short term buffer state detected
 [h264 @ 0x7f9aa3001000] reference picture missing during reorder
 [h264 @ 0x7f9aa3001000] Missing reference picture, default is 65687
 [h264 @ 0x7f9aa3001000] Reference 2 >= 2
 [h264 @ 0x7f9aa3001000] error while decoding MB 76 23, bytestream 24156
 [h264 @ 0x7f9aa3001000] cabac decode of qscale diff failed at 57 2
 [h264 @ 0x7f9aa3001000] error while decoding MB 57 2, bytestream 18456
 [h264 @ 0x7f9aa3001000] Reference 2 >= 2
 [h264 @ 0x7f9aa3001000] error while decoding MB 113 24, bytestream 4773
 [h264 @ 0x7f9aa3001000] Reference 4 >= 2
 [h264 @ 0x7f9aa3001000] error while decoding MB 77 53, bytestream 1554
 [h264 @ 0x7f9aa3001000] Reference 4 >= 2
 [h264 @ 0x7f9aa3001000] error while decoding MB 33 22, bytestream 4994
 [h264 @ 0x7f9aa3001000] reference picture missing during reorder
 [h264 @ 0x7f9aa3001000] Missing reference picture, default is 65694
 [h264 @ 0x7f9aa3001000] Reference 5 >= 4
 [h264 @ 0x7f9aa3001000] error while decoding MB 95 6, bytestream 56133
 [h264 @ 0x7f9aa3001000] mmco: unref short failure
     Last message repeated 1 times
 [h264 @ 0x7f9aa3001000] Reference 5 >= 4=00:00:01.36 bitrate=N/A
 speed=2.69x
 [h264 @ 0x7f9aa3001000] error while decoding MB 34 18, bytestream 32602
 [h264 @ 0x7f9aa3001000] Reference 2 >= 2
 [h264 @ 0x7f9aa3001000] error while decoding MB 4 3, bytestream 9436
 frame=   44 fps=0.0 q=-0.0 Lsize=N/A time=00:00:02.40 bitrate=N/A
 speed=2.93x
 video:23kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5453#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list