feat: Remote Play host: PipeWire capture, hardware encoding, touch and game audio (#1139)

* feat: run SteamOS PipeWire and WirePlumber for gamescope screen capture

* feat: hardware Remote Play encoding through MediaCodec behind Steam's V4L2 stage

* feat: deliver Remote Play touches to gamescope as touches

* feat: route game audio through PulseAudio while a Remote Play client is connected

* fix: keep the Remote Play marker when a forked child closes the encoder

* fix: allow standalone preload tests without V4L2 encoder hook
This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-10-21 17:57:24 +00:00
1 parent 4992cf76dd
commit fba6a5d0f2
22 files changed
+1629 -3

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
# assemble.sh <extracted packages root> <out.tzst>
# Packs the video side of SteamOS's PipeWire and WirePlumber: no audio plugins, no JACK.
set -euo pipefail
src=$1
out=$2
work=$(mktemp -d)
trap 'rm -rf "$work"' EXIT
b=$work/bundle
mkdir -p "$b/bin" "$b/lib/pipewire-0.3" "$b/lib/spa-0.2" "$b/lib/wireplumber-0.5" "$b/share/licenses"
for tool in pipewire wireplumber wpctl; do cp "$src/usr/bin/$tool" "$b/bin/$tool"; done
for library in libpipewire-0.3.so.0 libwireplumber-0.5.so.0; do cp -L "$src/usr/lib/$library" "$b/lib/$library"; done
for module in "$src"/usr/lib/pipewire-0.3/libpipewire-module-*.so; do
case ${module##*/} in *jack*) continue ;; esac
cp "$module" "$b/lib/pipewire-0.3/"
done
cp "$src/usr/lib/spa-0.2/libspa.so" "$b/lib/spa-0.2/"
for plugin in support control videoconvert v4l2; do cp -R "$src/usr/lib/spa-0.2/$plugin" "$b/lib/spa-0.2/$plugin"; done
cp "$src"/usr/lib/wireplumber-0.5/*.so "$b/lib/wireplumber-0.5/"
mkdir -p "$b/share/pipewire"
cp "$src/usr/share/pipewire/pipewire.conf" "$src/usr/share/pipewire/client.conf" "$b/share/pipewire/"
cp -R "$src/usr/share/wireplumber" "$b/share/wireplumber"
for package in pipewire libpipewire wireplumber libwireplumber; do
cp -R "$src/usr/share/licenses/$package" "$b/share/licenses/$package"
done
mkdir -p "$(dirname "$out")"
(cd "$b" && find . -type f | LC_ALL=C sort | tar -cf - -T -) | zstd -19 -q -f -o "$out"
+4
View File
@@ -0,0 +1,4 @@
55c9705ff5721f10ca18c42bd15c14b0af88cb5352f5400fda04c944a8b224f1 https://holo-packages.steamos.cloud/archlinux-deckard-hotfixes/release/0.4.x/libpipewire-1%3A1.6.8-1.2-aarch64.pkg.tar.zst
8ea2d900326eaafdd2bbbfa47fa04f5d7515dbdcd9ede04213ba149f44f41da0 https://holo-packages.steamos.cloud/archlinux-deckard-hotfixes/release/0.4.x/pipewire-1%3A1.6.8-1.2-aarch64.pkg.tar.zst
900a4c59f87806d85abe200bb014d755f73a16b2ba4fea63d6f32ff64fcf5e34 https://holo-packages.steamos.cloud/archlinux-deckard-hotfixes/release/0.4.x/libwireplumber-0.5.14-1.3-aarch64.pkg.tar.zst
bf56f040cf09832e0a8135b56b0f6d2b9b29e2bddbd35be73d0bebe603eacafb https://holo-packages.steamos.cloud/archlinux-deckard-hotfixes/release/0.4.x/wireplumber-0.5.14-1.3-aarch64.pkg.tar.zst