AMF icon indicating copy to clipboard operation
AMF copied to clipboard

[Bug]: AVC 1080p cannot be decoded

Open arancino1 opened this issue 9 months ago • 1 comments

Describe the bug decoding an AVC elementary stream gives AMF_RESOLUTION_CHANGED after submitting the first and subsequent slice(s) to the AMF decoder

To Reproduce navigate to the SimpleDecoder sample application from the AMF SDK and feed in the file "_out.h264" via fileNameIn or CLI

Steps to reproduce the behavior:

  1. download the elementary stream file _out.h264
  2. compile the SimpleDecoder sample application from the AMF SDK
  3. watch the return value from the call decoder->SubmitInput(data);

Setup:

  • OS: [Windows 10 and Windows 11]
  • Driver Version [32.0.13031.3015] and others
  • GPU [RX 7600] and others like RX 6xxxx
  • AVC Decoder issue across several machines

Debug Log: not applicable. The return value of SubmitInput() is always AMF_RESOLUTION_CHANGED starting with the first slice in stream. The suggested drain/terminate/init doesn't fix the problem.

Expected behavior SubmitInput() returns AMF_OK or AMF_NEED_MORE_INPUT

Screenshots not applicable

Additional context elementary AVC video stream data comes from a Fuji X-T4 camera

arancino1 avatar Mar 18 '25 19:03 arancino1

Little bit unusual stream. The first SPS ID is 1. The fix is trivial, will appear in the future driver. Thanks.

MikhailAMD avatar Mar 18 '25 20:03 MikhailAMD