Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#711 closed defect (fixed)

h264: illegal short term buffer state detected

Reported by: Ck-NoSFeRaTU Owned by:
Priority: normal Component: avcodec
Version: 0.8.7 Keywords: H264 mpegts
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Bug occured only in ffmpeg/libav, players like vlc or mplayer plays this channel fine. I include sample dump created by vlc with dump-key.

[mpegts @ 0x2513af0] max_analyze_duration 5000000 reached at 5016000
Input #0, mpegts, from 'rzd-dump.ts':
  Duration: 00:00:09.13, start: 23785.259978, bitrate: 1738 kb/s
  Program 1840 
    Metadata:
      service_name    : RZD
    Stream #0.0[0x731]: Video: h264 (Main), yuv420p, 720x576 [PAR 12:11 DAR 15:11], 52.09 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x732]: Audio: mp2, 48000 Hz, stereo, s16, 96 kb/s
[h264 @ 0x2567730] illegal short term buffer state detected=    0B f=0/0   
    Last message repeated 1 times0 aq=  122KB vq= 1713KB sq=    0B f=0/0   
[h264 @ 0x2567730] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x2567730] illegal short term buffer state detected
    Last message repeated 1 times19KB vq= 1657KB sq=    0B f=0/2   
[h264 @ 0x2567730] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x2567730] illegal short term buffer state detected
    Last message repeated 1 times15KB vq= 1639KB sq=    0B f=0/3   
[h264 @ 0x2567730] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x2567730] illegal short term buffer state detected
    Last message repeated 1 times12KB vq= 1618KB sq=    0B f=0/4   
[h264 @ 0x2567730] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x2567730] illegal short term buffer state detected
    Last message repeated 1 times08KB vq= 1598KB sq=    0B f=0/5   
[h264 @ 0x2567730] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x2567730] illegal short term buffer state detected
    Last message repeated 1 times04KB vq= 1576KB sq=    0B f=0/6   
[h264 @ 0x2567730] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x2567730] illegal short term buffer state detected
    Last message repeated 1 times00KB vq= 1520KB sq=    0B f=0/7   
[h264 @ 0x2567730] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x2567730] illegal short term buffer state detected
    Last message repeated 1 times97KB vq= 1503KB sq=    0B f=0/8   
[h264 @ 0x2567730] mmco: unref short failure
    Last message repeated 1 times

An so on...

Attachments (1)

rzd-dump.ts (1.9 MB ) - added by Ck-NoSFeRaTU 13 years ago.
sample dump

Download all attachments as: .zip

Change History (7)

by Ck-NoSFeRaTU, 13 years ago

Attachment: rzd-dump.ts added

sample dump

comment:1 by Carl Eugen Hoyos, 13 years ago

Please add command line (for example ffmpeg -i rzd-dump.ts -qscale 2 out.avi) and complete, uncut console output.

comment:2 by Ck-NoSFeRaTU, 13 years ago

nosferatu@nosferatuwork ~ $ ffmpeg -i rzd-dump.ts -qscale 2 out.avi
ffmpeg version 0.8.7, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec  6 2011 14:58:15 with gcc 4.5.3
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --disable-optimizations --disable-static --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --disable-stripping --disable-debug --disable-doc --disable-vdpau --enable-libmp3lame --enable-libvo-aacenc --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libfaac --enable-nonfree --disable-indev=v4l --disable-indev=v4l2 --disable-indev=jack --enable-x11grab --enable-libfreetype --enable-pthreads --enable-libgsm --enable-libdirac --enable-librtmp --enable-libschroedinger --enable-libopenjpeg --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-avx --disable-ssse3 --enable-hardcoded-tables
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  8. 0 / 53.  8. 0
  libavformat  53.  5. 0 / 53.  5. 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
