Skip to content

FFmpeg: Add AMD AMF encoder detection helpers - #1130

Open
rajeshgk wants to merge 1 commit into
OpenShot:developfrom
rajeshgk:feature/994-amd-encoder-detection
Open

rajeshgk wants to merge 1 commit into
OpenShot:developfrom
rajeshgk:feature/994-amd-encoder-detection

Conversation

@rajeshgk

Copy link
Copy Markdown
Contributor

Summary

Add AMD AMF encoder identification and FFmpeg registration
detection as an initial contribution toward Issue #994.

Changes

  • Recognize h264_amf, hevc_amf, and av1_amf.
  • Add ffmpeg_is_amf_encoder() to identify AMF encoder names.
  • Add ffmpeg_amf_encoder_is_compiled() to check whether a
    recognized AMF encoder is registered in the linked FFmpeg library.
  • Add unit tests for recognized names, invalid names, and
    FFmpeg encoder registration.
  • Preserve existing hardware-encoding behavior.

Validation

  • Built successfully using GCC 15.
  • AMD-specific tests: 19 assertions passed in 2 test cases.
  • Complete FFmpeg capability tests: 44 assertions passed
    in 5 test cases.
  • Git patch whitespace validation passed.

Scope and limitations

This is a detection-only contribution.

FFmpeg encoder registration does not establish that an AMD GPU,
driver, or working AMF runtime is available.

This PR does not implement AMF hardware initialization,
frame transfer, export integration, or successful GPU encoding.

Those capabilities require additional development and
hardware-based testing.

Related issue

Progress toward #994.

This PR does not fully resolve #994.

Identify H.264, HEVC, and AV1 AMF encoder names and report whether each encoder is registered in the linked FFmpeg library.

Add unit tests covering encoder classification, invalid names, and registration detection.

This is a detection-only foundation for issue OpenShot#994; it does not establish GPU availability or enable AMD hardware encoding.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support AMD GPU acceleration

1 participant