Rename the project to Voelin; packages hold only the app, tsgw is a Linux server package
The product is Voelin (app id io.github.faumaray.Voelin), everywhere: - crates tsc-* -> voelin-* (and voelin-fuzz), the desktop binary tsc-desktop -> voelin, the development CLI tsctl -> voelinctl; - the Android app: applicationId, Kotlin package io.github.faumaray.voelin, VoelinApp, libvoelin_android.so (JNI class names follow); - TSC_* environment variables -> VOELIN_*, Gradle properties tsc.* -> voelin.*, signing secrets VOELIN_SIGNING_*; - the data/config/cache/state folder tsc -> voelin, the keyring service, thread names, the dev compose project; - desktop file, metainfo, icon, Flatpak manifest, NSIS installer, docs. The gateway keeps its name: bin tsgw (crate voelin-gateway), TSGW_* env vars, the tsgw.v1+json protocol, the tsgw image. The window title and the About page show "Voelin <version>" from voelin_platform::APP_NAME. Packages (scripts/package.sh): the app only (voelin, voelin.exe, APKs, Flatpak). voelinctl is a development tool and in no package. tsgw is for servers and now its own Linux package, tsgw_<v>_amd64.deb and tsgw-<v>-linux-x86_64.tar.gz, with a sandboxed systemd unit (packaging/linux/tsgw.service; /etc/tsgw config, /var/lib/tsgw state) and dependencies of its own (no GUI libraries). docs/gateway-admin.md has an Install section. Fixes: - package-windows: makensis on Windows found no file through "D:/a/..." paths; pass Windows paths (cygpath -w). - StartupWMClass is the app id, which the app sets as its X11 WM_CLASS (it was the binary name, so desktops could not match the window). - Gradle wrapper download timeout 10 s -> 60 s (slow proxies). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
197 files changed
+1357
-1210
No files matched your search
+19
-19
@@ -1,8 +1,8 @@
|
||||
# Media: frames, codecs and capture (`tsc-media`)
|
||||
# Media: frames, codecs and capture (`voelin-media`)
|
||||
|
||||
`crates/tsc-media` turns screens and system audio into frames, encodes and
|
||||
`crates/voelin-media` turns screens and system audio into frames, encodes and
|
||||
decodes video, and converts pixels for rendering. It does no networking:
|
||||
`tsc-stream` carries the encoded frames (`Peer::write(MediaKind::Video,
|
||||
`voelin-stream` carries the encoded frames (`Peer::write(MediaKind::Video,
|
||||
MediaTime::new(frame.pts_90khz, Frequency::NINETY_KHZ), data)`), and received
|
||||
`MediaFrame`s go to `VideoDecoder::decode`.
|
||||
|
||||
@@ -27,7 +27,7 @@ MediaTime::new(frame.pts_90khz, Frequency::NINETY_KHZ), data)`), and received
|
||||
|
||||
```rust
|
||||
let codecs = Codecs::new().with_openh264(OpenH264::find_in(&data_dir)?); // H.264 optional
|
||||
let mut capture = tsc_media::capture::default_screen_capture()?;
|
||||
let mut capture = voelin_media::capture::default_screen_capture()?;
|
||||
let mut frames = capture.start(&SourceId::Monitor(0), &CaptureOptions::default()).await?;
|
||||
let codec = codecs.pick_encoder(&viewer_codecs).unwrap();
|
||||
let mut encoder = codecs.new_encoder(codec, EncoderConfig::default())?;
|
||||
@@ -38,12 +38,12 @@ while let Some(frame) = frames.recv().await {
|
||||
}
|
||||
```
|
||||
|
||||
## The pipeline in `tsc-core` (`media` module)
|
||||
## The pipeline in `voelin-core` (`media` module)
|
||||
|
||||
Feature `media` of tsc-core builds the module with whatever tsc-media backends
|
||||
Feature `media` of voelin-core builds the module with whatever voelin-media backends
|
||||
are enabled (on Android: MediaCodec and the app's capture source);
|
||||
`media-desktop` adds tsc-media's default backends (libvpx, OpenH264, X11,
|
||||
PipeWire). The desktop app and tsctl use `media-desktop`, the Android app
|
||||
`media-desktop` adds voelin-media's default backends (libvpx, OpenH264, X11,
|
||||
PipeWire). The desktop app and voelinctl use `media-desktop`, the Android app
|
||||
`media`. Codecs are always chosen through `Codecs`, so each build uses its own.
|
||||
|
||||
```
|
||||
@@ -72,7 +72,7 @@ viewer: Engine::subscribe_frames ─ VideoPipeline (thread) ─ VideoDecoder
|
||||
sequence header OBU).
|
||||
- `Viewer` feeds a `VideoPipeline` from the engine and sends
|
||||
`RequestStreamKeyframe`; `LocalPreview` runs capture → encoder → decoder
|
||||
without a server (the desktop app's `TSC_DEMO_STREAM`).
|
||||
without a server (the desktop app's `VOELIN_DEMO_STREAM`).
|
||||
- The audio of watched streams does not go through this module: the session
|
||||
hands the Opus frames to its audio thread, which plays them through the
|
||||
jitter buffer and mixer under a made-up client id, with its own volume.
|
||||
@@ -167,7 +167,7 @@ Notes:
|
||||
our memfd (`capture/x11/shm.rs`).
|
||||
- Portal: `start` needs a tokio runtime (zbus runs on it) and may show the
|
||||
desktop's picker. Choices persist with `PersistMode::ExplicitlyRevoked`: store
|
||||
`PortalCapture::restore_token()` (e.g. in `tsc-store` settings) and pass it to
|
||||
`PortalCapture::restore_token()` (e.g. in `voelin-store` settings) and pass it to
|
||||
`PortalCapture::with_restore_token` next time. The cursor is embedded when
|
||||
the portal supports it. Only shared-memory buffers (BGRx/BGRA/RGBx/RGBA) are
|
||||
negotiated; DMA-BUF import is a TODO. Without a session bus or portal,
|
||||
@@ -188,12 +188,12 @@ Linux (Debian/Ubuntu packages): `libvpx-dev` (feature `vpx`),
|
||||
PipeWire bindings run bindgen), `pkg-config`, and `libdav1d-dev` for
|
||||
`--features av1`. X11 capture is pure Rust (x11rb) and needs no packages.
|
||||
Tests of X11 capture need an X server: `xvfb`, run with `xvfb-run -a cargo
|
||||
test -p tsc-media` (skipped without `DISPLAY`).
|
||||
test -p voelin-media` (skipped without `DISPLAY`).
|
||||
|
||||
Windows: libvpx is not found through pkg-config there. Install it (e.g.
|
||||
`vcpkg install libvpx:x64-windows`) and set `VPX_LIB_DIR`, `VPX_INCLUDE_DIR`
|
||||
and `VPX_VERSION`, or build without the `vpx` feature. The Windows capture
|
||||
code is type-checked on Linux (`cargo clippy -p tsc-media --target
|
||||
code is type-checked on Linux (`cargo clippy -p voelin-media --target
|
||||
x86_64-pc-windows-gnu --no-default-features --features openh264`) but has not
|
||||
run on Windows yet.
|
||||
|
||||
@@ -218,7 +218,7 @@ run on Windows yet.
|
||||
|---|---|---|
|
||||
| Frame validation, YUV ↔ RGB (values, NV12, odd sizes, strides) | unit tests | tested |
|
||||
| VP8 / VP9 encode → decode (PSNR > 30 dB, rectangle colour, forced keyframes, bitrate change, resolution change) | unit tests, `tests/codec_roundtrip.rs` | tested |
|
||||
| H.264 with Cisco's 2.6.0 library (PSNR, Constrained High `profile_idc` 100, Baseline 66) | `tests/openh264.rs` with `TSC_OPENH264_LIB` | tested locally, skipped without the library |
|
||||
| H.264 with Cisco's 2.6.0 library (PSNR, Constrained High `profile_idc` 100, Baseline 66) | `tests/openh264.rs` with `VOELIN_OPENH264_LIB` | tested locally, skipped without the library |
|
||||
| OpenH264 download, SHA-256 check, reuse | `tests/openh264.rs -- --ignored` | tested locally (network) |
|
||||
| H.264 library missing / unknown file | unit + integration tests | tested |
|
||||
| AV1 decoder construction, garbage input | unit test (`--features av1`) | tested; no AV1 stream decoded (no encoder available) |
|
||||
@@ -227,12 +227,12 @@ run on Windows yet.
|
||||
| Portal capture, PipeWire video and audio streams | – | compiles only (no portal or PipeWire daemon here) |
|
||||
| Windows Graphics Capture, WASAPI | – | type-checked for `x86_64-pc-windows-gnu` only |
|
||||
| Hardware encoders | – | stubs |
|
||||
| Test pattern → VP8 → decoder, rectangle position and colour | `tsc-core` `media::tests::local_preview_decodes_the_pattern` | tested |
|
||||
| Test pattern → two engine stream tasks → str0m peers on loopback → decoder | `tsc-core` `stream::tests::test_pattern_through_stream_tasks` | tested |
|
||||
| Stream audio (RTP time → jitter buffer ids, volume, end) | `tsc-core` `audio::tests::stream_audio_with_volume`, stream task test | tested |
|
||||
| The same through the TeamSpeak 6 server | `tsc-core/tests/media_live.rs` (`TSC_LIVE=1`), `tsctl stream start --synthetic` / `watch --expect-frames` | tested against 6.0.0-beta13.1 |
|
||||
| X11 monitor capture → VP8 → server → decoder | `tsctl stream start --source x11` under Xvfb | tested manually (debug build: about 8 fps at 1400×900) |
|
||||
| Desktop app watching and sharing | Xvfb, `TSC_AUTOWATCH` / `TSC_AUTOSHARE` against tsctl, screenshots | tested manually |
|
||||
| Test pattern → VP8 → decoder, rectangle position and colour | `voelin-core` `media::tests::local_preview_decodes_the_pattern` | tested |
|
||||
| Test pattern → two engine stream tasks → str0m peers on loopback → decoder | `voelin-core` `stream::tests::test_pattern_through_stream_tasks` | tested |
|
||||
| Stream audio (RTP time → jitter buffer ids, volume, end) | `voelin-core` `audio::tests::stream_audio_with_volume`, stream task test | tested |
|
||||
| The same through the TeamSpeak 6 server | `voelin-core/tests/media_live.rs` (`VOELIN_LIVE=1`), `voelinctl stream start --synthetic` / `watch --expect-frames` | tested against 6.0.0-beta13.1 |
|
||||
| X11 monitor capture → VP8 → server → decoder | `voelinctl stream start --source x11` under Xvfb | tested manually (debug build: about 8 fps at 1400×900) |
|
||||
| Desktop app watching and sharing | Xvfb, `VOELIN_AUTOWATCH` / `VOELIN_AUTOSHARE` against voelinctl, screenshots | tested manually |
|
||||
| External capture providers (start, refusal, end of capture, default selection) | unit tests | tested |
|
||||
| MediaCodec buffer layouts (I420, NV12 with padding, `MediaImage2` NV21, crop) | unit tests (`codec::image_layout`) | tested |
|
||||
| MediaCodec encoders and decoders | – | compiles for `aarch64-linux-android` only (no device or emulator here) |
|
||||
Reference in new issue
Block a user