Add ffmpeg amd hardware acceleration presets#324
Conversation
Kr4wny
left a comment
There was a problem hiding this comment.
Tested it on a AMD Radeon 7800XT with one random episode and ffmpeg-output accelerated massively:
h264-normal > 170sec
h264-amd-normal > 49sec
h265-normal > 370sec
h265-amd-normal > 49sec
av1-normal > 165sec
av1-amd-normal > 40sec
Works like a charm.
|
Tested the following presets on an AMD Radeon RX 6800 XT:
Both of them work and speed up the process of generating the output file, however, there's only about 20% load on the GPU. I don't really know if this can be sped up further? Tried with more ffmpeg threads, but that changed nothing. The preset Edit: I used the prebuilt binary from the Github action. |
|
Hey, thanks for your response, great to hear that it works! |
|
You're welcome and thanks for the clarification! |
|
|
This PR adds hardware acceleration for AMD via the
--ffmpeg-presetflag. Unfortunately I'm unable to test if it's working because I do not own an AMD card.I need someone with an AMD card to verify that everything works. Testing the
h264-amd-normalandh265-amd-normalfeature are the minimum requirements for me to merge the feature (testing other quality levels are still desirable though; also AV1 testing would be great, but I'm okay with it to not be tested as only newer AMD models support it). You can either build thefeature/amd-hwaccelbranch yourself or use a pre-built binary.Until the named tests requirements are met, this feature is blocked.