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.
“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
dont have an nvidia card but from my htpc with an intel card i had to do this
- 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.
- go into the sunshine config page and restart sunshine