Skip to content

[Bug]: h264_amf decoder not working with ffmpeg 7.1.1 #552

Description

@i-barati

Describe the bug
I tried to test amf hw decoder with ffmpeg. The decoding fails at decoder initialization.

To Reproduce
Steps to reproduce the behavior:
ffmpeg -c:v h264_amf -i legend.h264 -pixel_format nv12 out.yuv -loglevel debug

Setup (please complete the following information):
Driver version: 22.6.1
Graphics Chipset: Radeon (TM) 530
OS: windows 11 Version 23H2 (OS Build 22631.5189)

Debug Log (please upload or paste):

[AMF @ 000001d4a3cb86c0] AMFDeviceDX11Impl: 2025-05-07 09:02:46.092     1EC8 [AMFDeviceDX11Impl]   Debug: InitDX11() created HW DX11.1 device
[AMF @ 000001d4a3cb86c0] AMFDeviceDX11Impl: 2025-05-07 09:02:46.092     1EC8 [AMFDeviceDX11Impl]   Debug: InitDX11() created HW DX11 device
[AMF @ 000001d4a3cb86c0] AMF initialisation succeeded via D3D11.
[AMF @ 000001d4a3cb86c0] AMFDecodeEngineImplDX: 2025-05-07 09:02:46.233     1EC8 [AMFDecodeEngineImplDX]    Info: Init() OK! Video DX HW DECODER (1920x816) for input stream
[AMF @ 000001d4a3cb86c0] AMFDecodeEngineImplDX11: 2025-05-07 09:02:46.233     1EC8 [AMFDecodeEngineImplDX11]   Error: ..\..\..\..\..\runtime\src\components\DecoderUVD\DecodeEngines\DirectX\DirectX11\DecodeEngineDX11.cpp(378):Assertion failed:InitDecoder() cannot query for ID3D11VideoDevice

Expected behavior
Decoder initialization succeeds . Ffmpeg able to decode with h264_amf decoder.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions