[Bug]: Incorrect number of frames decoded from HEVC test vector on AMF-master
Describe the bug Using the test vector BUMPING_A_ericsson_1 in the test vector set available at https://www.itu.int/net/itu-t/sigdb/spevideo/VideoForm-s.aspx?val=102002651 will cause the test application SimpleDecoder (SimpleDecoder.cpp) to produce the wrong number of output frames. The expected number on this test vector is 49 and the actual output from SimpleDecoder is 66.
To Reproduce Steps to reproduce the behavior:
- Download the test vectors from https://www.itu.int/net/itu-t/sigdb/spevideo/VideoForm-s.aspx?val=102002651
- Extract BUMPING_A_ericsson_1.zip
- Extract BUMPING_A_ericsson_1.bit
- Run the test application, e.g., ".\SimpleDecoder .\BUMPING_A_ericsson_1.bit"
- Observe the output file to confirm that there are 66 frames (expected number is 49).
- Optionally, run the reference HEVC decoder to confirm what the output should look like.
Setup (please complete the following information):
- OS: Windows 11
- Driver Version: amfrtdrv64.dll 32.00.12033.xxxxx
- GPU: Radeon 780M
- Which component has the issue: Decoder
Debug Log (please upload or paste): n/a
Expected behavior The correct number of frames should be decoded on the conformance test vector for HEVC.
Screenshots n/a
Additional context In order for a HEVC decoder to be conformant with HEVC, the test vectors need to be decoded correctly.
Further clarification: The input file needs to be renamed from .bit to .H265 and the way I execute the sample app is:
.\SimpleDecoder.exe BUMPING_A_ericsson_1.H265 > out.txt
I have also attached some modifications to the SimpleDecoder.cpp along with the output from a test run. I expect that all POC 0-65 should be outputted except the following: 4, 5, 6, 7, 15, 21, 22, 23, 30, 31, 36, 37, 38, 39, 54, 55, 56
Without having looked into the details, it seems like the bumping is not performed at all.
Thank you. This file somehow was missing from our set. Working on the fix. How important is this feature for you?
Thank you. This file somehow was missing from our set. Working on the fix. How important is this feature for you?
Hi. Thanks for looking into this. I just randomly found this problem while investigating to what extent HEVC is possible to use on laptops with Windows 11.
OK, I have preliminary fix working. It will eventually propagate into AMF runtime in the driver package. Thanks.