I've been messing around with getting moonlight-embedded running in a docker container on LibreELEC and thought I'd share the current state. This allows you to stream games from a PC to your HTPC device (Raspberry Pi 3B+ in my case) through the NVidia GeForce gamestream protocol. It currently supports only audio/video out and works pretty well at 1080p/60fps going from my gaming PC to my TV in another room over wifi. I have not tried to get controllers working as I just connect my controller to my PC via bluetooth.
Files/Readme:
Prerequisites
- Raspberry Pi device with LibreELEC installed, connected to local network via ethernet (preferred) or wifi
- Gaming PC with Steam and Nvidia GeForce Experience installed, connected to local network via ethernet (preferred) or wifi
- Basic familiarity with ssh and terminal for installation
Instructions:
1. Enable Nvidia Gamestream on your gaming PC: GeForce Experience/Settings/Shield/Gamestream (move slider to right)
2. Enable Avahi in LibreELEC: Kodi/Add-ons/LibreELEC Configuration/Services/Enable Avahi
3. Enable Docker in LibreELEC: Kodi/Add-ons/Install from repository/LibreELEC Add-ons/Services/Docker
4. SSH into your LibreELEC device, download/extract the latest release of this repository to your LibreELEC device and run install.sh
wget https://github.com/clarkemw/moonlight-embedded-launcher/archive/v0.4/moonlight-embedded-launcher-0.4.zip
unzip moonlight-embedded-launcher-0.4.zip
cd moonlight-embedded-launcher-0.4
bash ./install.sh
5. The installer script will guide you through the process. The only user interaction required is during the pairing process. The LibreELEC terminal will give you a 4 digit code, and you will see a pop-up on your gaming PC to enter the code.
Searching for server...
Connect to 192.168.0.101...
Generating certificate...done
Please enter the following PIN on the target PC: 4321
6. Install the launcher add-on from the script.moonlight-embedded-launcher.zip file: Kodi/Add-ons/Install from zip file/Select script.moonlight-embedded-launcher.zip
7. Launch moonlight-embedded from within Kodi and enjoy your game streaming experience: Kodi/Add-ons/Game add-ons/Moonlight Embedded Launcher
8. Exit Steam (power icon) to stop streaming/re-open Kodi
Current to-do list:
- Add/test controller support
- Automated installation process instead of install.sh
- General cleanup (this is my first ever docker image) and potentially build moonlight-embedded from source to reduce image size