127 Commits
Author SHA1 Message Date
ferstar 825961e1c2 Encode desktop audio in-process instead of an ffmpeg child
The Opus encoder for desktop sound now runs in this process: PulseAudio
or PipeWire-pulse monitor input, resampled to s16 stereo 48 kHz, grouped
into 20 ms libopus frames, and sent as raw Opus packets. The Ogg muxing
and OpusTags skipping from the child-process path are gone.

Probe on ros2go-gpu with a 440 Hz tone on auto_null (desktop-audio-probe,
8 s): 49.7 packets/s, 134 kbps (target 128 kbps), largest gap between
packets 22 ms. No ffmpeg child process is started while it runs.

Not covered: the full viewer session start has not been checked against a
live UU client.

Also enables ffmpeg-next's software-resampling feature.
2026-10-15 07:43:21 +08:00
ferstar bf0aa6879a Encode desktop video in-process instead of an ffmpeg child
Capture (x11grab) and H.264 encoding (h264_nvenc / libx264) now run in
this process through ffmpeg-next, with the same codec options as the old
ffmpeg CLI. Each encoder packet is one access unit, fed to the existing
DependencyGate. A PLI or FIR from the viewer forces the next frame to be
an IDR. Wayland and portal capture still use the child-process path.

Set UU_VIDEO_PIPELINE=process to fall back to the old ffmpeg child.
desktop-video-probe accepts UU_PROBE_FRAMES to lengthen the sample.

Measured with desktop-video-probe on ros2go-gpu (RTX 4090 D, Xvfb
1920x1080 @60fps, 600 frames, mostly static desktop). CPU is the sum of
the probe process and its children, sampled from /proc once per second.
Probe only: no WebRTC send, no audio.

  encoder     pipeline     CPU (%)    wall (s)   bitrate (kbps)
  nvenc       process      ~138       10.17      5356
  nvenc       in-process   ~43        10.34      5176
  libx264     process      ~135       10.09      5073
  libx264     in-process   ~72        10.08      4986

All four outputs decode without errors and start with an IDR.

Not covered: audio still runs its own ffmpeg child (src/audio.rs), PLI to
IDR has not been checked against a live viewer, and the CI jobs need the
libav*-dev and libclang-dev packages (added to ci.yml, release.yml,
AGENTS.md and the READMEs).
2026-10-15 07:43:21 +08:00
BLACKIELF 078ca026a5 Fix encoder task ordering during desktop settings changes 2026-10-15 06:56:38 +08:00
VallierDevandClaude Opus 5.5 25d8d0c915 Release v0.1.3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
v0.1.3
2026-10-15 02:46:11 +08:00
VallierDevandClaude Opus 5.5 1a3348dfe9 Portal: keep the first valid frame on a fresh session (#2); CI builds wayland,portal
A new portal session started with was_locked=true, so the first unlocked
capture reset the cached frame. A static desktop delivers no new PipeWire
frame, so the viewer stayed black until something redrew. Only an observed
lock (or a closed stream) now discards the cached frame; an unknown lock
state shows a blank frame without clearing it.

CI now also builds and tests --features wayland,portal on ubuntu-24.04.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-15 02:45:47 +08:00
VallierDevandClaude Opus 5.5 bff7ad320e Release v0.1.2
GNOME fractional-scale pointer fix and portal clipboard recovery from the
VM workstream; known issues documented in the release notes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
v0.1.2
2026-10-15 02:13:27 +08:00
VallierDev 17978500e4 Add timed VM-only idle inhibition for active long-connection acceptance 2026-10-15 02:10:59 +08:00
VallierDev cc2df0fbd2 Count test-window key events without recording key values for active endurance 2026-10-15 02:10:59 +08:00
VallierDev 2ab33b88f0 Log only room-token remaining lifetime to diagnose cloud release timing 2026-10-15 02:10:59 +08:00
VallierDev 4e4062a4df Compare fixed clipboard markers in native UTF-8 and UTF-16 representations 2026-10-15 02:10:59 +08:00
VallierDev 73cc0a8cdd Audit receiver sequence progress and relay selection across the full endurance interval 2026-10-15 02:10:59 +08:00
VallierDev 6957d63671 Add native Mac marker-only clipboard acceptance fixture 2026-10-15 02:10:59 +08:00
VallierDev 66c8bb3249 Preserve granted clipboard capability across locked-session handshake and test closed state 2026-10-15 02:10:59 +08:00
VallierDev a18a69c19e Wait for GNOME portal recovery before deciding clipboard availability 2026-10-15 02:10:59 +08:00
VallierDev 050b8710a8 Fix GNOME fractional-scale absolute pointer coordinates and add precise GTK target probe 2026-10-15 02:10:59 +08:00
VallierDev 06946568b7 Record test-window pointer position to diagnose official coordinate mapping 2026-10-15 02:10:59 +08:00
VallierDev 4c2cd143f4 Use a denied GTK gesture to audit targets with supported introspection 2026-10-15 02:10:59 +08:00
VallierDev 2a295638d0 Observe GTK button targets without participating in gesture recognition 2026-10-15 02:10:59 +08:00
VallierDev 7e334bfe69 Separate portal input audit budgets and count native GTK button delivery 2026-10-15 02:10:59 +08:00
VallierDevandClaude Opus 5.5 ef697de387 Add bug report issue template with a diagnostics command
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-15 01:17:49 +08:00
VallierDevandClaude Opus 5.5 f3614f243a Release v0.1.1
Version 0.1.1 with release notes; the start-up log reports the package
version instead of a hard-coded v1.0.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
v0.1.1
2026-10-15 00:01:37 +08:00
VallierDevandClaude Opus 5.5 0543f14f0e Add AGENTS.md for AI coding agents and link it from the READMEs
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 23:59:04 +08:00
VallierDevandClaude Opus 5.5 c99a587afc Reject unknown arguments instead of starting a second host
Any unrecognized first argument fell through to the server start-up, so a
mistyped or missing subcommand launched a second full host next to the
running service. Print usage and exit 2; help/-h/--help print usage.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 23:59:04 +08:00
VallierDevandClaude Opus 5.5 d93e42340d Add CI and tag-triggered release workflows, v0.1.0 notes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
v0.1.0
2026-10-14 23:53:16 +08:00
VallierDev f6882d333d Add bounded portal input outcome and failure diagnostics 2026-10-14 23:53:16 +08:00
VallierDevandClaude Opus 5.5 49e95bee40 Prepare v0.1.0: GPL-3.0 license, version, Wayland marked experimental
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 23:53:16 +08:00
VallierDevandClaude Opus 5.5 502635b156 Initial import of uu-remote-linux
Unofficial Linux host for NetEase UU Remote: X11 (production-tested on
GNOME/Ubuntu 24.04), experimental Wayland (Hyprland) and portal
(GNOME/KDE) backends; video, input, clipboard, file transfer, terminal,
sound, quality/fps/resolution settings, lock/unlock and system actions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 23:53:16 +08:00