← All projects
Project record1 mention
Originally shared on Hacker News

Open-source cloud gaming service

This cloud gaming service (Stadia-like) runs games on Linux under Wayland (sway), captures frames via Pipewire as DMAbufs, encodes them on the GPU with ffmpeg's VA-API encoder, and streams the encoded packets to a web client over a WebRTC media stream. Client input is sent back over a WebRTC data channel and injected into Wayland. It is built entirely with open source, without ready-to-use solutions like Parsec/Moonlight/Sunshine, achieves zero perceivable latency over a local network, and is deployed via a NixOS-based AWS AMI with Terraform/OpenTofu. Planned improvements include resolution negotiation, language/keyboard layout and IME support, and sending the mouse cursor image from server to client.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Open-source cloud gaming service

    This cloud gaming service (Stadia-like) runs games on Linux under Wayland (sway), captures frames via Pipewire as DMAbufs, encodes them on the GPU with ffmpeg's VA-API encoder, and streams the encoded packets to a web client over a WebRTC media stream. Client input is sent back over a WebRTC data channel and injected into Wayland. It is built entirely with open source, without ready-to-use solutions like Parsec/Moonlight/Sunshine, achieves zero perceivable latency over a local network, and is deployed via a NixOS-based AWS AMI with Terraform/OpenTofu. Planned improvements include resolution negotiation, language/keyboard layout and IME support, and sending the mouse cursor image from server to client.

    Posted by @quyse · Original source ↗

    Source text · @quyse · · Source ↗

    I've been working on a cloud gaming service (like Stadia). Wanted to see how far I can get it done using open source, without ready-to-use solutions like Parsec/Moonlight/Sunshine.