Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sample decode lost frames #268

Open
mamingy2 opened this issue Feb 2, 2023 · 9 comments
Open

sample decode lost frames #268

mamingy2 opened this issue Feb 2, 2023 · 9 comments
Labels
bug Issue is identified as a bug Decode Video Decoding

Comments

@mamingy2
Copy link

mamingy2 commented Feb 2, 2023

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

@mav-intel mav-intel added the bug Issue is identified as a bug label Feb 6, 2023
@mamingy2
Copy link
Author

mamingy2 commented Feb 9, 2023

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

@brmarkus
Copy link

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

@mav-intel
Copy link

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

@mav-intel mav-intel transferred this issue from intel/libvpl Feb 15, 2023
@Jexu Jexu added the Decode Video Decoding label Feb 16, 2023
@Jexu
Copy link
Contributor

Jexu commented Feb 16, 2023

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

@mamingy2
Copy link
Author

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

@Jexu
Copy link
Contributor

Jexu commented Feb 16, 2023

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

@brmarkus
Copy link

@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
Copy link

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: "Intel-Media-SDK/MediaSDK#3007 (comment)".

@intel-mediadev
Copy link
Contributor

Auto Created VSMGWL-63156 for further analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is identified as a bug Decode Video Decoding
Projects
None yet
Development

No branches or pull requests

5 participants