From 2e2581fed5385d1019e2f05964eedc84a2c0c8a2 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 4 May 2020 19:03:16 -0700 Subject: [PATCH] Updated Fixing Hardware Decoding Problems (markdown) --- Fixing-Hardware-Decoding-Problems.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Fixing-Hardware-Decoding-Problems.md b/Fixing-Hardware-Decoding-Problems.md index 11777a0..0481a95 100644 --- a/Fixing-Hardware-Decoding-Problems.md +++ b/Fixing-Hardware-Decoding-Problems.md @@ -23,4 +23,15 @@ Moonlight uses VAAPI, VDPAU, and NVDEC for hardware acceleration on Linux. One o * If you are running Wayland on GNOME, you may need to launch Moonlight with the `-platform wayland` option to ensure hardware acceleration works. * If you installed Moonlight via Flatpak, you would run `flatpak run com.moonlight_stream.Moonlight -platform wayland` * The Snap package of Moonlight does not currently support hardware acceleration on Wayland. - * Decoding performance under Wayland may not be as good as X11, so try X11 if you experience performance issues. \ No newline at end of file + * Decoding performance under Wayland may not be as good as X11, so try X11 if you experience performance issues. + +# Raspberry Pi +Moonlight uses the Raspberry Pi's H.264 hardware decoder using the MMAL decoder library. MMAL requires enough GPU memory to be allocated to store video frames. + +If the H.264 decoder fails to initialize, this usually means that the amount of reserved GPU memory is insufficient. + +To increase the reserved GPU memory, run the following commands: +``` +echo "gpu_mem=128" | sudo tee -a /boot/config.txt +sudo reboot +``` \ No newline at end of file