Opened 5 years ago

Closed 5 years ago

#555 closed defect (fixed)

h264: invalid 8x8 inference, reference decoder works fine

Reported by: wanderman Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: H264 regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

ffplay.exe cann't play the h.264.ts file, but the old version is OK!

Attachments (4)

H264-TS-CanNotBePlayed-ws1.ts (2.3 MB) - added by wanderman 5 years ago.
invalid8x8.h264 (614.5 KB) - added by cehoyos 5 years ago.
patchinvalid8x8.diff (513 bytes) - added by cehoyos 5 years ago.
H264-TS-CanNotBePlayedSmoothly1080P-zw3.ts (2.3 MB) - added by wanderman 5 years ago.
divided to less size to upload

Change History (10)

Changed 5 years ago by wanderman

Changed 5 years ago by cehoyos

comment:1 Changed 5 years ago by cehoyos

  • Analyzed by developer unset
  • Component changed from undetermined to avcodec
  • Keywords regression added; TS NOT PLAYED removed
  • Priority changed from normal to important
  • Reproduced by developer set
  • Status changed from new to open
  • Summary changed from ffplay.exe cann't play the h.264.ts file, but the old version is OK! to h264: invalid 8x8 inference, reference decoder works fine
  • Version changed from unspecified to git-master

Attached h264 raw stream can be decoded with the reference decoder, ffmpeg does not decode the stream since 1c3ce2cd3ef3df47eccb0245017a6d2f3d5308b4 (r21668), protesting "This stream was generated by a broken encoder, invalid 8x8 inference"

$ ffmpeg -i invalid8x8.h264
ffmpeg version N-33659-g1d0afec, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 15 2011 10:58:34 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
  libavutil    51. 21. 0 / 51. 21. 0
  libavcodec   53. 20. 1 / 53. 20. 1
  libavformat  53. 16. 0 / 53. 16. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 43. 6 /  2. 43. 6
  libswscale    2.  1. 0 /  2.  1. 0
[h264 @ 0x1304be0] This stream was generated by a broken encoder, invalid 8x8 inference
[h264 @ 0x1304be0] sps_id out of range
[h264 @ 0x1304be0] non-existing PPS referenced
[h264 @ 0x1304be0] This stream was generated by a broken encoder, invalid 8x8 inference
[h264 @ 0x1304be0] sps_id out of range
[h264 @ 0x1304be0] non-existing PPS 0 referenced
[h264 @ 0x1304be0] decode_slice_header error
[h264 @ 0x1304be0] no frame!

...

[h264 @ 0x1304be0] non-existing PPS referenced
[h264 @ 0x1304be0] non-existing PPS 0 referenced
[h264 @ 0x1304be0] decode_slice_header error
[h264 @ 0x1304be0] no frame!
[h264 @ 0x1304be0] non-existing PPS referenced
[h264 @ 0x1304be0] non-existing PPS 0 referenced
[h264 @ 0x1304be0] decode_slice_header error
[h264 @ 0x1304be0] no frame!
[h264 @ 0x12fe780] Could not find codec parameters (Video: h264)
[h264 @ 0x12fe780] Estimating duration from bitrate, this may be inaccurate
invalid8x8.h264: could not find codec parameters
$ ffmpeg -i invalid8x8.h264
FFmpeg version 0.5.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc --enable-libfaad --enable-gpl --enable-x11grab --enable-libmp3lame
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 1 / 52.20. 1
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Aug 19 2011 10:40:35, gcc: 4.5.3

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (50/2)
Input #0, h264, from 'invalid8x8.h264':
  Duration: N/A, bitrate: N/A
    Stream #0.0: Video: h264, yuv420p, 720x576, 25 tbr, 1200k tbn, 50 tbc
At least one output file must be specified

Changed 5 years ago by cehoyos

comment:2 Changed 5 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed

comment:3 Changed 5 years ago by wanderman

thanks! this file can do be played, but now my another H264 TS file (1080P) can not be played, before it can be played smoothly.

comment:4 Changed 5 years ago by wanderman

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:5 Changed 5 years ago by wanderman

I have already uploaded this file to http://upload.ffmpeg.org/upload/. this file name is H264-TS-CanNotBePlayedSmoothly1080P-zw2.ts .

Changed 5 years ago by wanderman

divided to less size to upload

comment:6 Changed 5 years ago by cehoyos

  • Resolution set to fixed
  • Status changed from reopened to closed

The problem you reported was fixed in N-33660 (2ed7e353bd8867215bc156c430d4ded7f6774ad4). I just tested N-33659 (1d0afec8fcfaca9736c927715ddd56a5902855ab), N-33660 and current git head (N-33691, 55d44578c61ccd8b7db50e26e01196476ea530f3), and all three decode H264-TS-CanNotBePlayedSmoothly1080P-zw3.ts bit-identically, so I assume any problems you have with this file are not related to the original report.

Please open a new ticket, explain what is wrong when decoding H264-TS-CanNotBePlayedSmoothly1080P-zw3.ts (re-encoding works fine for me with current ffmpeg) and please do not forget to add the command line you are using and complete, uncut console output (only report ffplay problems if they are unreproducible with ffmpeg and please mention this clearly if you report a ffplay problem).

Note: See TracTickets for help on using tickets.