oneVPL-intel-gpu icon indicating copy to clipboard operation
oneVPL-intel-gpu copied to clipboard

sample decode lost frames

Open mamingy2 opened this issue 2 years ago • 9 comments

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

mamingy2 avatar Feb 02 '23 06:02 mamingy2

Hi, could you please leave an e-mail or something else, I can send you the file but only inside Intel.

mamingy2 avatar Feb 09 '23 02:02 mamingy2

I have copied the file 8k.h265 to the mentioned folder.

brmarkus avatar Feb 13 '23 08:02 brmarkus

Root caused to Intel® oneVPL GPU Runtime. Transferring issue to that project.

mav-intel avatar Feb 15 '23 16:02 mav-intel

Do you check if the lost frames are non-display frame since these frames will not have output yuv. @wangyan-intel can correct me .

Jexu avatar Feb 16 '23 02:02 Jexu

Yes, the lost frames are not non-display frames. Other decoders can decode without loss.

mamingy2 avatar Feb 16 '23 02:02 mamingy2

Ok, therefore we may need to check if this bitstream has violation that vpl may skip decoding some error frames.

Jexu avatar Feb 16 '23 05:02 Jexu

@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...

brmarkus avatar Feb 16 '23 05:02 brmarkus

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".

brmarkus avatar Feb 16 '23 05:02 brmarkus

Auto Created VSMGWL-63156 for further analysis.

intel-mediadev avatar Apr 03 '23 06:04 intel-mediadev