[FFmpeg-trac] #9805(ffplay:new): Gray frames while decoding when HEVC codec is used and frames with missing POC reference exist
FFmpeg
trac at avcodec.org
Wed Jun 8 08:26:03 EEST 2022
#9805: Gray frames while decoding when HEVC codec is used and frames with missing
POC reference exist
------------------------------------+----------------------------------
Reporter: dhirendvs | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: ffplay
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+----------------------------------
Description changed by dhirendvs:
Old description:
> Summary of the bug:
> When a H265 .mp4 file contains missing/corrupt frames, and this file is
> decoded for playback using the HEVC codec, gray frames are visible in
> case of frames with missing POC reference i.e. when the error "Could not
> find ref with POC XX" is displayed.
>
> However, when the HEVC Intel Quick Sync codec is used, gray frames are
> not visible in case of the instances of the missing POC reference error,
> but a much better playback result is generated with only 3 instances of
> garbled frames.
>
> Is this because HEVC Intel Quick Sync codec decodes frames with a non-
> zero latency whereas the latency is 0 in case of the default HEVC codec?
> Is it possible to produce a similar result without gray frames when the
> default HEVC codec is used for playback of such a file with
> missing/corrupt frames?
>
> How to reproduce:
> A) Gray frames:
> ffplay -vcodec hevc H265.mp4
>
> B) Garbled frames in a few instances but no gray frames:
> ffplay -vcodec hevc_qsv H265.mp4
>
> Built on:
> FFmpeg 5.0
New description:
Summary of the bug:
When a H265 .mp4 file contains missing/corrupt frames, and this file is
decoded for playback using the HEVC codec, gray frames are visible in case
of frames with missing POC reference i.e. when the error "Could not find
ref with POC XX" is displayed.
However, when the HEVC Intel Quick Sync codec is used, gray frames are not
visible in case of the 8 instances of the missing POC reference error, but
a much better playback result is generated with only 3 instances of
garbled frames.
Is this because HEVC Intel Quick Sync codec decodes frames with a non-zero
latency whereas the latency is 0 in case of the default HEVC codec? Is it
possible to produce a similar result without gray frames when the default
HEVC codec is used for playback of such a file with missing/corrupt
frames?
When the VLC media player is used for playbak of this file, the same
result as HEVC Intel Quick Sync codec is generated without gray frames,
and when Tools --> Preferences --> Input / Codecs --> Hardware-accelerated
decoding --> Disable is used instead of default value of Automatic, then
the result is the same as use of HEVC codec.
Link to the H265.mp4 file (valid for 30 days) for testing:
https://easyupload.io/wrg357
How to reproduce:
A) Gray frames:
ffplay -vcodec hevc H265.mp4
B) Garbled frames in a few instances but no gray frames:
ffplay -vcodec hevc_qsv H265.mp4
Built on:
FFmpeg 5.0
--
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9805#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list