Skip to content

[Bug]: HEVC AMF 10-bit fails to initialize with QVBR / HQVBR (Init() error 10) #591

@DummyTitan

Description

@DummyTitan

Description:

HEVC encoding using AMF fails to initialize when combining 10-bit (P010 / Main10) with QVBR or HQVBR rate control modes. The encoder returns Init() failed with error 10 and no frames are encoded.

This behavior is reproducible with a minimal FFmpeg test and does not depend on input complexity.

Environment:

FFmpeg: 2026-03-30-git-e54e117998-full_build (Gyan.dev)
OS: Windows
GPU: AMD Radeon RX 7900 XT
CPU: AMD Ryzen 9 7950X
RAM: 32GB DDR5 @ 5200 MT/s (XMP enabled)
Encoder: hevc_amf

Reproduction Command (QVBR):

ffmpeg -f lavfi -i testsrc2=size=1280x720:rate=30 -t 5 ^
-vf format=p010le ^
-c:v hevc_amf ^
-profile:v main10 -bitdepth 10 ^
-rc qvbr -qvbr_quality_level 23 ^
-y test_qvbr_10bit.mkv

Reproduction Command (HQVBR):

ffmpeg -f lavfi -i testsrc2=size=1280x720:rate=30 -t 5 ^
-vf format=p010le ^
-c:v hevc_amf ^
-profile:v main10 -bitdepth 10 ^
-rc hqvbr -qvbr_quality_level 23 ^
-y test_hqvbr_10bit.mkv

Observed Behavior:

Encoder fails during initialization:

encoder->Init() failed with error 10
Error while opening encoder
Could not open encoder before EOF
No output frames are produced

Expected Behavior:

Encoder should initialize and encode normally using QVBR / HQVBR in 10-bit mode, as both features are exposed and documented.

Validation / Control Tests:

QVBR / HQVBR + 8-bit (nv12) → Works correctly
10-bit (p010le) + VBR/CBR → Works correctly
10-bit + QVBR / HQVBR → Fails consistently

This isolates the issue specifically to:

HEVC + 10-bit + (QVBR / HQVBR)

Notes:

FFmpeg reports support for:
p010le
main10
rc=qvbr, rc=hqvbr
Therefore, this appears to be a backend/AMF issue rather than misuse of parameters.
Both QVBR and HQVBR likely trigger internal pre-analysis paths that are incompatible with HEVC 10-bit.

Request:

Confirm whether QVBR and HQVBR are officially supported for HEVC 10-bit in current AMF versions
Clarify if this is a known limitation or regression
Provide guidance or timeline for a fix if applicable

Additional Info:
Issue is fully reproducible with synthetic input (testsrc2), eliminating source-related variables.

Conclusion:
QVBR and HQVBR are currently unusable with HEVC 10-bit via AMF despite being exposed as supported, causing a hard failure during encoder initialization.

Image Image Image

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