GloriousEggroll
(Another) new side project
updated
Here's the PR request patch for OBS:
github.com/obsproject/obs-studio/pull/7206
Here's how to get AMD AMF setup on Nobara/Fedora (OBS is already patched):
nobaraproject.org/docs/obs-studio/enabling-amds-amf-encoder
The author of the OBS PR request was on Arch and I worked with him to get the driver packages sorted on the Arch AUR side as well, so that should be available soon. This means the AMF encoder can now work in OBS on all Ubuntu, Arch, and Fedora based systems.
As this is a 4k60 recording, please note it was done on a 6900 XT. Results may vary on lower end hardware.
The short version is -- VAAPI hardware decode (without DRM) causes the green video artifacting during playback. In VLC you can fix it if you go to the codec section and do any of these 3:
- disable hardware decoding
- choose VAAPI with DRM
- choose VDPAU
Posting this in hopes that it helps others because this was driving me insane.
github.com/fzwoch/obs-gstreamer
obs-vkcapture plugin:
github.com/nowrep/obs-vkcapture
AMD AMF encoder struggles are finally over, it's NOT NEEDED ANY MORE!!
A NEW VAAPI plugin came out for linux OBS called obs-gstreamer. You can find it here:
github.com/fzwoch/obs-gstreamer
You can use it alongside obs-vkcapture, found here:
github.com/nowrep/obs-vkcapture
and that's ALL you need, for ANY resolution.
This video was recorded at full 4k resolution -- 3840x2160, Ultra Nightmare. No FSR, No DLSS, nothing like that. full native.
It was captured using obs-vkcapture -- no capture card! no two system setup!
It was recorded using the gstreamer vaapi plugin -- at full 4k resolution with 60mbps bitrate (average for 4k video), and it didn't even break a sweat. I am baffled and amazed at this plugin. PLEASE give it a try, especially if you are struggling on older hardware, I'd be curious to see how well it performs.
1:15 Motherboard
3:42 Cooler
4:52 CPU
6:58 RAM
7:32 GPU
10:15 PSU
10:45 SSD
11:50 Case
14:24 Alt-Case:
15:20 Price Summary
17:22 OS Specs
Benchmarks:
17:43 Cyberpunk 2077 (DX12/VKD3D)
19:52 Forza Horizon 5 (DX12/VKD3D)
21:52 Red Dead Redemption 2 (Vulkan)
26:50 DOOM Eternal (Vulkan)
30:08 Metro Exodus Enhanced Edition (DX12/VKD3D)
38:06 God of War (DX11/DXVK)
43:52 Horizon Zero Dawn (DX12/VKD3D)
46:50 Resident Evil 2 Remake (DX12/VKD3D)
50:36 Elden Ring (DX12/VKD3D)
52:41 Additional note about FSR
53:24 Additional note about Motherboard
54:58 Outro
OS: Nobara Linux 35
Proton version: GE-Proton7-15
All games run at 1080p with medium settings, FSR enabled in-game only if available by the game.
Build:
-------------------
MB: (AliExpress) HUANANZHI X99-8M (not 8M-F or 8M-T) aliexpress.com/item/1005001679209644.html $103.55
Cooler: (AliExpress) Snowman cooler aliexpress.com/item/4001048943147.html 2 fan, no light, 4 pin, lga2011 $23.99
CPU: (Ebay) Intel Xeon E5-1650 v3 ebay.com/itm/383922002850 $39.99
GPU: (Ebay) Radeon RX 5500 (Non-XT) 4GB ebay.com/sch/i.html?_from=R40&_nkw=radeon+5500+4gb&_sacat=0&LH_BIN=1&_sop=15 $169.00
RAM: (Ebay) Samsung 16GB 2133 DDR4 RAM 8gb x2 : ebay.com/itm/284616267293 $39.98
SSD: (Amazon) TEAMGROUP EX2 512GB 2.5 Inch SATA III SSD amazon.com/dp/B014W3EM2W $47.99
PSU: (Amazon) Thermaltake Smart 500W 80+ amazon.com/dp/B014W3EM2W $34.99
Case: (Newegg) Cooler Master MasterBox Q300L amazon.com/Cooler-Master-Transparent-Adjustable-Ventilated/dp/B0785GRMPG $41.69
-------------------
$501.18
+ appx $30 for shipping + tax on some various parts.
Alt Case:(Newegg) DIYPC DIY-A5-BK Black Steel / Magnetic Tempered Glass newegg.com/p/N82E16811353220 $40.97
Background Music:
Plusma, Guillaume Muschalle - Parasol chll.to/d019336f
Timestamps:
0:00 Intro
4:47 AMD Radeon R9 390 8GB
9:51 AMD Radeon RX 5500 4GB (Non-XT OEM version)
13:52 AMD Radeon RX 6500 XT 4GB
18:04 Nvidia GeForce GTX 970 4GB
22:07 Nvidia GeForce GTX 1060 6GB
24:46 Nvidia GeForce GTX 1650 Super 4GB
28:37 Outro
Test Rig:
Ryzen 5 3600
16GB DDR4 3200 CL16
1TB NVME
500W PSU
Nobara Linux
GE-Proton7-14
Details surrounding pascal and lower generation Nvidia cards' poor DX12/VKD3D performance:
github.com/HansKristian-Work/vkd3d-proton/issues/465#issuecomment-744092867
Background Music:
C Y G N - Escape World chll.to/fdffc3d2
mainconcept.com/blackmagic-plugins
Here's the breakdown:
(1) For most people, kdenlive is completely sufficient in getting the job done. I had it crash on me a few times but it works.
(2) The other option is to edit in Davinci Resolve Studio, export using DNxHR-HQ which results in a very large file, then use ffmpeg to convert it to H.264/H.265 with AAC. Yes, it works, but it's a pain in the ass.
(3) There is currently a bug with DRS 17.4.5 that breaks the plugin. MainConcept are working with DRS to fix it, If you use it, it's recommended to downgrade to DRS 17.4.4
If you prefer DRS over kdenlive, and you want HEVC+AAC software encode support.. the plugin gets the job done. They are also planning on H.264 encode support.
- I have tested the paid version and the demo version, both work in DRS 17.4.4
-Plugins do -not- work in standard Davinci Resolve, only the Studio verison. The demo is free and adds a video logo watermark as well as audio blank-out sections for watermark
Same hardware as previous test video:
Game system:
6900 XT
5950X
64GB DDR4 3200 CL14
Nobara Linux
Capture System:
6700XT
5900X
16GB DDR4 CL16
Magewell Pro Capture HDMI 4K Plus LT
OBS Recording settings:
x264 (CPU encoding) -- via 'Custom ffmpeg' in OBS, other settings left default
65000 Bitrate
2 Keyframe Interval
pcm_s24le audio
Matroska (mkv) format
DRS + MainConcept plugin settings:
MainConcept MP4 (HEVC)
HEVC 10-bit
HEVC Main 10 4k 4:2:2
3840x2160 Ultra HD
60 FPS
Performance: 15
HEVC level: auto
Bitrate: CBR 65000 KBps
2. github.com/GloriousEggroll/amdgpu-pro-amf-fedora
3. copr.fedorainfracloud.org/coprs/gloriouseggroll/amdgpu-vulkan-switcher
4. github.com/Xaymar/obs-StreamFX/releases
Launch obs:
vk_pro obs
Launch game:
vk_pro %command%
For streaming:
Choose AMD AMF H.264...
For recording:
Choose Standard -- AMD AMF H.264
or
Choose Custom Output (FFmpeg) -- Select h264_amf for the Video Encoder. Choose whatever you want for the Audio Encoder. AAC is the default, PCM is useful for davinci resolve.
Game system:
6900 XT
5950X
64GB DDR4 3200 CL14
Capture System:
6700XT
5900X
16GB DDR4 CL16
Magewell Pro Capture HDMI 4K Plus LT
Recording settings:
x264 (CPU encoding) -- via 'Custom ffmpeg' in OBS, other settings left default
65000 Bitrate
2 Keyframe Interval
pcm_s24le audio
Matroska (mkv) format
Notes:
- I tried a couple different configurations and this hardware configuration was the one that could do 4k.
- AMD's AMF encoder works with OBS now (I'll have another video on that shortly) -- but it can only do up to 1440p60
- The reason the 6700XT was needed is because the render machine GPU needs to be able to keep up with the video format used by the capture card. Otherwise you get a heavy FPS hit. I tried a few other cards -- Vega VII, 5500 XT. Vega VII could only keep up with 4:2:0 formats at 4k and 5500XT could not at all.
- The reason the 5900X was needed is because 4k60 CPU encoding takes a lot of horsepower. I tried a 5600X and it was not enough.
For those wondering -- Nobara Linux is my personal side project. It's based on Fedora and focused on easier gaming and content creation out of the box:
http://www.nobaraproject.org
Souces for scripts in video:
gitlab.com/GloriousEggroll/egpu-nvidia-detect
The script:
gist.github.com/GloriousEggroll/12cf1e4fc470300f6b865a791d85a95e
Now nvidia gpus get detected and auto-installed. I plan to expand on it to remove them if the hardware is removed, and do the same for AMD OpenCL/GL for use with Davinci Resolve.
Yes, RPMFusion repositories are used. Yes the 3rd party repository toggle is skipped. I plan to implement it in a different manner, as multiple repositories are being used in my build beyond what Fedora provides.
Showing off both EAC (EasyAntiCheat) working in the b4b beta + VAAPI(gpu) recording working on Ryzen 5700G in OBS in linux.
20:44 Cyberpunk 2077
22:06 Borderlands 3
23:10 Dark Souls 3
24:05 Days Gone
25:03 Dirt 5
25:57 Forza Horizon 4
26:44 Grand Theft Auto 5
27:24 Red Dead Redemption 2
27:54 Horizon Zero Dawn
28:31 Nier: Automata
29:05 Witcher 3
29:38 Warframe
30:11 Street Fighter 5
30:37 GUILTY GEAR STRIVE
31:27 Rocket League
32:07 Final Fantasy 14
32:34 Battlefield V
33:09 Doom Eternal
34:00 Path of Exile
Open Source code to various libraries in this video:
Proton:
github.com/ValveSoftware/Proton
My custom Proton fork:
github.com/gloriouseggroll/proton-ge-custom
Main components used in Proton mentioned:
github.com/HansKristian-Work/vkd3d-proton
github.com/doitsujin/dxvk
winehq.org
github.com/FNA-XNA/FAudio
SDL:
libsdl.org
Mesa:
mesa3d.org
Fedora Linux:
getfedora.org
Note: This video is aimed at displaying performance gains while retaining image quality, however it is a 4k capture downscaled by my capture card to 1080p video, so video compression/quality will not fully reflect how it looks in native 4k. If you would like to see image quality, here are some 4k screenshots from Witcher 3 which display FSR working to retain image quality while upscaling:
twitter.com/GloriousEggroll/status/1419528974565269509
About 2954 x 1662 game resolution and upscaling:
gpuopen.com/fidelityfx-superresolution/#quality
About Proton FSR patch:
wccftech.com/amd-fsr-can-be-applied-to-all-vulkan-games-via-protons-fshack
Spammy pop up issue has since been fixed in 6.14
Proton-6.14-GE-1
github.com/GloriousEggroll/proton-ge-custom/releases/tag/6.14-GE-1
How to install:
github.com/GloriousEggroll/proton-ge-custom#native
For reference, the 4k 60 ultra resizable bar video can be found here:
youtube.com/watch?v=xpu2b8nIxIY&lc
This time, we now -also- have an FSR patch set (AMD Fidelity Super Resolution) which works alongside proton's fullscreen hack.
Proton's fullscreeen hack is a modification to proton which allows displaying smaller or non-standard resolutions within your monitor's default resolution without changing it. Essentially it's capable of doing what FSR does -- scaling up smaller resolutions. However now that FSR has been released, that hack has been retro-fitted using FSR for it's upscaling backend. Meaning yes -- FSR can be used on almost any game running in proton. There are a few limitations, for example some games which already have FSR or other scaling implementation may not work.
So the way this works is -- the FSR resolutions are patched in alongside FSR for the upscaling backend. Since the fullscreen hack already attempts to upscale, all you have to do is set the game's resolution to a lower resolution, preferably one of the FSR resolutions:
FSR Preset Scale Factor 4K Input 1440p Input 1080p Input
Ultra Quality 1.3X 2954x1662 1970x1108 1477x831
Quality 1.5X 2560x1440 1706x960 1280x720
Balanced 1.7X 2259x1270 1506x847 1130x635
Performance 2.0X 1920x1080 1280x720 960x540
There is even an additional variable so that you can fine tune the sharpening used in the patch set. Anyway, so what I've done here is added the patches for both FSR with fullscreen hack and resizable bar, then set my resolution to 2954x1662 in game, since my monitor is running at 4k, that way the fullscreen hack utilizes FSR to upscale.
The rest of the in-game settings are all set to ultra, and the end result is another 25 fps boost on top of the 133 fps that resizable bar alone was giving us, totaling about 160 fps
FSR Patches for proton fullscreen hack (note: this does not include the FSR input resolutions, I had to patch them in separately):
github.com/ValveSoftware/wine/pull/116
Resizable bar patches:
github.com/HansKristian-Work/vkd3d-proton/pull/741
Game is running at 4k Ultra preset, 133 average FPS. Without resizable bar enabled it gets about 109fps average.
My previous uploaded benchmark only had 76 FPS:
youtube.com/watch?v=xSjDGYpHVgM
So we're talking a 30 FPS gain from Proton-GE 6.7 to Proton-GE-6.12, and another 20 FPS gain from resizable bar support. That's freaking huge.
Fedora 34 Linux
Radeon 6900 XT
Ryzen 5950X
64 GB DDR4 CL14
Proton-6.12-GE-2
vkd3d patched with resizable bar support
killwine.sh script:
kill -9 $(ps -ef | grep -E -i '(wine|processid|\.exe)' | awk '{print $2}')
killall -9 pressure-vessel-adverb
Ryzen 5950X
RX 6900 XT
64GB DDR4 3200
- DOOM Eternal running on Linux.
- Fedora 31 with kernel 5.6.18 patched with Valve's fsync patches
- fsync enabled in WINE
- Mesa-git with ACO enabled and DOOM patches for ACO
- Max/Ultra Nightmare graphic settings
- 1440p 144hz freesync enabled, not able to hit 144 but not bad either.
- Recorded at 30Mb bitrate using VAAPI GPU encoder in OBS
- x264 CPU encoding was -NOT- used. this was all done on the GPU.
R9 3950X + Vega VII
This is Guild Wars 2 running on an early build of D9VK in Fedora 30. Framerates still aren't the best but it's most definitely playable.
Also recorded on a Vega VII using VAAPI encoder
Software:
Fedora 30
Kernel 5.0.6
Mesa-git
LLVM 8
Hardware:
Radeon RX Vega VII
Threadripper 2920X
32GB DDR3 3200
Samsung 970 Pro NVME SSD
VAAPI = GPU video encoding.
That's right. My cpu did literally nothing but run the game in this video.
System:
Fedora 30 Linux
Mesa 19.1.0 git
LLVM 9.0.0 git
Radeon Vega VII
Threadripper 2920X
ASRock x399 Phantom Gaming 6 motherboard.
32 GB DDR4 3200 TridentZ
1Tb Samsung 970 Evo NVME SSD
My warframe proton build:
github.com/GloriousEggroll/proton-ge-custom/releases
fedora 30 copr for mesa-git+llvm-svn:
copr.fedorainfracloud.org/coprs/che/mesa
github.com/GloriousEggroll/proton-ge-custom/releases
Just to clarify, this build runs on low end systems as well. I have people in my discord running it on potatoes.
My system:
Fedora 30
Kernel 5.0.6
Mesa-Git
LLVM-8.0.0
Threadripper 2920x
Radeon Vega VII
32GB DDR4 3200
1TB Samsung 970 EVO SSD
A few people have been asking me what my uncapped framerate is. Most of the time I have VSync on because I don't like tearing. Decided to do a video with vsync off. This is after my state cache has been generated for most of the multiplayer maps, hence why it's much smoother than my previous video.
Settings as usual:
Wine-Staging 3.21
DXVK
Esync on
Threadripper 1950x
ASUS Strix Vega 64
Kernel 4.20-rc4
Mesa-git + LLVM-svn
Mesa-git+LLVM-svn
Kernel 4.20-rc4
Vega 64
Threadripper 1950x
Threadripper 1950x, Vega 64, Mesa-git + llvm-svn, 4.20-rc4 kernel
Maxed out in-game settings, 1080p 60fps
Note: Multiplayer doesn't connect sadly ;(
Arch Linux, 4.20-RC4 Kernel
AMD Threadripper 1950x oc'd @4ghz
ASUS Strix AMD Vega 64
Mesa-Git + LLVM-SVN as of 11/26/18
DXVK 0.93
Wine-Staging-3.20
I was also able to test+run the game on my travel rig on medium-high settings mixed with a 2400G + RX 570 4GB
Please note, the performance isn't the greatest in this game, and it's in ALPHA currently, so that's to be expected.
Hardware used:
CPU: Ryzen 2400G
GPU: Radeon RX 580.
RAM: 16GB Geil DDR4 3000
Motherboard: ASRock AB350 Gaming ITX/ac
SSD: WD Blue 256Gb NVMe
HDD: 1TB WD Blue 7200rpm HDD
Capture: Magewell USB Capture HDMI Plus
Drivers: llvm-svn + mesa-git
How:
All I did was installed Origin on Lutris, enable DXVK in the configure settings for it, run it, and then installed BF1. Easy.
Recorded with VAAPI plugin in obs-studio-git + usb capture device.
Settings are on ULTRA!!!
Any stutter is just from the shader cache filling. Once it's filled the game plays fine.
reddit.com/r/wine_gaming/comments/8bwg5v/dead_rising_4_winestaging_35_dxvk
This is NieR running in wine basically flawlessly. Sorry my bitrate was not set high for this video as I had it set for stream settings.
Use -gc 2 --softwareaudio launch options
In game disable antialiasing and multithreading
For wine, disable glsl
AMD users you will need to use this export:
MESA_GL_VERSION_OVERRIDE=4.0COMPAT
otherwise it will hard lock your system
System specs:
Ryzen 7 1700x
AMD RX Vega 64
16GB DDR4 3200
Mesa 18.0.0 rc4
Kernel 4.16 rc3
Tweaked a vaapi plugin patch by user w23 on the forums so that I can stream using amd vce via VAAPI on my linux machine.
This is useful for those on intel or amd gpus that support quicksync or VCE and want to use the gpu to render their stream.
You can also stream and record simultaneously using vaapi for both.
You will need mesa 17.3 rc5 or higher
Patch:
github.com/GloriousEggroll/arch-obs-studio-latest-ffmpeg-vaapi/blob/master/ffmpeg-vaapi.patch
OBS Fork:
github.com/GloriousEggroll/obs-studio
Credits to w23 on OBS forums for the original patch that got everything working. All I did was clean it up and add ffmpeg options.
Using mesa-git with amdgpu and RADV on a Vega 64, llvm 5 (llvm-svn caused lockups), wine-staging 2.20 with patches from:
bugs.winehq.org/show_bug.cgi?id=43935
Github Repo for installer:
github.com/GloriousEggroll/leagueoflegends-linux
Lutris installer:
lutris.net/games/league-of-legends
Patreon:
patreon.com/gloriouseggroll
NO MORE BLACK TEXTURES WOO!
The game finally runs as its intended, and as far as I can tell is fully playable now using DX11. Framerates are anywhere between 45-60 for me on MAX settings!!
Github Repo for installer:
github.com/GloriousEggroll/warframe-linux
Lutris installer:
lutris.net/games/warframe
Patreon:
patreon.com/gloriouseggroll
You'll also need a file manager:
sudo pacman -S dolphin dolphin-plugins
And if sound isnt working try pulseaudio:
sudo pacman -S pulseaudio
Full Guide:
http://gloriouseggroll.tv/?p=56
Wanna help me get an AMD GPU for testing?
http://www.patreon.com/gloriouseggroll
Twitter:
http://www.twitter.com/gloriouseggroll
(installation begins at 9:12)
I created a lutris installer for Warframe that should get it running super easily.
lutris.net/games/warframe
gloriouseggroll.tv/how-to-get-out-of-wine-dependency-hell
Lutris:
lutris.net/games/league-of-legends
look for WINE OpenGL version by GloriousEggroll and press install.
Installer notes:
1. Upgrade to the beta client when it asks
2. When it finishes, press launch (this is necessary to generate beta client files).
In the client, configure the following:
- Disable Login Animations: check
- Settings-General-Enable Low Spec Mode: check
- Settings-General-Close client during game: check
How to install wine and/or wine-staging with all dependencies:
youtube.com/watch?v=8ILaS7moQos&feature=youtu.be
If you have font problems:
-If you're using AMD, it's been reported that AMDGPUPRO drivers fix the issue, nvidia proprietary drivers work fine as well. If the problem persists:
right click on LoL in lutris-winetricks-select default prefix-Install windows DLL or component-directx9
then right click on LoL in lutris-brows files-Config-game.cfg and remove x3d_platform=1
WINEARCH=win32 WINEPREFIX=diablo3 winetricks vcrun2015 directx9 xact xinput
turn vsync and antialiasing off in game
if using lutris disable lutris runtime under system options
system specs:
i7 6700k
gtx 980 ti
16gb ddr4 3000
playing game on normal 7200rpm hard drive.
reddit.com/r/pathofexile/comments/64f1bz/guide_for_path_of_exile_in_linux_on_winestaging_24
gloriouseggroll.tv/ffxiv-arch-linux-wine-staging-2-4-works-beautifully
NOTES:
*please note the winetricks dependencies have changed, use the winetricks listed in the guide in addition to the ones in the video
*please note you do not need to run it in a virtual desktop as directed in the winecfg section of this video.


