OBS Studio Hardware Encoding on AMD GPU?

Hi guys, I’m not sure how to get hardware encoding working in OBS. The only options that show up are the software x264 CPU encoding and something called “FFMPEG VAAPI H.264”. Is that second one the AMD hardware accelerated option? I’m not sure because the OBS auto-setup didn’t select that option. Also, the VAAPI option doesn’t appear under the “Simple” Output options, only the “Advanced” section.

Sorry if dumb question, I’m a total Linux/Manjaro noob :upside_down_face:

OBS version 28.1.2-2
AMD driver version 2018.05.04
Other system specs in profile

Does above refer to the proprietary drivers installed from AUR?

To have hardware encoding you need to build mesa with h2xx support.

You need a custom PKGBUILD e.g. GitHub - mesa-freeworld/mesa-freeworld: freeworld build of mesa for Manjaro unstable branch.

You may also need to adjust version if they are not up-to-date.

Thanks for the response! The driver I mentioned is the standard open-source one that popped up in the install menu. Here’s a the terminal output with the installed and available drivers:

mhwd -l -d                                                                                     ✔ 
--------------------------------------------------------------------------------
> PCI Device: /devices/pci0000:00/0000:00:03.1/0000:05:00.0/0000:06:00.0/0000:07:00.0 (0300:1002:73bf)
  Display controller ATI Technologies Inc Navi 21 [Radeon RX 6800/6800 XT / 6900 XT]
--------------------------------------------------------------------------------
  > INSTALLED:

   NAME:        video-linux
   ATTACHED:    PCI
   VERSION:     2018.05.04
   INFO:        Standard open source drivers.
   PRIORITY:    2
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 0380 0302 
   VENDORIDS:   1002 8086 10de 



  > AVAILABLE:

   NAME:        video-linux
   ATTACHED:    PCI
   VERSION:     2018.05.04
   INFO:        Standard open source drivers.
   PRIORITY:    2
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 0380 0302 
   VENDORIDS:   1002 8086 10de 

   NAME:        video-modesetting
   ATTACHED:    PCI
   VERSION:     2020.01.13
   INFO:        X.org modesetting video driver.
   PRIORITY:    1
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 
   VENDORIDS:   * 

   NAME:        video-vesa
   ATTACHED:    PCI
   VERSION:     2017.03.12
   INFO:        X.org vesa video driver.
   PRIORITY:    0
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 
   VENDORIDS:   * 


Warning: no configs for USB devices found!

Would any of these work? If not, where can I learn how to “build mesa”? I checked the Manjaro wiki and all I saw relating to Mesa was the last section on GPU drivers. Here’s that output:

glxinfo | grep OpenGL                                                                          ✔ 
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX 6800 XT (navi21, LLVM 15.0.7, DRM 3.49, 6.1.7-1-MANJARO)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.3.3
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.3.3
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.3.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

It looks like Mesa is installed? Although I’ll admit I have very little idea what I’m looking at here; like I said I’m a total Linux noob.

EDIT: Thanks for the reminder on screenshots.

Please copy and paste terminal output instead of uploading screenshots of text.

Each image uploaded to the server makes forum database backups larger. Search engines cannot read screenshots and one cannot copy and paste from them without an OCR program.

Please edit your post accordingly.

EDIT: Thank you for doing that. :+1:

Relevant XKCD