#Vencord Screensharing Linux

1 messages ยท Page 1 of 1 (latest)

hybrid plank
#

though this only seems to be an issue for me on my specific arch install on this laptop; my other arch hyprland laptop works perfectly fine with screensharing on equibop.

also i thought that screensharing doesnt work on the vanilla client if i recall correctly?

solar matrix
#

So have you actually tested if its using hardware encoding while it was working on arch hyorland?

#

Because screensharing itself works ok if you disabled hardware acceleration but the issue im trying to solve is why it doesnt work while using hardware video acceleration

hybrid plank
#

i know im probably asking circular questions, but this is a relatively new issue for both of us, yes?

solar matrix
#

I have had this issue since Ive been on linux now for about 2ish months I think but after searching for a couple weeks I decided to ask in the discord here

hybrid plank
#

hmmm

#

yeah this is a new issue for me

#

im just gonna try to downgrade my vencord or go to equibop and see if its fixed

solar matrix
#

Well what exactly are you trying to get working? Like I said if you just want screensharing to work you can disable video acceleration in the vesktop settings

#

but if you want hardware encoding during screenshare I dont think either of those will work but let me know if anything you do fixes it

#

Also you can kind of fix it for people by having the person viewing your stream to turn off hardware acceleration in their discord settings which will let them load your stream but that doesnt work for mobile viewers

hybrid plank
#

having other people change their settings to watch my screenshare isnt ideal ๐Ÿ˜‚ i guess ill just take the resources blow for now.

solar matrix
#

yea same for me but it was something to note while trying to fix the issue

#

so you did get hardware encoding to work under equibop using hyprland? Like you actualy verified that it was using hardware encoding?

#

Because what Ive noticed is that if screensharing does work on any other client with the video acceleration checked, it may be checked but if you look under amdgpu_top it wont actually be using hardware encoding

hybrid plank
#

video acceleration was disabled by default, but turning it on still works. i dont have a second account to check if it's 100% working for other people, but viewing the screenshare when im tabbed into discord and moving my mouse around shows for me.

#

we can briefly test in vc if you're open.

#

nevermind... i didn't restart.

solar matrix
#

No so you have to actually verify through amdgpu_top if youre actually using hardware acceleration for the screensharing

#

just becasue the option is ticked and the stream starts up doesnt mean its actually using your hardware to encode the stream

#

This program will show you what part of your system is being used for whatever program is running

#

This is what will show when youre using hardware acceleration to encode. On the right there is a VCN Verified section that shows what programs are using hardware encode/decode for any media on your system

#

Equibop right there is using encoding however when that is active, the person viewing your stream will have the infinite loading issue

halcyon dagger
#

Is there a way to force vaapi on discord canary? I tried gamescope vaapi experiment but it doesn't work. Maybe I need to set some flags? Currently I'm only using --ozone-platform=wayland

sick lichen
halcyon dagger
sick lichen
#

im trying vaapi workaround on chromium too because i just recognise my browser doesnt use vaapi too

UPDATE: my chromium video decode had works only with angle vulkan and bunch switches like VaapiIgnoreDriverChecks,VaapiVideoDecoder etc, but with opengl/gles doesnt idk why, probably forced to use angle gles 2.0. tested with any web video decode demo
time try same way with vesktop

sick lichen
#

idk prob i put some chromium settings and the video encoder works while screensharing with 1080p60f (or 720p30 idk i have nitro though)
using AMD Ryzen 5 PRO 2400GE with Vega 11 Graphics
mesa 25.2.5 (own build binaries from official git source)
Nobara Linux 42 (Fedora based 42) with stock kernel 6.17.3-201
(ignore the discrete GPU its passthrough to emulator use, not used by host and no any nvidia driver installed)

my app start options
--no-sandbox --use-angle=vulkan --enable-features=Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,UseMultiPlaneFormatForHardwareVideo,VaapiVideoEncoder --enable-blink-features=MiddleClickAutoscroll %U
also i had those build options for my own mesa binaries. i put it here prob someone need it
-Dgallium-drivers=radeonsi,llvmpipe,softpipe,zink -Dvulkan-drivers=amd -Dvideo-codecs=h264dec,h264enc,h265enc,h265dec,vc1dec -Dbuildtype=release -Dlibdir=lib64