mirror of
https://github.com/VallierDev/uu-remote-linux.git
synced 2026-11-16 16:50:41 +01:00
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).