Moonlight-Amiga 0.4: H.265 PC streaming on PiStorm32

On this page

On December 3, 2026, Moonlight-Amiga 0.4 beta landed on Aminet and GitHub under the GNU GPL v3 license. Compatible with Sunshine, it lets an AmigaOS 3.x machine stream a remote PC desktop and games at low latency. Directed and tested by Anubis with code written by Claude, the client targets a specific hybrid hardware setup: an Amiga fitted with a PiStorm32, a Raspberry Pi 4 or Compute Module 4, and Emu68 1.1 beta.

The headline engineering addition in 0.4 is full hardware H.265 (HEVC) decoding through rpivid.codec from emu68-driver-stack, sitting alongside the existing VideoCore H.264 path. Rather than pushing decoded frames through the emulated 68k CPU, the client decodes directly into Picasso96 VRAM and separates video, audio, input and UI behind a shared .mlplug plugin contract.

What is new in 0.4: hardware H.265, opt-in logs and calmer alerts

Building on the initial 0.3.38 release from November 29, 2026, Moonlight-Amiga 0.4 enables real HEVC negotiation. Under the default video.codec=auto setting, the client selects H.265 whenever rpivid.codec is installed and the Sunshine host offers HEVC at the requested resolution, falling back silently to H.264 otherwise. Setting video.codec=h264 forces H.264, while video.codec=h265 requests HEVC and displays a notice on the console, log and video overlay if it has to fall back to H.264. Users upgrading from 0.3.38 who already have rpivid.codec and an HEVC-capable Sunshine server will switch to H.265 automatically unless they set video.codec=h264.

Several practical refinements accompany the codec upgrade:

  • Active codec telemetry: the on-screen statistics overlay (Ctrl+Alt+Shift+S) and the end-of-session summary now report whether H.264 or H.265 is active.
  • Logging disabled by default: MLStream.log is no longer written unless enabled via misc.log, which accepts off, events (events and errors) or all (adding a per-second status line).
  • Non-intrusive windowed warnings: poor-connection alerts in Workbench window mode now draw only the red indicator line over the video, matching fullscreen behavior and avoiding MUI/ReAction pop-ups that stole window focus.
  • Updated dependency scan and locales: “Find dependencies…” now checks for optional rpivid.codec in the video group, and localization catalogs expand to 306 strings across Spanish, English, German, French and Italian.

Zero-copy video path and PiStorm32 memory layout

The architecture documentation in the source archive explains why decoding and display live inside the same videocodec.mlplug module. The protocol core (built on moonlight-common-c, ENet and nanors) hands Annex-B video packets straight to videocodec.library (0.5 or newer), which routes them to videocore.codec + vchiq.device for H.264 or rpivid.codec for H.265. Decoded frames land directly in Picasso96 video memory, and the plugin flips pages with ScrollVPort across a screen four frame-heights tall, holding the hidden slice for one refresh cycle before releasing it.

That zero-copy pipeline requires two explicit lines in the Raspberry Pi’s config.txt:

  • dtoverlay=videocore,mem=64 to allocate 64 MB of Picasso96 VRAM, required for triple-buffered 1080p at 32-bit color;
  • dtoverlay=cma,size=16 to reserve 16 MB of contiguous memory for the hardware decoder.

To keep latency down, the video plugin displays the newest frame, drops late arrivals and returns MLERR_NEEDKEYFRAME to request a fresh keyframe after packet loss. Windowed mode (videocodecwin.mlplug) remains available on Workbench, though at 1080p it can introduce tearing and higher CPU load compared to fullscreen.

Nine .mlplug modules, audio paths and controller support

All subsystems live in PROGDIR:Plugins/ as standard Amiga shared libraries built from a single skeleton (plugcore.c). Plugins avoid asynchronous callbacks: they wake the main task with Signal() and let the client poll events safely. The plugin API stays at 0.31, though updating to the 0.4 plugins is required for H.265.

  • Interface and automation: mui.mlplug (MUI 3.8) and reaction.mlplug (AmigaOS 3.2 ReAction) render preferences dynamically from the client’s descriptor tables, paired with an ARexx port and cover art via Guigfx.mcc and png.datatype.
  • Opus audio: opusfile.library 1.0 decodes containerless Opus packets into 48 kHz 16-bit PCM in native Amiga byte order. ahi.mlplug forwards PCM directly to AHI (HDMI via videocore.audio, sound cards or Paula), whereas paula.mlplug uses audio.device cleanly without banging registers, downsampling to 8-bit or dual-channel 14-bit output.
  • Input and gamepads: intuition.mlplug captures mouse and positional keyboard input using PC key symbols; gip.mlplug implements the Xbox One GIP protocol over the Neptune USB stack (tested by the author with Xbox One controller model 1537, Neptune 6.3 and rumble); lowlevel.mlplug targets classic Amiga ports but remains untested.
  • Networking and pairing: requires a bsdsocket.library TCP/IP stack (tested with Roadshow and Miami), AmiSSL v6 (6.1) for TLS certificates and Sunshine PIN pairing (https://PC-IP:47990), and open firewall ports (TCP 47984, 47989, 47990, 48010; UDP 47998, 47999, 48000; plus UDP 5353 for mDNS discovery).

Aminet package verification and testing scope

Before publishing this article, we downloaded and inspected both official Aminet 0.4 archives on our host: comm/net/Moonlight-Amiga.lha (recorded SHA-256 1109140a2355005d987c39c3bb08d6b710548cd6f6022f1eab04685d9119b707) and comm/net/Moonlight-Amiga-src.lha (recorded SHA-256 c28304cff0bfad89d478a0a277e8b2b7b97541f9f8b5865b12ce43e64d7c777e). Running lha t verified archive integrity on both packages, and binary inspection confirmed $VER: Moonlight 0.4 (03.12.2026) in the main executable as well as matching 0.4 (03.12.2026) version strings across all nine .mlplug plugins.

We did not run a live streaming session on physical Amiga 1200 + PiStorm32 hardware; runtime observations and perceived latency parity between H.264 and H.265 are attributed to Anubis’s documented tests on an A1200 with PiStorm32, CM4, Emu68 1.1 beta and Sunshine 7.1.431 over Ethernet and Wi-Fi. Three practical reminders from the guide matter on real hardware: keep Plugins/ right next to the Moonlight binary, remove the client from Sunshine’s web UI to unpair, and never attach client.key when sharing MLStream.log or MLPlug.log diagnostics.

AUTHOR

IT specialist, developer and systems engineer with a long history across code, Linux servers, retrocomputers and e-learning platforms. On AndroidLab he brings a technical, pragmatic eye: less brochure smoke, more attention to infrastructure, usability, privacy, updates and the real consequences of manufacturers' choices.

Leave a Comment