Sunshine Failed to initialize video capture/encoding.

Recently moved to Bazzite from windows and trying to get sunshine and moonlight running but whenever I try and connect to sunshine on my Bazzite machine I get the following error. “Failed to initialize video capture/encoding. Is a display connected and turned on?” I have an RTX 3060 Have searched around online and in this channel but am a bit confused.
No description
Solution:
dont have an nvidia card but from my htpc with an intel card i had to do this 1. make sure if you have multiple monitors that sunshine is capturing the active monitor (relevant if you use gamemode which is limited to 1 monitor and a different monitor is the primary display in desktop mode) when in gamemode, all other displays get deactivated meaning sunshine cannot capture them. ...
Jump to solution
8 Replies
Solution
HikariKnight
HikariKnight4w ago
dont have an nvidia card but from my htpc with an intel card i had to do this 1. make sure if you have multiple monitors that sunshine is capturing the active monitor (relevant if you use gamemode which is limited to 1 monitor and a different monitor is the primary display in desktop mode) when in gamemode, all other displays get deactivated meaning sunshine cannot capture them. 2. go into the sunshine config page and restart sunshine
t00nj
t00njOP4w ago
thanks for the response. only one monitor plugged in via DP and the monitor is turned off
HikariKnight
HikariKnight4w ago
try turn the monitor on and restart sunshine might be one of those that dont give a signal to the gpu to activate unless it is on
t00nj
t00njOP4w ago
restarted sunshine a few times and was able to connect via moonlight but it's very jittery. Do you know if bazzite has the relevant ports open by default on LAN or is upnp sufficient?
HikariKnight
HikariKnight4w ago
fedora defaults (any ports above 1024 are open iirc)
mrvictorywin (Ping on reply)
The problem is not ports, if it was the connection would fail entirely Is your PC connected to wifi or ethernet? If it's on wifi, make sure you use 5 or 6 GHz, 2.4 is unusable Same for phone, must use 5 or 6 GHz
t00nj
t00njOP4w ago
The PC is on 5Ghz wifi and so is the device.
HikariKnight
HikariKnight4w ago
ideally you want the host on wired network if both are on wifi you introduce extra latency

Did you find this page helpful?