Unsolved How to enable 1080p in Moonlight on RPi4
-
If spent the afternoon setting up Sunshine (Linux PC) and Moonlight (Recalbox 9.1 on RPi4), but can't get Moonlight to accept 1080p streams. My findings:
- Streaming from Sunshine to Moonlight on a MacBook works flawlessly in 1080p, both in h.264 and h.265, so I could confirm that the encoder is working as expected on the Sunshine side.
- I modified the
moonlight_*.conf
files located in/recalbox/share/system/configs/moonlight/
such that the video settings becomewidth=1920
,height=1080
,fps=60
, but it does not seems to have any effect. - I manually ran the command that is issued from EmulationStation when MoonLight is launched, but I added the
--resolution 1920x1080 --fps 60
switches. With these options, 1080p streaming works as expected. However, I have no idea how to permanently add these switches to the command (and I'd prefer adjusting the moonlight config files). - Is this a bug or am I doing something wrong?
Any help is appreciated.
-
I finally managed to figure it out. The reason why the above config files don't have any effect is simple, but not obvious: There are two variants of the Moonlight front-end:
moonlight-embedded
andmoonlight-qt
. The files in/recalbox/share/system/configs/moonlight
are formoonlight-embedded
, but Recalbox usesmoonlight-qt
on RPi4. Therefore, another config file is used which is located at:/recalbox/share/system/.config/Moonlight\ Game\ Streaming\ Project/Moonlight.conf
.It was not clear to me how to modify the config to switch to 1080p. The file is normally managed through the Qt front-end and not directly edited. So I installed
moonlight-qt
onto another Linux box, applied the settings through the UI and checked the config file. There required settings are part of the[General]
section:[General] width=1920 height=1080 fps=60
Porting the settings over to my RPi4 Recalbox finally made it stream my 1080p desktop in 1080p! Looks much better now!
-
This post is deleted! -