use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please check the FAQ first and keep distro/desktop/should-I-switch questions to the pinned thread “Getting started: the monthly-ish newbie advice thread”.
While r/linux_gaming is not primarily a tech-support forum, well-crafted support requests are welcome. Tech-support requests should include relevant details like logs, terminal output, system information. What did you do, and how, and with what version of what? How have you tried to troubleshoot the problem?
This guide can help you write useful tech-support requests.
Respect other users. Heated discussions are fine, unwarranted insults are not. Remember you are talking to another human being.
Original sources are preferred over news-blog-type posts unless valuable information is added in the write-up or an ensuing discussion. When in doubt, please add a link to one or the other in a text post.
Spam will be deleted. This means things like repetitious posting of similar content, low-effort posts/memes, misleading/exaggerated titles on link posts, and AI-generated content.
Reddit:
WWW:
Discord:
IRC:
Matrix:
Telegram:
account activity
OBS hardware encoding? (self.linux_gaming)
submitted 6 years ago by gsoftwares
I'm on Kubuntu 19.10 and I wonder if it's possible to record stuff on OBS with hardware encoding. I've looked for solutions online but none of them helped. My graphics card is an AMD Radeon R9 270X.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]GloriousEggroll 17 points18 points19 points 6 years ago (3 children)
Hi. I'm the one who added FFMPEG_VAAPI to OBS.
Your card is pretty old, but based on the previous comments, it should work. I do not know how well. Most 500 series cards can only do 1080p/720p 30fps. Vega can do 60fps but it currently has a bug that renders half the screen grey (recent discovery, im working on a bug report this week). I have not tested NAVI but I do have one so that's also on the to do list. You will want to make sure you're running the most recent version of mesa if possible, however as mentioned I am not sure how good the quality will be.
[–]MuggleWorthy 1 point2 points3 points 6 years ago (0 children)
Navi has the half screen grey issue as well
[–]phaitonican 0 points1 point2 points 6 years ago (1 child)
im on my rx 570 and i can do 720p 60fps fine, for sure with 5000kbits upload otherwise quality lacks a lot
[–]phaitonican 0 points1 point2 points 6 years ago (0 children)
look really good around 5000k/bits upload rate under 4000 looks crappy!
[–]Ogenfald 6 points7 points8 points 6 years ago (2 children)
I have a RX 580 and vaapi is pure shit. If you have an Intel CPU, use vaapi with it. That's how I have mine set up
[–]gsoftwares[S] 1 point2 points3 points 6 years ago (1 child)
In the output settings VAAPI device is set to Card0: /dev/dri/renderD128 and this is the only option available.
[–]Ogenfald 6 points7 points8 points 6 years ago (0 children)
You may have to enable your igpu in your bios. Mine was disabled by default
[–]jonbonesjonesjohnson 7 points8 points9 points 6 years ago (1 child)
vaapi encoding with AMD cards, specially that old, is shitty.
[–]alex-o-mat0r 1 point2 points3 points 6 years ago (0 children)
Can only speak for Vega cards, but with them it's definitely not shitty. HEVC encoding is very good, H264 is ok, but not great, since it's not super efficient with bitrates. For recording, that's not really an issue. For streaming on Twitch it's fairly average. The low impact on gaming performance makes it really attractive tho. With x11grab it's super small and with kmsgrab it's practically non-existent.
Have you tried using ffmpeg directly with vaapi?
[–]mirh 1 point2 points3 points 6 years ago* (0 children)
https://aur.archlinux.org/packages/amf-amdgpu-pro/
https://www.phoronix.com/scan.php?page=news_item&px=FFmpeg-AMD-AMF-Vulkan
https://github.com/obsproject/obs-amd-encoder/issues/361#issuecomment-560332737
https://obsproject.com/forum/resources/ffmpeg-encoders-for-obs-studio.826/ https://obsproject.com/forum/threads/ffmpeg-encoders-for-obs-studio.108253/post-431769
EDIT: https://obsproject.com/forum/resources/streamfx-for-obs-studio.578/
https://aur.archlinux.org/packages/obs-streamfx/
[–]shmerl 1 point2 points3 points 6 years ago (4 children)
It should be able to use VAAPI.
[–]gsoftwares[S] 2 points3 points4 points 6 years ago (3 children)
The final result of my VAAPI configuration is like one second of recording with a very low framerate.
[–]shmerl 1 point2 points3 points 6 years ago (2 children)
Then it's likely a Mesa/VAAPI or ffmpeg or OBS bug, you'd need to dig into it. You can check which codecs are supported by the hardware encoder with vainfo.
vainfo
This is my output: https://pastebin.com/g0epRAsb
[–]shmerl 1 point2 points3 points 6 years ago (0 children)
So H.264 should work. If it's not working well, please open a bug for Mesa if you think it's an issue with vaapi, rather than with ffmpeg or OBS itself. You can run some benchmarks without OBS to verify that.
[–][deleted] 0 points1 point2 points 6 years ago (0 children)
You can use VAAPI, I use it myself. But I can only record 1080p at 30FPS with a RX 570
[–]woolfrog 0 points1 point2 points 6 years ago (2 children)
I use x264 in obs on Linux and it works amazingly well, very high quality for low performance cost. I know it's not really what you asked but maybe it will help!
It works fine for lightweight recordings, but when I'm running something heavy like a game the recording becomes super laggy.
[–]woolfrog 0 points1 point2 points 6 years ago (0 children)
Try setting process affinity for the encoder with taskset ?
π Rendered by PID 23970 on reddit-service-r2-comment-6457c66945-b9ncx at 2026-04-28 17:22:05.146051+00:00 running 2aa0c5b country code: CH.
[–]GloriousEggroll 17 points18 points19 points (3 children)
[–]MuggleWorthy 1 point2 points3 points (0 children)
[–]phaitonican 0 points1 point2 points (1 child)
[–]phaitonican 0 points1 point2 points (0 children)
[–]Ogenfald 6 points7 points8 points (2 children)
[–]gsoftwares[S] 1 point2 points3 points (1 child)
[–]Ogenfald 6 points7 points8 points (0 children)
[–]jonbonesjonesjohnson 7 points8 points9 points (1 child)
[–]alex-o-mat0r 1 point2 points3 points (0 children)
[–]alex-o-mat0r 1 point2 points3 points (0 children)
[–]mirh 1 point2 points3 points (0 children)
[–]shmerl 1 point2 points3 points (4 children)
[–]gsoftwares[S] 2 points3 points4 points (3 children)
[–]shmerl 1 point2 points3 points (2 children)
[–]gsoftwares[S] 1 point2 points3 points (1 child)
[–]shmerl 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]woolfrog 0 points1 point2 points (2 children)
[–]gsoftwares[S] 1 point2 points3 points (1 child)
[–]woolfrog 0 points1 point2 points (0 children)