obs-amd-encoder icon indicating copy to clipboard operation
obs-amd-encoder copied to clipboard

[tracker] Linux support in 2020.

Open RarogCmex opened this issue 4 years ago • 14 comments

Description

The complete Linux support (all distribution). Gentoo linux e.g. AMF is open-source and supports Linux now https://github.com/GPUOpen-LibrariesAndSDKs/AMF

System Information

rarogcmex@RarogCmexEngine ~ $ uname --all Linux RarogCmexEngine 5.4.6-ck-RarogCmex #3 SMP PREEMPT Sun Jan 12 19:40:04 +05 2020 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux

Checklist:

  • [x] I have read the contribution guidelines.
  • [x] This is not a bug, crash or generic issue.

RarogCmex avatar Jan 21 '20 18:01 RarogCmex

Please don't close its because it should be used as tracker for all Linux-related things

RarogCmex avatar Jan 21 '20 18:01 RarogCmex

Linux support is not planned for this project. Please use alternatives like ffmpeg and VAAPI instead, which have much wider support.

Xaymar avatar Jan 22 '20 10:01 Xaymar

See #335, #361. Unless someone else picks up Linux integration, nothing will change with that plan.

Xaymar avatar Jan 22 '20 10:01 Xaymar

Ok, so we should wait. Well, but alternative -- obs ffmpeg encoder is dead, isnt it? I couldn't get it working.

RarogCmex avatar Jan 23 '20 11:01 RarogCmex

obs-ffmpeg-encoder is merged into obs-streamfx. It still needs work, but at the moment I am prioritizing paid work and secret projects.

Xaymar avatar Jan 23 '20 11:01 Xaymar

Agree too, we need AMF plugin for Linux, because (or I don't know how to) we can't set preset profiles (quality, balanced, speed) in VAAPI way on OBS for a great video encoding offload.

ogmkp avatar Jan 02 '21 16:01 ogmkp

Please someone add AMF, FFMPEG seems only record 1080p30fps on my mid range amd gpu.

phaitonican avatar May 12 '21 16:05 phaitonican

any update recently?

SchrodingerZhu avatar Jun 20 '21 13:06 SchrodingerZhu

There's obs-studio-amf package that used to work like a month or two ago but I just tried it and it doesn't compile. I didn't try to just bump up versions in PKGBUILD file because of the AUR comment:

Since OBS 30.0 has been released, I'll close the package.

The person who did the patch to enable AMF Encoding says that now the quality with FFMPEG has been fixed on AMD Cards (https://github.com/obsproject/obs-studio/pull/9179)

Since the MR in closed and the patch no longer maintained I would close this AUR package.

So it sounds like if someone was to update the patch for OBS 30, it'd be working.

I tried OBS 30 without the patch with ffmpeg-obs and it works fine, I can record with HEVC Main and Main10 through VAAPI without issues - it's in Advanced view only, doesn't show in Simple.

cprn avatar Dec 10 '23 02:12 cprn

That would be interesting, there's already nvenc. The AMF encoder is only available with the amdgpupro driver while the free amdgpu driver is equally powerful or faster. Is there really a benefit over VAAPI (cpu, gpu, bus loads)?

ogmkp avatar Dec 19 '23 19:12 ogmkp

I've tested recording a video on arch Linux with AMF using the closed source AMD driver AMDGPU and it records correctly on OBS

sudo pacman -S obs-studio
or 
paru -S obs-studio-git

screenshot_2023-12-19_21-17-19_359222515

screenshot_2023-12-19_21-15-36_062031893

More info

  • I can record correctly on 8 and 10 bits on hyprland (wayland).
  • Note that you don't need to run the AMDGPU driver system wide. You can install the driver in /opt/ and start OBS the next way even if your system is currently running the RADV driver, or any other.
AMD_VULKAN_ICD=RADV-PRO VK_ICD_FILENAMES=/opt/amdgpu-pro/etc/vulkan/icd.d/amd_icd64.json obs

What doesn't work yet

  • I can't choose AMF for streaming. → Not a big deal because no streaming service support it yet anyway.

Zeioth avatar Dec 19 '23 20:12 Zeioth

AMD_VULKAN_ICD=RADV-PRO VK_ICD_FILENAMES=/opt/amdgpu-pro/etc/vulkan/icd.d/amd_icd64.json obs

Not working with 30.0.2-2, neither with git. Also running hyprland.

image

3laws avatar Jan 27 '24 23:01 3laws

On Arch based distros there's AUR package obs-studio-av1 that brings a patched version of latest OBS Studio, it supports FFmpeg AV1. Works fine on open driver.

cprn avatar Jan 28 '24 03:01 cprn

Since tuesday that's no longer necessary with obs-studio-git

mirh avatar Jan 28 '24 12:01 mirh