sample decode lost frames
System information
- 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
- VGA compatible controller [0300]: Intel Corporation Device [8086:9a49] (rev 01)
Issue behavior
Describe the current behavior
There are 50 frames in the HEVC video stream, but the output file only has 34 frames. Also can be reproduced in ADL platform.
Both ffprobe and VQA show the Video file has 50 frames: ffprobe -v error -count_frames -show_entries stream=nb_read_frames xxx.h265 nb_read_frames=50
Command
sample_decode h265 -i xxx.h265 -o xxx.yuv
Loaded Library configuration: Version: 2.7 ImplName: mfx-gen Adapter number : 0 Adapter type: integrated DRMRenderNodeNum: 128 Used implementation number: 0
Input video HEVC Output format NV12 Input: (Hide) Output: (Hide) Frame rate 25.00 Memory type system MediaSDK impl hw MediaSDK version 2.7
Decoding started Frame number: 34, fps: 16.279, fread_fps: 0.000, fwrite_fps: 23.011 Decoding finished
Hi, could you please leave an e-mail or something else, I can send you the file but only inside Intel.
I have copied the file 8k.h265 to the mentioned folder.
Root caused to Intel® oneVPL GPU Runtime. Transferring issue to that project.
Do you check if the lost frames are non-display frame since these frames will not have output yuv. @wangyan-intel can correct me .
Yes, the lost frames are not non-display frames. Other decoders can decode without loss.
Ok, therefore we may need to check if this bitstream has violation that vpl may skip decoding some error frames.
@Jexu can you clarify where to find whether a frame is marked as a non-display frame? We checked various players, we checked with VQA/Video Codec Analyzer/VQ Analyzer - different tools and players were able to decode and output and render raw YUV/NV12. But there might be a flag somewhere we and other players&tools overlooked...
Ok, therefore we may need to check if this bitstream has violation that vpl may skip decoding some error frames.
We checked with the corrupted flag (like modifying sample_decode to print each frame's corrupted flag), but no bitmask indicated for a decoder error.
See also our feedback on the MediaSDK-github issue created: "https://github.com/Intel-Media-SDK/MediaSDK/issues/3007#issuecomment-1409820983".
Auto Created VSMGWL-63156 for further analysis.