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).
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags: ['v*']
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
release:
|
|
# Built on 22.04 so the binary also runs on Ubuntu 22.04/24.04 and newer Debian (glibc >= 2.35).
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install build dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y build-essential pkg-config \
|
|
libx11-dev libxext-dev libxtst-dev libxfixes-dev libavcodec-dev libavformat-dev libavdevice-dev libswscale-dev libclang-dev libgtk-3-dev
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- run: cargo test --release --locked
|
|
- run: cargo build --release --locked
|
|
- name: Package
|
|
run: |
|
|
name=uu-remote-linux-${GITHUB_REF_NAME}-x86_64-linux
|
|
mkdir -p "$name"
|
|
cp target/release/uuremote-server LICENSE README.md README.en.md config.example.json "$name/"
|
|
tar czf "$name.tar.gz" "$name"
|
|
sha256sum "$name.tar.gz" > "$name.tar.gz.sha256"
|
|
- uses: softprops/action-gh-release@v2
|
|
with:
|
|
body_path: docs/release-notes/${{ github.ref_name }}.md
|
|
files: |
|
|
uu-remote-linux-*.tar.gz
|
|
uu-remote-linux-*.tar.gz.sha256
|