veldenb / plugin.program.moonlight-qt

A launcher and updater for running Moonlight-qt on LibreELEC.
GNU General Public License v3.0
86 stars 11 forks source link

RPI4 OSMC HW acceleration #27

Closed kurac338 closed 1 year ago

kurac338 commented 1 year ago

Hardware decoders are not detected in moonlight-qt on RPi 4 (4 GB) running the latest OSMC Buster & Bullseye builds.

To reproduce setup your RPI client using the following guide.

In summary:

Notes:

These are screenshots from a Windows client, but I intend to run the exact same configuration on the RPi.

moon1 moon-2

Moonlight Logs:

Platform 'aarch64' running 'osmc' detected...
Running without window manager...
Detected resolution 3840,2160...
Using Qt scale factor 1.28...
Using ALSA for audio output...
Custom ALSA audio device: 'hdmi:CARD=vc4hdmi0,DEV=0'
Using Kodi hooks for osmc...
--- Starting Moonlight ---
error: XDG_RUNTIME_DIR not set in the environment.
00:00:00 - Qt Info: Unable to detect Wayland or X11, so EGLFS will be used by default. Set QT_QPA_PLATFORM to override this.
00:00:00 - Qt Info: Setting display mode by default. Set QT_QPA_EGLFS_ALWAYS_SET_MODE=0 to override this.
00:00:00 - Qt Warning: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
00:00:00 - SDL Info (0): Compiled with SDL 2.24.0
00:00:00 - SDL Info (0): Running with SDL 2.24.0
00:00:00 - Qt Info: No translation available for  "C"
00:00:00 - Qt Warning: qrc:/gui/main.qml:12:1: QML ApplicationWindow: ToolTip must be attached to an Item
00:00:00 - Qt Info: Found "gamecontrollerdb.txt" at "/home/osmc/.kodi/userdata/addon_data/plugin.program.moonlight-qt/moonlight-home/.cache/Moonlight Game Streaming Project/Moonlight/gamecontrollerdb.txt"
00:00:00 - SDL Info (0): Loaded 213 new gamepad mappings
00:00:01 - SDL Warn (0): Failed to create test window with platform flags: Can't load EGL/GL library on window creation.
00:00:01 - SDL Error (0): Failed to create window for hardware decode test: Can't load EGL/GL library on window creation.
00:00:01 - Qt Info: Found "gamecontrollerdb.txt" at "/home/osmc/.kodi/userdata/addon_data/plugin.program.moonlight-qt/moonlight-home/.cache/Moonlight Game Streaming Project/Moonlight/gamecontrollerdb.txt"
00:00:01 - SDL Info (0): Loaded 213 new gamepad mappings
ioctl (GFEATURE): Input/output error
00:00:01 - Qt Warning: mDNS is disabled by user preference
00:00:02 - SDL Info (0): Captured Qt EGLFS DRM master fd (legacy): 5
00:00:02 - Qt Debug: Current Moonlight version: "4.2.1"
00:00:02 - Qt Info: Downloaded updated gamepad mappings
00:00:02 - Qt Info: Latest supported GFE server: "99.99.99.99"
veldenb commented 1 year ago

Looks like libgl isn't installed by default on OSMC. Could you try this version and run update moonlight from the add-on settings? Clean install should also work.

plugin.program.moonlight-qt-main.zip

kurac338 commented 1 year ago

@veldenb Your Sir are a legend. The missing libgl1 package was the, the root cause. I can confirm that your addon/plugin and moonlight-qt work great now.

On a side note, I don't know if this is a known issue, but starting the addon is not possible from the Kodi's top level GUI menus (at least on OSMC). I need to do the following: Games -> Game addons -> Moonlight -> Moonlight before I can enter the QT GUI.

veldenb commented 1 year ago

On a side note, I don't know if this is a known issue, but starting the addon is not possible from the Kodi's top level GUI menus (at least on OSMC). I need to do the following: Games -> Game addons -> Moonlight -> Moonlight before I can enter the QT GUI.

That's how stuff works in Kodi. You can use Bookmarks to add Moonlight or a game to Bookmarks -> Moonlight/game