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).
47 lines
1.3 KiB
TOML
47 lines
1.3 KiB
TOML
[package]
|
|
name = "uu-remote-linux"
|
|
version = "0.1.3"
|
|
edition = "2021"
|
|
authors = ["uu-remote-linux contributors"]
|
|
description = "Unofficial Linux host for NetEase UU Remote: control a Linux desktop from the official clients"
|
|
readme = "README.md"
|
|
license = "GPL-3.0-or-later"
|
|
repository = "https://github.com/VallierDev/uu-remote-linux"
|
|
|
|
# The executable keeps its established name (deploy scripts, systemd units, docs).
|
|
[[bin]]
|
|
name = "uuremote-server"
|
|
path = "src/main.rs"
|
|
|
|
[features]
|
|
default = []
|
|
wayland = []
|
|
portal = []
|
|
|
|
[dependencies]
|
|
tokio = { version = "1", features = ["full"] }
|
|
tokio-tungstenite = { version = "0.23", features = ["rustls-tls-webpki-roots"] }
|
|
futures-util = "0.3"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
|
|
hmac = "0.12"
|
|
sha2 = "0.10"
|
|
hex = "0.4"
|
|
base64 = "0.22"
|
|
flate2 = "1.0"
|
|
bytes = "1"
|
|
webrtc = "0.10"
|
|
libc = "0.2"
|
|
nix = { version = "0.29", features = ["term", "process", "fs", "ioctl", "signal"] }
|
|
log = "0.4"
|
|
qrcode = { version = "0.14", default-features = false }
|
|
env_logger = "0.11"
|
|
ffmpeg-next = { version = "6.1", default-features = false, features = ["codec", "format", "device", "software-scaling"] }
|
|
|
|
[build-dependencies]
|
|
cc = "1.0"
|
|
|
|
[patch.crates-io]
|
|
webrtc-dtls = { path = "vendor/webrtc-dtls" }
|