[h264 @ 0x25be6b0] non-existing PPS referenced
[h264 @ 0x25be6b0] non-existing PPS 0 referenced
[h264 @ 0x25be6b0] decode_slice_header error
[h264 @ 0x25be6b0] no frame!
[h264 @ 0x25be6b0] non-existing PPS referenced
[h264 @ 0x25be6b0] non-existing PPS 0 referenced
[h264 @ 0x25be6b0] decode_slice_header error
[h264 @ 0x25be6b0] no frame!
[h264 @ 0x25be6b0] non-existing PPS referenced
[h264 @ 0x25be6b0] non-existing PPS 0 referenced
[h264 @ 0x25be6b0] decode_slice_header error
[h264 @ 0x25be6b0] no frame!
[h264 @ 0x25be6b0] non-existing PPS referenced
[h264 @ 0x25be6b0] non-existing PPS 0 referenced
[h264 @ 0x25be6b0] decode_slice_header error
[h264 @ 0x25be6b0] no frame!
[h264 @ 0x25be6b0] non-existing PPS referenced
[h264 @ 0x25be6b0] non-existing PPS 0 referenced
[h264 @ 0x25be6b0] decode_slice_header error
[h264 @ 0x25be6b0] no frame!
[h264 @ 0x25be6b0] non-existing PPS referenced
[h264 @ 0x25be6b0] non-existing PPS 0 referenced
[h264 @ 0x25be6b0] decode_slice_header error
[h264 @ 0x25be6b0] no frame!
[h264 @ 0x25be6b0] non-existing PPS referenced
[h264 @ 0x25be6b0] non-existing PPS 0 referenced
[h264 @ 0x25be6b0] decode_slice_header error
[h264 @ 0x25be6b0] no frame!
[h264 @ 0x25be6b0] non-existing PPS referenced
[h264 @ 0x25be6b0] non-existing PPS 0 referenced
[h264 @ 0x25be6b0] decode_slice_header error
[h264 @ 0x25be6b0] no frame!
[h264 @ 0x25be6b0] non-existing PPS referenced
[h264 @ 0x25be6b0] non-existing PPS 0 referenced
[h264 @ 0x25be6b0] decode_slice_header error
[h264 @ 0x25be6b0] no frame!
[h264 @ 0x25be6b0] non-existing PPS referenced
[h264 @ 0x25be6b0] non-existing PPS 0 referenced
[h264 @ 0x25be6b0] decode_slice_header error
[h264 @ 0x25be6b0] no frame!
[h264 @ 0x25be6b0] non-existing PPS referenced
[h264 @ 0x25be6b0] non-existing PPS 0 referenced
[h264 @ 0x25be6b0] decode_slice_header error
[h264 @ 0x25be6b0] no frame!
[h264 @ 0x25be6b0] mmco: unref short failure
[mpegts @ 0x25b9410] max_analyze_duration 5000000 reached at 5016000

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (50/2)
Input #0, mpegts, from 'rzd-dump.ts':
  Duration: 00:00:09.13, start: 23785.259978, bitrate: 1738 kb/s
  Program 1840 
    Metadata:
      service_name    : RZD
      service_provider: citycomm
    Stream #0.0[0x731]: Video: h264 (Main), yuv420p, 720x576 [PAR 12:11 DAR 15:11], 52.09 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x732]: Audio: mp2, 48000 Hz, stereo, s16, 96 kb/s
[buffer @ 0x25e2030] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:12/11 sws_param:
[mpeg4 @ 0x25b77c0] removing common factors from framerate
Output #0, avi, to 'out.avi':
  Metadata:
    ISFT            : Lavf53.5.0
    Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], q=2-31, 200 kb/s, 25 tbn, 25 tbc
    Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times  1897kB time=00:00:02.88 bitrate=5396.3kbits/s    
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times  4682kB time=00:00:05.76 bitrate=6659.5kbits/s    
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
    Last message repeated 1 times
[h264 @ 0x25be6b0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x25be6b0] illegal short term buffer state detected
[h264 @ 0x25be6b0] error while decoding MB 0 25, bytestream (-10)
[h264 @ 0x25be6b0] illegal short term buffer state detected
[mp2 @ 0x25c0610] incomplete frame
Error while decoding stream #0.1
frame=  194 fps=138 q=2.0 Lsize=    8189kB time=00:00:07.87 bitrate=8521.5kbits/s dup=0 drop=1    
video:8104kB audio:62kB global headers:0kB muxing overhead 0.280096%
Last edited 13 years ago by Carl Eugen Hoyos (previous) (diff)

comment:3 by Carl Eugen Hoyos, 13 years ago

Reproduced by developer: set
Status: newopen
Version: unspecified0.8.7

comment:4 by Carl Eugen Hoyos, 13 years ago

Keywords: H264 TS added

comment:5 by Carl Eugen Hoyos, 13 years ago

Resolution: fixed
Status: openclosed

The sample should be fixed in current git head and the next release (which you can test with git checkout release/0.8).

comment:6 by Carl Eugen Hoyos, 10 years ago

Keywords: mpegts added; TS removed
Note: See TracTickets for help on using tickets.