-
Notifications
You must be signed in to change notification settings - Fork 87
Support AMD GPU encoding #45
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestffmpegpossibly-fixedMaybe fixed already, but I can't test it or would like confirmationMaybe fixed already, but I can't test it or would like confirmation
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestffmpegpossibly-fixedMaybe fixed already, but I can't test it or would like confirmationMaybe fixed already, but I can't test it or would like confirmation
I just got a new box with an integrated AMD GPU. Of course getting hardware encode/decode to work cost a bunch of hair off my head... I'm using linux, it's possible that the 'AMF' drivers on windows make things easier, dunno.
The simplest profile settings ASFAIK are:
The result is:
which is ffmpeg's way to say that the output of the overlay filter can't be piped like that into the h264_vaapi encoder 'cause the latter expects the frame to be in the hardware/gpu. What's needed is a 'hwupload' filter that does the upload to the gpu memory. E.g., in FFMPEGOverlay instead of
it needs
nice, eh?
BTW, I noticed that ffmpeg has an overlay_vaapi filter, so this would mean the decoded video frames would stay in gpu, get overlaid, and then encoded. Sadly the AMD vaapi driver doesn't support that... I believe the Intel one might.