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.

Solution:Jump to 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.
...
8 Replies
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.
2. go into the sunshine config page and restart sunshine
thanks for the response. only one monitor plugged in via DP and the monitor is turned off
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
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?
fedora defaults (any ports above 1024 are open iirc)
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
The PC is on 5Ghz wifi and so is the device.
ideally you want the host on wired network
if both are on wifi you introduce extra latency