Question / Help AMD HEVC encoder option

Pulsed

New Member
Hello, I was wondering about the AMD HEVC/H.265 encoder for linux.

I am currently running Arch linux with an i5-4460 and a RX-460.

I have tried to install multiple codecs including x264 and x265, tried following https://wiki.archlinux.org/index.php/Hardware_video_acceleration to get the necessary packages to work (VD-PAU and VA-API. These have installed succesfully by checking with vainfo and vdpauinfo can post the outputs if needed) I have also installed Ubuntu 16.04 and the AMDGPU-PRO drivers thinking it would package something to "unlock" the function to record with H.265.

I have read the wiki and this specific post https://github.com/Xaymar/obs-studio_amf-encoder-plugin/wiki/Hardware-Support showing that there is support for the codec to function. Also looked at this plugin https://github.com/Xaymar/obs-studio_amf-encoder-plugin/releases/tag/2.2.4 but obviously it would not work since it is only made for windows.

Is the reason just because there is no way to get HEVC working on linux or is it because I need to compile FFmpeg as well for support for HEVC or am I missing something?
 
Last edited:
hey m8, i just finished tweaking w23's patch from a few months back to work with vaapi h.264, i might be able to get it to work with hevc also. have a look:

Modified tree:
https://github.com/GloriousEggroll/obs-studio/blob/master/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c

Patch:
https://github.com/GloriousEggroll/...t-ffmpeg-vaapi/blob/master/ffmpeg-vaapi.patch

Video:
https://www.youtube.com/watch?v=s2EZ_H-POSM&feature=youtu.be

works on amdgpu (open source driver) on mesa. My mesa version was 17.3


edit: updated today with hevc support as well as other codecs and their profiles
 
Last edited:

Pulsed

New Member
hey m8, i just finished tweaking w23's patch from a few months back to work with vaapi h.264, i might be able to get it to work with hevc also. have a look:

Modified tree:
https://github.com/GloriousEggroll/obs-studio/blob/master/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c

Patch:
https://github.com/GloriousEggroll/...t-ffmpeg-vaapi/blob/master/ffmpeg-vaapi.patch

Video:
https://www.youtube.com/watch?v=s2EZ_H-POSM&feature=youtu.be

works on amdgpu (open source driver) on mesa. My mesa version was 17.2.5


edit: updated today with hevc support as well as other codecs and their profiles

That's great finally got the HEVC option to show up on the encoder settings and recording with it flawlessly. Thank you for this patch.
 
Last edited:

DroWn

New Member
I know this is pretty old, but these links are dead.. I'm having trouble locating this patch, and I'm not even sure how to use it. I'm guessing I'd have to build from source and add this into the sequence, but I don't even have it.
 
Top