AMF icon indicating copy to clipboard operation
AMF copied to clipboard

[Bug]: Incorrect number of frames decoded from HEVC test vector on AMF-master

Open petertester2015 opened this issue 10 months ago • 4 comments

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:

  1. Download the test vectors from https://www.itu.int/net/itu-t/sigdb/spevideo/VideoForm-s.aspx?val=102002651
  2. Extract BUMPING_A_ericsson_1.zip
  3. Extract BUMPING_A_ericsson_1.bit
  4. Run the test application, e.g., ".\SimpleDecoder .\BUMPING_A_ericsson_1.bit"
  5. Observe the output file to confirm that there are 66 frames (expected number is 49).
  6. 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.

petertester2015 avatar Feb 19 '25 15:02 petertester2015

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.

gitdiff.txt

out.txt

petertester2015 avatar Feb 20 '25 10:02 petertester2015

Thank you. This file somehow was missing from our set. Working on the fix. How important is this feature for you?

MikhailAMD avatar Feb 21 '25 16:02 MikhailAMD

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.

petertester2015 avatar Feb 24 '25 08:02 petertester2015

OK, I have preliminary fix working. It will eventually propagate into AMF runtime in the driver package. Thanks.

MikhailAMD avatar Feb 24 '25 14:02 MikhailAMD