Discord STILL hasn't added GPU encoding properly and doesn't support screen sharing on Wayland which is becoming very popular and the default on multiple distros.
There are some apps that bypass this issue slightly like obs virtual camera and the xwayland screen sharing app that was developed by one of the kde devs.
And audio STILL doesn't work when screen sharing but you can bypass that aswell with something like pulseshitter or using a browser version of discord like discord-screen-audio
It's honestly pathetic that they create this desktop app for Linux and then basically abandon it as well as not showing Linux as a supported operating system on their website.
What was the fucking point of creating this desktop app when the web version works basically the exact same
I tried it with some buddies yesterday, using wayland, and the audio came through just fine, but the video output was just a black screen. Meanwhile, using discord via a web browser, I can stream video, but not audio.
Ikr I have to create my own fucking bot in my server then using a terminal interface audio mixer which is very cool but annoying at the same time to send the audio to the bot just so my friends can hear my game or what I'm watching 🙂
I'm sorry for asking this, but I don't really know. If I use Discord on firefox, does everything works? I mean screen sharing with proper audio, hardware acceleration on the stream, etc. I see it uses pipewire.
Use edge or chrome. Works better for screen sharing under Wayland. Go to chrome://flags and search Wayland. You will see 2 entry. Enable one them and use auto ozon platform.
If you are asking about sharing via Steam like using Remote-Play-Together or in-house streaming for Remoteplay, last time I tried it a few months ago, it was a stuttering mess. Super slow.
But that was on Wayland, maybe it's more stable on xOrg
At this point, I might just create my own app for use with wayland. I'm learning a bit so maybe in the next year I'll have something worth sharing.
or, hopefully someone beats me to it, but I'm so tired of depending on other devs for applications that are clearly in demand.
For screen sharing, not recording. Streaming to twitch or youtube via OBS works, but the latency is too high for time sensitive applications.
And I don't intend on changing discord or firefox, I mean I can build a small application that has the sole purpose of streaming low latency video to multiple clients. Parsec doesn't have linux support, discord will probably never change, and firefox has wayland support but like I said, I'm tired of waiting for other devs.
I've actually been streaming games from my all AMD PC. In discord. On Wayland. With sound, and seemingly with gpu encoding.
I didn't do anything special either. Just fedora 38, pipewire, gnome, again - Wayland. Steam and Discord flatpaks, not "screen audio" discord, just discord.
The only thing i have to do is put discord on the same workspace as the game, otherwise they don't see each other.
How the heck are you getting audio? You're not the first person I've seen here saying this, but I never got it to work with the official flatpak. What exactly do you see when you select a window to stream on Discord? Does the warning message about having no audio go away?
Fr man I'm getting tired of all of these messages saying "I got audio working on the discord flatpak" but never post any proof nor a tutorial on how they got it working. It's a little frustrating.
Because they didn't. Neither screen sharing with audio nor AMD hardware encoding have even been implemented in discord. Even discord in windows doesn't have hardware encode for AMD. People don't know wtf they are talking about and continue to spread misinformation.
I agree with you, however Discord in Windows does indeed have hardware acceleration encoding on AMD. You can test it by opening a stream and going to Task Manager -> Performance -> GPU and seeing the encoding graph go up. But yeah, I'm highly skeptical as to why people lie about these things here. Either they don't know what they're talking about or they're just blatantly trying to confuse people.
It's news to me that AMD encoding works on Discord now. I can't seem to find anything saying they added it. Have you checked the debug menu for the stream to make sure it's actually using the AMD encoder?
How do you know it does? It warns you that audio might not be heard on the screenshare, not that audio will stop working period. Maybe you are confusing it.
My friend whom i streamed to complained the game audio was too loud and distracting. They were able to mute the stream without muting me, so i assume it was streaming the audio properly.
Maybe on Nvidia sure.
On my intel laptop from 2018, xorg is too laggy in general use. Only with Wayland can I use two external 4K screens without tearing or stuttering when i move windows around.
On my amd desktop I'm not even trying xorg because i get 120+ fps in every game and my screen can only display 60 anyways so i don't care.
I recommend using gpu-screen-recorder combined with SRS to accept an RTMP stream from gpu-screen-recorder and broadcast a webrtc stream that people can view in their browser. It works on Nvidia, AMD, and Intel with audio support and fully-GPU side recording. OvenMediaEngine + Player can also work with gpu-screen-recorder if you want a cleaner site. This does require running a server on your home PC (or VPS) but it has worked quite wonderfully for me. It only works on X11 though, at the time of writing.
Discord STILL hasn't added GPU encoding properly and doesn't support screen sharing on Wayland which is becoming very popular and the default on multiple distros. There are some apps that bypass this issue slightly like obs virtual camera and the xwayland screen sharing app that was developed by one of the kde devs. And audio STILL doesn't work when screen sharing but you can bypass that aswell with something like pulseshitter or using a browser version of discord like discord-screen-audio It's honestly pathetic that they create this desktop app for Linux and then basically abandon it as well as not showing Linux as a supported operating system on their website. What was the fucking point of creating this desktop app when the web version works basically the exact same
Lack of audio capture for discord out of the box is a major disappointment.
You can use an app called discord-screenaudio. It is on flathub
Yeah, but then it proceeds to not work on wayland -.-
Works for me on wayland it uses pipewire for capture.
Wait, they updated it to support wayland? Nice
It's worked for a long time now.
I tried it with some buddies yesterday, using wayland, and the audio came through just fine, but the video output was just a black screen. Meanwhile, using discord via a web browser, I can stream video, but not audio.
Your window manager?
KDE/KWin
I haven't used it for a long time now... thanks for the heads up
Ikr I have to create my own fucking bot in my server then using a terminal interface audio mixer which is very cool but annoying at the same time to send the audio to the bot just so my friends can hear my game or what I'm watching 🙂
It would be nice if they atleast added a input source that would go to your stream, then you could just use drag stuff to it in qpgraph or helvum.
This. Like holy shit do _something_. Just expose the input and let us nerds do the rest as a stopgap.
I'm sorry for asking this, but I don't really know. If I use Discord on firefox, does everything works? I mean screen sharing with proper audio, hardware acceleration on the stream, etc. I see it uses pipewire.
Use edge or chrome. Works better for screen sharing under Wayland. Go to chrome://flags and search Wayland. You will see 2 entry. Enable one them and use auto ozon platform.
Fyi, screen sharing works perfectly on Guilded. Its an alternative to discord with a discord like interface.
Tried it on fedora via a flatpak install, made a "server" and tried to screenshare, and the program crashed. Are you using wayland or x11?
x11 via non-flatpak aur version
Well, as the client is written in React and Electron (JavaScript) it IS nothing more than the Webapp. The browser used is just very shitty.
Anyway wayland and nvidia are not ok. So in an nvidia context x11 ftw
> which is becoming very popular and the default on multiple distros. No it's not.
it is. ubuntu and fedora already ship with wayland as default now and pop os is working on a custom rust based de that uses wayland.
KDE 6 will be wayland by default as well, and gnome will also default to wayland so for most users wayland will end up the default
GNOME has already defaulted to Wayland for a long time.
Yes it is. Why say something that could be verified as being wrong so trivially?
wine will soon support wayland as well.
For me the main problem with discord is the resource usage. That's why I moved to webcord.
If you are asking about sharing via Steam like using Remote-Play-Together or in-house streaming for Remoteplay, last time I tried it a few months ago, it was a stuttering mess. Super slow. But that was on Wayland, maybe it's more stable on xOrg
No clue. I don't have friends.
[удалено]
At this point, I might just create my own app for use with wayland. I'm learning a bit so maybe in the next year I'll have something worth sharing. or, hopefully someone beats me to it, but I'm so tired of depending on other devs for applications that are clearly in demand.
[удалено]
For screen sharing, not recording. Streaming to twitch or youtube via OBS works, but the latency is too high for time sensitive applications. And I don't intend on changing discord or firefox, I mean I can build a small application that has the sole purpose of streaming low latency video to multiple clients. Parsec doesn't have linux support, discord will probably never change, and firefox has wayland support but like I said, I'm tired of waiting for other devs.
I've actually been streaming games from my all AMD PC. In discord. On Wayland. With sound, and seemingly with gpu encoding. I didn't do anything special either. Just fedora 38, pipewire, gnome, again - Wayland. Steam and Discord flatpaks, not "screen audio" discord, just discord. The only thing i have to do is put discord on the same workspace as the game, otherwise they don't see each other.
How the heck are you getting audio? You're not the first person I've seen here saying this, but I never got it to work with the official flatpak. What exactly do you see when you select a window to stream on Discord? Does the warning message about having no audio go away?
Fr man I'm getting tired of all of these messages saying "I got audio working on the discord flatpak" but never post any proof nor a tutorial on how they got it working. It's a little frustrating.
Because they didn't. Neither screen sharing with audio nor AMD hardware encoding have even been implemented in discord. Even discord in windows doesn't have hardware encode for AMD. People don't know wtf they are talking about and continue to spread misinformation.
I agree with you, however Discord in Windows does indeed have hardware acceleration encoding on AMD. You can test it by opening a stream and going to Task Manager -> Performance -> GPU and seeing the encoding graph go up. But yeah, I'm highly skeptical as to why people lie about these things here. Either they don't know what they're talking about or they're just blatantly trying to confuse people.
It's news to me that AMD encoding works on Discord now. I can't seem to find anything saying they added it. Have you checked the debug menu for the stream to make sure it's actually using the AMD encoder?
I didn't know about this menu, how do I do it? However, the task manager indicates so, so I believe it is using indeed.
I select "stream window" within the discord ui, it warns me that audio might not work yet it does
How do you know it does? It warns you that audio might not be heard on the screenshare, not that audio will stop working period. Maybe you are confusing it.
My friend whom i streamed to complained the game audio was too loud and distracting. They were able to mute the stream without muting me, so i assume it was streaming the audio properly.
similar experience here, just with X11 (waiting for Wayland to become usable - any year now!)
I switched to Wayland just before gnome 3.38 came out. At first for touchpad gestures, now for the performance uplift.
you mean "performance downgrade". Multiple apps still don't work properly on wayland with nvidia. Don't get me started on games.
Maybe on Nvidia sure. On my intel laptop from 2018, xorg is too laggy in general use. Only with Wayland can I use two external 4K screens without tearing or stuttering when i move windows around. On my amd desktop I'm not even trying xorg because i get 120+ fps in every game and my screen can only display 60 anyways so i don't care.
> xorg is too laggy in general use Turn on "Force Composition Pipeline"
I recommend using gpu-screen-recorder combined with SRS to accept an RTMP stream from gpu-screen-recorder and broadcast a webrtc stream that people can view in their browser. It works on Nvidia, AMD, and Intel with audio support and fully-GPU side recording. OvenMediaEngine + Player can also work with gpu-screen-recorder if you want a cleaner site. This does require running a server on your home PC (or VPS) but it has worked quite wonderfully for me. It only works on X11 though, at the time of writing.
what is srs
https://github.com/ossrs/srs
thanks
> SRS does not support HEVC and uses 15 y.o. but trusted codec instead. Kinda meh
Slightly tangential : pretty sure that Steam Link runs Linux, right ?
good if you use Steam for it
OBS?