Please login to access the resource
Overview

Request 964390 accepted

AMF allows H264 and HEVC hardware encoding on AMD graphics running AMDGPU-Pro proprietary drivers.
Main reason for submission is to enable encoding with amf in ffmpeg, conditional.

Loading...

Takashi Iwai's avatar

So this package is only about the header files? How would they be used?


Enrico Belleri's avatar
author source maintainer target maintainer

You would need to install AMDGPU-Pro proprietary drivers for Radeon, for example as explained here: https://en.opensuse.org/SDB:AMDGPU-PRO

Then to use it with ffmpeg built with amf headers:

ffmpeg -hwaccel auto -i <input.mp4> -c:v h264_amf <output.mp4>

or

ffmpeg -hwaccel auto -i <input.mp4> -c:v hevc_amf <output.mp4>.

The ability to make use of amf support was requested by a user about a year ago on the ffmpeg-4 package devel page. Personally I don't own a Radeon graphics card to test it.

It should also be possible to manually load the Vulkan driver when needed with VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_pro_icd64.json, while still run open VK drivers globally.


Takashi Iwai's avatar

Hrm, so it means that ffmpeg-4 package can be built only with this AMF-devel package on OBS or PBS? Or the build of ffmpeg-4 needs AMDGPU-pro thingy? In the latter case, it's not clear to me what's the merit of providing this package from OBS...


Enrico Belleri's avatar
author source maintainer target maintainer

We can set %bcond_with amf in the ffmpeg-4 spec, so that it doesn't build with with amf support by default; then ask Packman to enable it in their project config.

AMDGPU-Pro is the driver needed by the user to make use of AMF acceleration. AMD, among other things, makes the headers for build available under MIT, which is the package I'm submitting.


Request History
Enrico Belleri's avatar

iDesmI created request

AMF allows H264 and HEVC hardware encoding on AMD graphics running AMDGPU-Pro proprietary drivers.
Main reason for submission is to enable encoding with amf in ffmpeg, conditional.


Takashi Iwai's avatar

tiwai accepted request

OK, let's give this a try. Thanks.

openSUSE Build Service is sponsored by