Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble installing AMF? #481

Open
Tombert opened this issue May 17, 2024 · 1 comment
Open

Trouble installing AMF? #481

Tombert opened this issue May 17, 2024 · 1 comment
Labels

Comments

@Tombert
Copy link

Tombert commented May 17, 2024

I know it's probably not directly supported, but any general advice would be helpful.

I am trying to install AMF transcoding support into NixOS. I installed this AMF stuff and compiled ffmpeg with the --enable-amf flag, and it compiled fine, but I'm getting this error:

[h264_amf @ 0xc3fa40] DLL libamfrt64.so.1 failed to open

Now I looked at the driver directory for the amdgpu-pro, and there exists a libamfrt64.so.0 file, which looks similar, so I copied all the files outta that folder and placed them into my home directory, symlinked libamfrt64.so.0 to libamfrt64.so.1 and pointed the ld library path variable to that folder. Then i got the the equally frustrating error of: AMF failed to initialise on the given Vulkan device: 1.

The amdgpu-pro version appears to be 21.30 (https://github.com/NixOS/nixpkgs/blob/9ddcaffecdf098822d944d4147dd8da30b4e6843/pkgs/os-specific/linux/amdgpu-pro/default.nix#L34), which I believe should be a supported version. Any ideas?

@MikhailAMD
Copy link
Collaborator

Older AMF runtime relies on AMD Pro Vulkan driver for many things including encoder. The message says that AMF cannot initialize this Vulkan driver. Verbose output from FFmpeg will provide AMF logs with more details but in the essence this Vulkan driver is not properly installed. Note, that AMF encoder would also need matching VCN firmware and Vulkan Pro driver may have own dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants