54 Commits
Author SHA1 Message Date
Claude ac187fe39e packages: every codec backend, and the libraries the app needs
voelin-media builds dav1d (AV1 decoding) by default, like every other
codec backend: Linux images already had libdav1d-dev; Windows CI takes it
from vcpkg next to libvpx and the MinGW image builds it static (dav1d
1.5.4, pinned commit; checked to cross-compile).

Windows packages ship FFmpeg's LGPL DLLs (BtbN's 8.1 shared build,
checked against the release's checksums by scripts/fetch-ffmpeg-windows.sh)
next to voelin.exe, where the app looks first, with their license and a
note on the build and its source; the installer installs and removes them.

The Linux .tar.gz carries libvpx and libdav1d in lib/ (RUNPATH
$ORIGIN/../lib, set with patchelf), whose sonames differ between
distributions, and bin/voelin-install-deps, which installs FFmpeg, VA-API
drivers, PipeWire, the desktop portal and a keyring with apt, dnf, pacman
or zypper. The .deb recommends those packages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
2026-10-04 22:12:17 +00:00
selikhovandClaude Opus 5.5 08c50a3d52 docs: 60 Mbit/s, 8K and 320 fps, measured
What capped a Voelin stream and what does now; what the GPU's encoders
reach on their own (AV1 61-63 fps at 8K, 233 at 4K; HEVC 51-52 and 193;
H.264 at most 4096 wide, 194 at 4K); the streamer before and after
(8K30 from memory on 1.45 cores instead of 3.47, 8K60 from video memory at
60 fps on 0.01, 4K120 H.264 at 120 instead of 84, 4K240 AV1 at 232
instead of 107); end to end through the TeamSpeak 6 dev server (4K60 AV1
at 60 Mbit/s decoded at 60 fps, 1440p240 AV1 and 1080p240 H.264 arriving
at their full 60 Mbit/s, 8K30 limited by the viewer's decoding at about
20 fps); why a 60 Mbit/s 4K60 stream arrives as 40-46 (the encoders' CBR
filler and padding, which str0m drops); and the viewer's RGBA cost per
picture, which is not the limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 10:46:29 +03:00
selikhovandClaude Opus 5.5 500d41e5d2 Streams: offer the H.264 level the encoder makes, at most 5.2
The app's streams always offered H.264 at level 3.1: its peer
configuration is made before a share starts, and only voelinctl set the
real level. A 4K or high-frame-rate stream then declared far less in its
offer than in its SPS, which a viewer that sizes its decoder from the
offer may refuse.

Each layer's encoder now tells its sink what it makes
(`MediaSink::layer_format`: size, frame rate, bitrate, whether the
bitrate is automatic), when the sink is attached (from the size captured
so far, so a viewer that joins before the first frame is encoded is
covered), with the layer's first frame and on every change. The engine's
stream task offers new viewers the level of the largest layer (its
bitrate at `max_bitrate` if that is higher) in both profiles, and puts an
automatic bitrate into the layer as before; this one hook replaces
`auto_bitrate`.

Offering 6.0 broke the stream: str0m 0.23 knows no H.264 level above 5.2,
nor does libwebrtc (`H264Level` on its main branch), and a
`profile-level-id` they cannot parse matches nothing, so a viewer answered
without video (`m=video 0`). The offer is now capped at 5.2
(`h264::MAX_OFFER_LEVEL`); a stream that needs 6.x (4K above 60 fps, 8K)
is offered as 5.2 and keeps its real level in the SPS.

Tests: through two stream tasks, an encoder's 3840x2160@60 reaches the
next offer as 640c34 and 42e034 (and without the update it stays 3.1);
the largest layer counts, at its max bitrate; an automatic bitrate still
moves the layer once, not per frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 09:28:05 +03:00
selikhovandClaude Opus 5.5 df4f534022 Streamer: convert pictures in memory on the GPU too, for VA-API encoders
Measured at 7680x4320@60 with av1_vaapi at 60 Mbit/s, the CPU path made
27 fps: the pyramid converted each frame to I420 on every core (4.6 ms),
then the encoder thread interleaved it to NV12 and uploaded it into a
VA-API surface on one thread (`encode_with`), 20 ms of its 36.7 ms per
frame, so 81 frames in 5 s were dropped. 3840x2160@120 with h264_vaapi
made 84 fps the same way.

While every encoder takes GPU frames, a picture in memory (shared memory
from the portal, X11, wlroots, the studio's composite, the test pattern)
now takes the GPU path the DMA-BUFs take: `GpuConverter::convert_memory`
copies it as it is (BGRx or RGBx) into a VA-API surface of its own and
converts and scales that for every layer. That copy is all the CPU does:
5.7 ms of the 11.9 a 7680x4320 frame takes (the rest is the GPU's upload
and conversion), one thread, because eight copying threads saved 2 ms for
four times the CPU. Not waiting for the GPU was tried and was slower
(36 fps at 8K60 against 42: the encoder then waited instead).

The test pattern drew a 7680x4320 frame on one thread (230 MB of copies),
which alone kept the bench under 40 fps; it now draws in bands on four
threads, which the memory bandwidth limits anyway.

Tests: a BGRx and an RGBx picture through the GPU match the CPU's
conversion (40.4 dB at full size, 48.7 at half), and a streamer on the
test pattern in memory with two `h264_vaapi` layers sends every frame
through the GPU and decodes in the right colours (a red-blue swap fails
it). The bench's GPU count now covers both kinds of frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 09:13:32 +03:00
selikhov 92344651ca Merge branch 'claude/gifted-lovelace-1crlx2' into worktree-agent-a5ecbed1e5dd55ddc
# Conflicts:
#	tools/voelinctl/src/stream.rs
2026-10-04 04:48:34 +03:00
selikhovandClaude Opus 5.5 a6e163e9aa Bench the GPU path from buffers in video memory, as a compositor's are
The test pattern's DMA-BUFs came from /dev/udmabuf: ordinary memory,
which the GPU reads over the bus. Measured on the Radeon RX 7900 GRE
(`gpu_conversion_cost`, new, ignored): converting a 3840x2160 RGB buffer
to NV12 took 9.7 ms from such a buffer against 0.16 ms from one in video
memory in the driver's tiled layout, and 4.0 against 0.09 ms at 1080p;
the import itself costs 0.01-0.02 ms either way. So the bench showed the
GPU path at 4K240 stuck at 70 fps waiting for the bus, which no real
capture does. udmabuf also refuses buffers over 64 MiB, so 7680x4320
(132 MiB) could not be benched on the GPU path at all.

`SyntheticScreen::with_video_memory` (`StreamerConfig::
synthetic_video_memory`, `voelinctl stream bench --vram`) draws eight
frames of the pattern in advance into VA-API surfaces of the driver's
layout, exported as DMA-BUFs and handed over in turn, as a compositor
hands over the screen; a sink that declines them gets memory frames as
before. The exported surface was a test helper and is now crate code
(`ffmpeg::Exported`). With it, from a dev build: 4K240 AV1 at 60 Mbit/s
236.8 fps with 0.31 ms on the GPU per frame and 0.03 cores; 8K60 60.0 fps,
1.01 ms, 0.01 cores, the encoder's 16.5 ms per frame the limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 04:18:53 +03:00
selikhov a2333c8223 Merge branch 'claude/gifted-lovelace-1crlx2' into worktree-agent-a5ecbed1e5dd55ddc 2026-10-04 03:58:05 +03:00
selikhovandClaude Opus 5.5 12e62522ce voelin-media: HEVC and AV1 levels and tiers that count the frame rate
VA-API's HEVC and AV1 encoders guessed their level themselves: FFmpeg's
AV1 guess reads the frame rate from `AVCodecContext.framerate`, which has
no AVOption and so was never set, and its HEVC guess ignores the rate. A
4K240 stream declared a level for 4K60, which a decoder that sizes itself
from the level may refuse.

The encoder now sets the level and tier from the stream's size, frame
rate and bitrate (H.265 Table A.8, AV1 A.3): the lowest level whose Main
tier holds the bitrate, else the lowest whose High tier does, else no
limits (HEVC 8.5, AV1 level 31) as FFmpeg does. 4K60 at 60 Mbit/s is 5.2
Main, 4K240 and 8K60 6.1. Only for VA-API, whose options take
`general_level_idc` and `seq_level_idx`; other wrappers count levels
differently. The rate-control buffer is clamped to what its int holds, so
a typed bitrate above 1 Gbit/s no longer fails the open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:57:53 +03:00
selikhovandClaude Opus 5.5 475122c2a6 Capture: ask the compositor for the stream's frame rate, up to its own
The ScreenCast portal was offered a frame rate range up to the stream's
cap but no `maxFramerate`, so the compositor's own maximum (its screen's
refresh rate) applied whatever the cap was: a 30 fps stream of a 144 Hz
screen got 144 frames a second, of which the sink dropped most. It is now
offered `maxFramerate` up to the cap, preferably the cap: PipeWire keeps
the consumer's default where the producer's range allows it, so the
compositor sends at the lower of the cap and what it can, up to 320 fps
or more on a screen that fast. Renegotiated with the cap as before.

Windows Graphics Capture is reported to deliver about 60 frames a second
without a minimum update interval (or with one under 1 ms); it now gets
1 ms where Windows has the setting, so the sink's cap decides there too.
Type-checked only; it has not run on Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:43:06 +03:00
selikhovandClaude Opus 5.5 8917f7dab2 Streams: an automatic bitrate up to 60 Mbit/s, and presets to match
The bitrate was a fixed 8 Mbit/s by default whatever was shared, and the
share dialog offered at most 10 Mbit/s and 60 fps. Asked for: Voelin
streams that can target 60 Mbit/s at up to 8K and 320 fps, with an
automatic bitrate that scales with the stream's resolution and frame rate
and follows it live, beyond 60 Mbit/s only when typed.

- `media::auto_bitrate(width, height, fps)`: 0.12 bits per pixel and
  frame (7.5 Mbit/s at 1080p30, 15 at 1080p60, 27 at 1440p60) between
  300 kbit/s and 60 Mbit/s, reached at 4K60 and 1080p240.
- `stream.bitrate_kbps` 0 is automatic and now the default. A streamer
  layer with bitrate 0 works it out per picture from the size encoded and
  the layer's frame rate, so a new resolution or frame rate moves it at
  once, and tells its sink (`MediaSink::auto_bitrate`). The engine's
  `StreamSink` puts it into the live stream's layer, so connections start
  their bandwidth estimate at it and probe for it; without that the
  stream would have kept the bitrate announced at the start.
  `Streamer::bitrate_kbps()` is what to announce.
- The quick share offers 15-320 fps and Auto, 2.5 to 60 Mbit/s (typed
  values still have no maximum; the `ui` blob keeps indices of the old
  lists for older versions). The studio offers 4K and 8K and 30-240 fps,
  takes an empty bitrate as automatic and derives its first simulcast
  layer from the automatic bitrate.
- The studio now tells the engine its layers when it goes live and when
  they change (`SetStreamLayers`), and a quick share resets them: the
  session sends only layers it knows of, so a studio's simulcast layers
  never reached a viewer, and its layer kept the bitrate announced.
- `voelinctl stream start` and `stream bench` default to the automatic
  bitrate too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:37:08 +03:00
selikhovandClaude Opus 5.5 5f2937ece9 Document the decoded-picture step of the negotiation ladder
The audit row of the viewer's codec and the transport section say how a
codec that never decodes is left out (Viewer, StreamUndecodable,
video_undecodable), media.md under Viewer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:28:31 +03:00
selikhovandClaude Opus 5.5 a1d6c6f8aa Merge claude/gifted-lovelace-1crlx2 (the decoders) into the negotiation work
The development branch gained FFmpeg's decoders and the decoder ladder.
Conflicts only in text: the changelog keeps both entries, media.md the
H.264 profile ladder next to the new VideoPipeline description, the
interop README both sets of Chromium findings, and browser_codecs.rs
both the per-format viewer sink and the new pipeline test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:20:17 +03:00
selikhovandClaude Opus 5.5 1f7967cc9b Measure AV1 at 1440p60 through every AV1 decoder
The official client sends AV1 from GPUs that encode it, so the decoders'
measurement covers it too: streams from av1_vaapi (hardware, as the
official client's AMF) and SVT-AV1 at 2560x1440 and 60 fps, decoded by
every decoder of the AV1 ladder and compared with dav1d's pictures. All
600 pictures from each, the same: av1_vaapi 301-309 fps, libdav1d (8
threads) 412-426 fps, libaom 240-286 fps (release build, RX 7900 GRE,
FFmpeg 9.0.1). The H.264 measurement shares the helpers now, and its
table in media.md gives the range of two runs on a desktop in use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 23:33:33 +03:00
selikhovandClaude Opus 5.5 44d674cf0d docs: FFmpeg's decoders, the ladder, what a viewer accepts now
media.md describes the decoders (hardware through FFmpeg's hwaccel API,
then FFmpeg's software ones, then the built-in ones), hw_device_ctx and
how it is found, the self-test clips, the ladder on this machine, the
settings, the pipeline's fallback and loss recovery, the measurements of
H.264 with B-frames at 1440p60, and what was tested where (VA-API on the
RX 7900 GRE, the browser interop; NVDEC, D3D11VA, DXVA2 and VideoToolbox
only type-checked or not at all). The protocol notes say what Voelin now
accepts from official streamers and why their H.264 decoded so badly
before (OpenH264 and B-frames).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 23:28:50 +03:00
selikhovandClaude Opus 5.5 d7940f846a Merge claude/gifted-lovelace-1crlx2 (Wave 5B) into the negotiation work
The base moved on (the phone and Android wave, the quick share's sound,
voelinctl subscribing to every channel); it merges without conflicts
and the negotiation changes build and pass on top of it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 23:25:00 +03:00
selikhovandClaude Opus 5.5 d715444abd Merge Wave 5B: the phone, Android, and the quick share's sound
The phone's voice channel screen (mockup 02), Home and bottom navigation;
Android cameras through Camera2, the screen shared into MediaCodec's input
surface without a copy, notifications with working actions, "Share to
Voelin"; the multi-select audio picker with app icons; and, asked by the
user, the quick share's sound: the share dialog shows the studio's mixer
rows (meter, gain, mute) for `stream.audio_sources` and its picker, and a
running share follows changes live. docs/android.md rewritten.

Conflicts: both waves gave studio cameras a new backend (Windows Media
Foundation from Wave 6A, Android Camera2 here); both are kept, in the
docs and code. The Windows build caught what the merge could not: each
side's `Capture` initializers lacked the other's field, and Media
Foundation cameras lacked `Camera::mirrored` (webcams face the user, so
true). Checked: fmt, clippy (host, x86_64-pc-windows-gnu for voelin-media,
both Android runs), and the tests of stream, media, core, ui, android and
voelinctl.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 23:20:29 +03:00
selikhovandClaude Opus 5.5 c8e04cb1ac Document the H.264 profile ladder and the socket buffers
media.md: H.264 offered as Constrained High then Constrained Baseline,
one encoder per format viewers chose, and the tests that prove it (the
SPS profiles, a Baseline-only viewer, headless Chromium answering the
Baseline entry). The protocol notes and the interop README record what
Chromium 152 does with the ladder; architecture.md the socket buffers
and how losses are repaired, with the measurements.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 22:57:23 +03:00
selikhovandClaude Opus 5.5 a61d0af370 voelin-ui: pick and mix the quick share's sound as the studio does
The "Share screen" dialog had one switch for sound, "Share system audio",
which shared whatever stream.audio_sources held: changing what the
stream carries (an application, the microphone, desktop audio without
Voelin) or how loud meant the Stream Studio or the settings, and a
running share never followed.

The dialog now shows the studio's audio mixer while the switch is on
(off still means no audio at all): the studio's MixerRow for each source
(meter, gain, mute, the menu) and Add, which opens the studio's
PickDialog over the dialog to switch several sources on and off. They
read the main window's StudioBridge, filled without starting the studio
(App::mixer_show). Starting a share hands the sources with their gain
and mute to the capture (CaptureRequest::audio_sources); the stream
announces sound only when there is some. While it runs, the dialog
shows the same rows with the share mixer's meters, about 15 times a
second (the share keeps the timer), and every change of
stream.audio_sources, from the dialog or anywhere else (the settings
change event), goes to the running capture at once through
Capture::follow_audio, which reconfigures the streamer. A share started
without sound has no audio track, so the dialog says so instead.

The studio's rows and meters follow whichever streamer goes out: a quick
share's while one runs, else the studio's encoder. The picker's
application list is let go once neither the dialog nor the studio needs
it. With sample data, VOELIN_OPEN=share:live shares the test pattern
with the sample studio's sources, live at once with sample viewers, and
Stop ends it, as the studio's demo does. On a phone the frame-rate and
bitrate fields of the dialog no longer run past its edge.

Tests: capture_request carries the picked sources with gain and mute,
and nothing with the switch off or no sources; a running capture on the
test pattern follows changed sources, keeps a silent track when all are
removed, and one started without sound stays so. Headless screenshots
of the dialog before and during a share, 1440x900 and 390x844.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 22:45:17 +03:00
selikhovandClaude Opus 5.5 698e5f911e Merge the development branch: share menu, codec order, segmentation
Brings in the Share button's menu (Share screen / Stream Studio) and the
removal of the separate Stream Studio button from the headers, the
codecs every TeamSpeak client decodes ahead of H.264, the portal fix
and person segmentation.

The phone header keeps this branch's voice-channel button and hides the
bell on the voice screen, and loses the Stream Studio button as the
development branch wants. The studio's test table takes the
segmentation rows and the Android camera row. MediaCodec follows the new
codec order with no code change (Codecs orders every hardware factory's
codecs); its description and docs/media.md now say so, including what
that means on a phone without a hardware VP8, VP9 or AV1 encoder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 20:02:47 +03:00
selikhovandClaude Opus 5.5 c79bb7dd07 Android: share the screen into the encoder without a copy
Screen sharing went MediaProjection -> ImageReader -> an owned Vec per
frame -> RGBA to NV12 on the CPU -> MediaCodec's input buffers: two
copies and a conversion of every frame on a phone's CPU.

Now, while it is the only MediaCodec encoder in the process (one
simulcast layer, one codec), an encoder takes GpuFrames: for the first
it starts a codec with an input surface (COLOR_FormatSurface,
max-fps-to-encoder at the stream's rate, repeat-previous-frame-after so
a still screen answers keyframe requests) and publishes it, and the
capture points its virtual display at that surface, resized to the
layer's size. The compositor renders the screen into the encoder; a
ticker at the stream's rate hands the sink GpuFrames that only collect
what the codec encoded, on the capture's timeline.

Simulcast keeps working by falling back: a second encoder (another
layer, or another codec a viewer chose) turns the path off for every
encoder and the display goes back to the reader, until it is the only
one again. One display can only render into one surface, and a GL
fan-out to several encoder surfaces is a lot of code for a case phones
rarely need. An encoder whose surface fails stays on frames in memory.

The fallback path no longer copies either: the provider's start_sink
hands the reader's buffer to the stream's sink borrowed. A frame-rate
change restarts the surface codec (its cap is fixed when it starts),
and the display is detached while it is resized, so neither consumer
sees a picture of the other's size.

Compiled for aarch64-linux-android only: there is no device here, so
frames per second and CPU use are not measured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 19:51:39 +03:00
selikhovandClaude Opus 5.5 9bff03e47c docs/media.md: the studio's cameras, RTMP and their dependencies
media.md still described the studio as recording, replay and WHIP, and
its dependency table did not list what the studio's MJPEG cameras
(zune-jpeg) and its person segmentation (tract-onnx with the bundled
PP-HumanSeg model) build on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 19:50:07 +03:00
selikhovandClaude Opus 5.5 ecc132f5ff Push a studio stream of any codec over RTMP, in H.264
Classic RTMP carries H.264 only, and the RTMP output refused a stream
encoding anything else. Since TeamSpeak streams now prefer the codecs
every client decodes before H.264, that refusal hit the usual case.

An output may now name a video codec of its own. The streamer then runs
an encoder of that codec for the layer the output takes, as it does for
a viewer that chose another codec, and hands those packets to the
outputs that asked for it only; recordings and the replay buffer keep
the stream's codec, which a studio now always encodes for them even
when every viewer chose another one. Only the output's layer gets the
extra encoder, not every simulcast layer.

Tested end to end: a VP8 studio stream pushed to FFmpeg's own RTMP
server arrives as H.264 and AAC (ffprobe), starting at a keyframe, while
a recording of the same stream stays VP8 and Opus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 19:42:02 +03:00
selikhovandClaude Opus 5.5 02e43b14f9 Describe the layer picker's live run and what to check with the official client
A real two-layer VP8 stream of the test pattern through the TeamSpeak 6
dev server: the viewer asked for layer 1 and decoded 640x360 pictures at
an estimate that fits layer 0. The manual matrix gets ST6, the check that
needs the official client: it watches a stream whose offer carries the
layer list, and our viewer never sends it the layer request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 18:55:18 +03:00
selikhovandClaude Opus 5.5 0bc96437e5 Show what a watched stream delivers: size, frame rate, bitrate
A viewer could see the codec and the picture's size of a watched stream,
but not how many pictures arrived or at what bitrate, so a choppy or
starved stream looked like any other.

DecodeStats now counts the video bytes received and gives the decoded
frame rate and the received bitrate since the previous `stats()` call (at
least half a second; the watch screen asks once a second, other readers
share the same window). The watch screen shows "VP8 · 1280×720 · 30 fps ·
0.4 Mbit/s" in small text in the player's control bar, where a spacer was,
and in Stream Info.

These are read from the decoding pipeline, which runs in the app, rather
than sent as an engine event as planned: the engine never sees the decoded
pictures, and the screen already refreshes from these stats every second.

Tested: the local test pattern decodes at 20-40 fps and 0.1-5 Mbit/s
(media::tests::local_preview_decodes_the_pattern); a headless screenshot
of the watch screen with the sample stream showed the line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 18:20:02 +03:00
selikhovandClaude Opus 5.5 8d14b0d5be Let a viewer pick the simulcast layer of a Voelin stream
The streamer chose each viewer's layer from its bandwidth estimate, and a
viewer could neither see which layers there were nor ask for one: the watch
screen's quality picker only asked for a keyframe.

A Voelin streamer with several layers now lists them in its offer, in a
session-level SDP attribute, `a=x-voelin-layers:<id>/<WxH or
scale>/<bitrate>[/<fps>] ...`, added to the SDP str0m makes (peer.rs is
untouched). A Voelin viewer reports them (WatchEvent::Layers,
Event::WatchLayers) and asks for one with Command::SetWatchLayer, which
sends `{"cmd":"x-voelin-layer","args":{"layer":<id or null>}}` through
streamsignaling. The streamer moves that viewer to the layer at its next
keyframe and keeps it there whatever the estimate says, without letting it
lower the layer's bitrate for everyone else; null ("Auto") hands the
choice back to the estimate. The watch screen's picker now drives it.

Official clients are not affected. libwebrtc skips session attributes it
does not know: headless Chromium 152 answers an offer carrying the line
and decodes as before (browser interop test, which now sends it). A viewer
sends the request only to a streamer whose offer had the attribute, and
only Voelin streamers add it, so official streamers never get the signal;
which codecs are offered does not change.

Tests: two sessions with peers on loopback switch the viewer to layer 1
and back on request; a streamer whose offer lists no layers is never
asked; the attribute round-trips. Through the TeamSpeak 6 dev server,
`voelinctl stream watch --layer 1` against a two-layer placeholder stream
kept the viewer on layer 1 at an estimate that fits layer 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 18:10:17 +03:00
selikhov f2ffd761fc Merge branch 'claude/gifted-lovelace-1crlx2' into worktree-agent-a33c34a3879196dbf 2026-10-03 17:51:48 +03:00
selikhovandClaude Opus 5.5 630ff848b2 Offer the codecs every TeamSpeak client decodes before H.264
The official client could not show a Voelin stream: its decoder was
libwebrtc's NullVideoDecoder. Its log says why. On a machine with a
hardware H.264 encoder our offer put H.264 first, with every H.264
variant str0m knows; the client answered H.264 42e01f, then had no
decoder for it, because it decodes H.264 only with an OpenH264 library it
downloads at start-up, and that download failed (HTTP 403). Its SDP
capabilities list H.264 either way. VP8, VP9 and AV1 it always decodes:
FFmpeg's decoders, dav1d and libaom are built into it.

- The hardware encoder order, the automatic stream codec
  (`preferred_codec`) and the offer (`offer_codecs`) now put the codecs
  every client decodes (`decoded_everywhere`: AV1, VP9, VP8) before
  H.264, HEVC last. A viewer answers with the first codec of the offer it
  lists, so official clients take one they can decode; H.264 stays
  offered for peers that want it, and `stream.codec` can still choose it
  (its description now says what that means for official clients).
- A streamer offers H.264 only as it encodes it (Constrained High,
  packetization mode 1), not str0m's other variants, which let a viewer
  answer a profile, or packetization mode 0, we never send. Viewers still
  accept every variant.

Tests: `crates/voelin-core/tests/browser_codecs.rs` (VOELIN_INTEROP=1)
streams the test pattern through every encoder this machine has, VA-API
also from DMA-BUFs, to headless Chromium's libwebrtc: VA-API H.264 and
AV1, libvpx VP8 and VP9, x264, SVT-AV1 and libaom all decode at
1280x720. A second test makes the offer a share makes here
([AV1, VP8, H264, H265]) and checks the browser picks and decodes a
codec every client decodes. The browser driver now takes playwright-core
with a system Chromium (VOELIN_CHROMIUM), which decodes H.264, and the
interop tests accept Chromium 152's name for the SRTP cipher. The
official client itself could not be run here (its beta needs a
myTeamSpeak sign-in on first start).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 17:50:37 +03:00
selikhovandClaude Opus 5.5 23bf7331c4 Show TeamSpeak 6's own viewer counts for streams
The streams list and the watch screen showed how many watch a stream only
when a gateway's directory knew it, although TeamSpeak 6 tells the count
itself: `viewer` in `notifystreaminfo`.

StreamInfo gets `viewers`: the server's count from `notifystreaminfo`, 0
for a stream that just started. Probed on the dev server, the server sends
`notifystreamclientjoined` to the whole channel but `notifystreamclientleft`
only to the streamer and the viewer who left, and no `notifystreamupdated`
for either; so the directory counts joins and leaves itself and the engine
asks `requeststreaminfo` again, one stream of another client every 5 s
round robin, which corrects the leaves it was not told about without
flooding the server however many stream. The app shows that count, and the
gateway's where the server gave none; `voelinctl stream list` prints it.

Against the TeamSpeak 6 dev server, a late `stream list` printed
"1 watching" while a viewer watched and "0 watching" after it left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 17:50:35 +03:00
selikhovandClaude Opus 5.5 a9a12bb4db voelin-media: run the X11 capture test only on a test display
The test maps windows, moves the pointer and captures the screen of
whatever DISPLAY names. On a desktop session (XWayland included) a plain
`cargo test` therefore ran it on the user's real screen. Take the display
from VOELIN_X11_TEST_DISPLAY instead, as the X11 hotkey test of
voelin-platform already does and as CI sets it under xvfb-run, so the
test only ever runs on a display made for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 17:50:24 +03:00
selikhovandClaude Opus 5.5 2a1279ee7b voelin-media: RTMP output for the Stream Studio through libavformat
The RTMP output was a seam that refused every rtmp:// URL. Broadcast
services (Twitch, YouTube, nginx-rtmp) take RTMP, so the studio could only
reach the few that speak WHIP.

The connection is libavformat's own rtmp:// and rtmps:// protocols,
loaded at runtime with the rest of FFmpeg and never linked. Its RTMP
writer takes an FLV byte stream and sends each tag as a message, so the
FLV is ours (onMetaData, AVC and AAC sequence headers, a tag per frame)
and no muxer struct (AVFormatContext, AVStream, codec parameters, which
all moved between releases) is used: five avio functions and
AVIOInterruptCB. Write errors only land in AVIOContext.error, which moved
too (120 bytes in libavformat 58, 84 in 63); it is found at load by
flushing a context whose write callback fails with a sentinel.

Video is the studio's H.264 of one layer as encoded; other codecs are
refused with the reason. Audio is the studio's Opus decoded and encoded
as AAC-LC by FFmpeg's own codecs on the output's thread. The encoder's
sample format has no AVOption, so AVCodecContext.sample_fmt is located
from its neighbours' option offsets like hw_frames_ctx; its 1024-sample
frames are a reference to the first decoded frame (FFmpeg filled in the
channel layout, whose field moved) with only the leading fields pointed
at our planes.

The stream key comes from the URL or the token (sent as the play path)
and never shows in the output's name. The first connection is made when
the output is added, so a wrong address fails there; later failures are
reconnected with backoff (1 s doubling to 30 s), each new connection
starting at a keyframe it asks for, and the stats show why it is down.
EndStream unpublishes; a dead network is cut off after three seconds.

Tested against FFmpeg's own RTMP server (ffmpeg -listen 1): a studio
stream through the hardware H.264 encoder and a 440 Hz tone arrives as
h264 320x180 and aac 48 kHz stereo per ffprobe, starts at a keyframe,
decodes, and comes back after the server is replaced; the unit tests
also pass against FFmpeg 4.4.8. voelinctl studio run gets --rtmp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 12:50:58 +03:00
selikhovandClaude Opus 5.5 3f9d81ebc0 docs/media.md: the streamer's GPU path, and what it costs
Describe how captured DMA-BUFs now reach VA-API encoders (the GPU path in
the pipeline, GpuConverter and GpuFrame, encode_gpu, the portal's tiled
offer and renegotiation, synthetic_dmabuf and `bench --dmabuf`), and
record the release measurements of the whole streamer on both paths with
the test pattern handed over as DMA-BUFs:

- 1440p60 h264_vaapi: 0.10 cores against 0.34-0.52, every frame on the
  GPU, 2.0-2.7 ms of the capture thread waiting for it;
- simulcast 1440p30 + 720p30 + 360p15: 0.06 cores against 0.26-0.38;
- 1080p60 av1_vaapi: 0.06 cores against 0.29.

The verification table gains the new tests, and says plainly that the
GPU path has not met a real portal capture yet, nor the tiled offer a
compositor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 11:45:20 +03:00
selikhovandClaude Opus 5.5 c5314f8691 voelin-media: keep AMF's runtime from crashing the app during the probe
The desktop app died at startup under Xvfb with SIGSEGV in libamfrt64,
inside avcodec_open2 while the encoder probe opened h264_amf, hevc_amf
and av1_amf on parallel threads. Reproduced with the probe alone: 10 of
420 runs crashed with four to eight processes probing at once, every one
in AMF's process-wide AMFFactoryHelper (Init, or Terminate dlclose-ing a
library) while AMFContextImpl::InitVulkan created an encoder's device.
Serialising AMF opens within the process removed it: none of 600 runs
crashed, with the processes still probing together. So the race is
between threads of one process, not between processes.

Two changes:

- AMF encoders are opened and closed one at a time in the process. That
  fixes the race wherever AMF is used: the probe, simulcast layers
  opening together, and Windows, where AMF is the AMD encoder.

- On Linux AMF is not used unless VOELIN_FFMPEG_AMF=1. FfmpegEncoder::new
  refuses it with the reason, so neither the probe, nor the factories, nor
  a direct caller loads the runtime at all. VA-API drives the same VCN
  encoder there, measured as fast with less CPU, and only VA-API takes
  DMA-BUFs without a copy; AMF on Linux is AMD's closed runtime on top of
  Vulkan, and a library that is never loaded cannot crash the app.

Not done: running the self-tests in a child process. A clean child does
not reproduce the state of the process that opens the encoder afterwards
(here the race only showed under load), so it would pass a backend that
can still crash the app, and every binary's main would have to cooperate.

Tests: the AMF refusal through FfmpegEncoder::new, the probe reporting
the reason without libamfrt mapped into the process, and an ignored
stress test that opens every AMF encoder on parallel threads 40 times
(with VOELIN_FFMPEG_AMF=1 it passes; the probe loop it replaces crashed).

On this machine the automatic H.264 encoder changes from h264_amf to
h264_vaapi.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 07:19:41 +03:00
selikhovandClaude Opus 5.5 4e56c15505 Merge the GPU validation of the hardware video path
Measured on a real RX 7900 GRE with FFmpeg 9: VA-API and AMF encode
1080p60 and 1440p60 at a quarter to half a core, simulcast included;
RGB DMA-BUFs are converted to NV12 on the GPU; Wayland screen capture
delivers frames again (it delivered none) and switches to shared memory
where reading GPU memory is slow; the H.264 level of the SPS matches
the offer; AV1 is cropped to what this GPU really encodes; FFmpeg 9's
structure offsets are checked against its headers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 06:55:32 +03:00
selikhovandClaude Opus 5.5 68abbcf20b docs/media.md: the CPU range of the hardware encoders includes the re-run
The summary under the tables still gave 0.20-0.42 cores, the range before
the av1_vaapi re-run added 0.38-0.52.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 06:43:22 +03:00
selikhovandClaude Opus 5.5 b79e29caa1 docs/media.md: av1_vaapi now holds its bitrate
Add the re-measured av1_vaapi rows next to the first ones (5982 kbit/s
for 6000 asked at 1080p60, 9920 for 10000 at 1440p60, against 6211 and
10794 before), with what the encoder-only measurements showed: only the
rate-control buffer moved Mesa's AV1 rate control, and with two seconds
the stream is no burstier than the other hardware encoders'. The CPU
figures of these later runs are given as ranges with a control run,
because the machine was in use and they varied between runs while the
bitrates repeated exactly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 06:42:44 +03:00
selikhovandClaude Opus 5.5 665de8dcd2 docs/media.md: the GPU colour conversion and what zero-copy costs
Describe the encoder's half of zero-copy as it now is: RGB DMA-BUFs
converted to NV12 by VA-API video processing on FFmpeg's display, why
libva is driven directly instead of libavfilter, and the colour
description that keeps Mesa from converting the transfer function.
Record the measurement (0.08-0.09 ms of CPU per 2560x1440 frame against
4.3-5.2 ms through shared memory), the checks against the CPU conversion,
the flush crash a failed import exposed, and libva among the licenses.

Say plainly what is still not reached: the streamer's sink does not take
DMA-BUFs, so no captured frame has used this path, and a real capture
through it needs that sink and another portal run. Also correct the
portal threshold, which e5789e4 moved from 6 to 1 ns per pixel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 02:43:11 +03:00
selikhovandClaude Opus 5.5 860e1665f7 Describe the Stream Studio in docs/studio.md
The studio had module docs but no page saying how its parts fit, what
the UI drives it with, which settings it keeps, and what is tested for
real against what only compiles. docs/studio.md covers the scene format
(with an example), the compositor and its numbers, cameras, background
replacement and the fact that no person segmentation model is in the
build yet, the outputs, the controller's commands and events and the
preview tap, the engine's hooks and settings keys, the voelinctl
commands, and the verification status. docs/media.md points to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 02:22:57 +03:00
selikhovandClaude Opus 5.5 25c9b2ba10 docs/media.md: what the GPU encoders' output decodes to
Record the hardware round-trip per encoder and size, the AV1 padding it
uncovered on this GPU (1080 rows sent as 1082, other sizes padded to
64x16) and the crop that replaced it, and that the AV1 decoder has now
decoded the streams of five encoders rather than none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 02:04:44 +03:00
faumarayandClaude Opus 5 312f97dd63 docs/media.md: what a real Wayland capture costs, before and after
The low screen-share frame rates on Wayland had never been reproduced here.
Record the run that did: what the broken DMA-BUF mapping did, what reading a
discrete GPU's buffers with the CPU costs against shared memory, and where
the threshold that chooses between them now sits.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-29 23:51:11 +03:00
faumarayandClaude Opus 5 1f571055fe docs/media.md: the DMA-BUF import is tested, the capture path still is not
Separate the two halves of zero-copy that the measurements now tell apart:
the import into a VA-API encoder carries a real tiled buffer on this GPU,
while nothing from screen capture reaches it, because the portal delivers RGB
and because Ingest never accepts DMA-BUFs in the first place.

Also record the layer shape the import expects against the one a driver
exports, which the test uncovered.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-29 23:32:04 +03:00
faumarayandClaude Opus 5 d85f3f78e5 docs/media.md: the hardware video path as measured on a real GPU
Everything about the FFmpeg encoders was written without a GPU to run them
on. Record what a Radeon RX 7900 GRE with FFmpeg 9.0.1 actually does:
software against VA-API and AMF at 1080p60 and 1440p60, a simulcast run, and
what the numbers mean (every encoder holds the frame rate, so the difference
is CPU — 0.20-0.42 cores against 1.16-2.55 — and the steady state is 1.02
allocations per encoded frame on hardware as on software).

Also record what the measurements found and changed: the H.264 level the
encoders emit against the one the offer advertises, the probe's startup cost
and the third-party output it used to print, and the libavutil 61 offsets.
The verification table now separates the hardware that was tested here from
the hardware that was not, and says plainly that the zero-copy import has
still never carried a frame because the GPU colour conversion is missing and
that the portal measurement did not run.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-29 18:43:48 +03:00
Claude 0924cfcc82 voelin-media: bitrate increases reach encoders that cannot change it running
VA-API, AMF, SVT-AV1 and the other wrappers without a live bitrate change
applied a new target only at the next keyframe, so a still screen kept
the bandwidth estimate's low start value for good. An increase of half or
more now reopens the session (a keyframe) once it is five seconds old;
smaller ones still wait for a keyframe, drops below half apply at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-29 01:13:44 +00:00
Claude 0844d35411 voelin-core: live test of a viewer that answers another codec
Against the TeamSpeak 6 dev server: the streamer offers VP9 (its stream
codec) and VP8, a viewer that decodes only VP8 answers VP8 and decodes
pictures from the encoder made for it, and the VP9 encoder, wanted by
nobody, idles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-29 01:12:15 +00:00
Claude 51be688631 docs: FFmpeg encoders, per-viewer codecs, how to install FFmpeg
docs/media.md: how FFmpeg is found (VOELIN_FFMPEG_DIR, VOELIN_FFMPEG,
any major version), which struct fields are read and how they are
checked, the backends and their realtime settings, runtime bitrate and
size changes, buffers, what is zero-copy and what is missing (the GPU
colour conversion), installing FFmpeg per OS, the offer with several
codecs and an encoder per codec viewers chose, the computed H.264 level,
the new API, voelinctl, licenses and what was tested how.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-29 01:10:26 +00:00
Claude 7e75a3be70 docs/media.md: stream audio sources, the mixer, application capture
A "Stream audio" section covers the source kinds, how the mixer
behaves (latency, underruns, drift, limiter, meters), the audio thread's
clock and RTP time, live reconfiguration and per-source errors, the
stream.audio_sources setting, and per platform how application audio is
captured (all but ours, one app, the app list). The PipeWire note no
longer says our voices reach viewers, the pipeline diagram and streamer
bullets name the mixer, and the verification table lists the new tests
and what is only type-checked (WASAPI) or only compiled (Android).

The link manager's module doc also covers the marker property used in
sandboxes and the skipping of loopback and filter outputs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-28 19:25:57 +00:00
Claude 8bc4d46296 docs/media.md: before/after numbers of the streaming pipeline
`voelinctl stream bench`, release builds (fat LTO), VP8, desktop test
pattern, one layer, 8 s, shared 4-core VM, before/after interleaved.
Before: the single-threaded allocating pipeline (31b138a). After: the
threaded pipeline (quiet column: 6187cc2; busy column: 3e49849).
fps sent / CPU cores / heap allocations per encoded frame:

            quiet (load 1-3)                    busy (load 6-12)
            before              after           before             after
  720p30    29.4/0.48/7.1   30.0/0.40/1.05     7.9/1.71/10.0     6.6/1.24/1.25
  720p60    14.7/2.37/10.2  60.0/0.69/1.03     4.6/1.23/19.1     6.4/1.28/1.25
  1080p30   29.6/0.83/7.1   30.0/0.75/1.05     2.7/1.30/17.4     6.9/1.27/1.24
  1080p60   57.2/1.47/7.1   53.7/1.42/1.03     2.4/1.33/31.4     5.7/1.40/1.28
  1440p30    8.4/2.26/9.7   22.7/1.71/1.07     1.9/1.31/22.6     5.5/1.26/1.30
  1440p60   52.5/2.24/7.2    3.2/2.02/1.50*    1.5/1.22/36.9     3.6/1.30/1.45

* libvpx with one thread per core collapsed when conversion competed for
  a core (290 ms per frame); 3e49849 leaves a core free.

On an idle machine (load < 1, earlier) the old pipeline reached
30/60/30/58/30/60 fps at 0.4-1.8 cores; the machine never got that
quiet again for an after run. Allocations per encoded frame: 7-37 before
(5-450 MB), about 1 after (the `Arc<[u8]>` of the encoded frame, 10-130
KB); zero on the capture -> convert -> scale -> encode path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-27 19:06:14 +00:00
Claude 3e498497d7 Encoders use all CPUs but one by default
libvpx's worker threads wait on each other by spinning. With one thread
per core, an encode slows down many times over as soon as anything else
wants a core: the capture and conversion of the next frame, another
layer, the desktop. The bench on a 4-core machine showed single frames
at 1080p and 1440p taking 130-290 ms with 4 threads under load, where the
same frames took 9-17 ms with 3 threads next to two other layers. The
default (`codec::encoder_cpus`) is now all CPUs but one, for single
encoders and for the streamer's split across layers; an explicit
`EncoderConfig::threads` still wins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-27 18:38:33 +00:00
Claude 6187cc24de libvpx speed control: no VP8 levels below 6, react to overload at once
The bench showed the adaptive `cpu-used` oscillating: with headroom at
-6 it stepped VP8 down to -5 and -4, which on screen content cost about
ten times the encode time for under 1 dB, the encoder fell behind, frames
were dropped, and it stepped back up. VP8 now stays within -10..-6. A
single frame that takes longer than the whole frame interval makes the
encoder faster at once, and when a slower level has to be undone, the
next attempt to go slower waits twice as long (up to 16x 15 frames).

The simulcast test also checks that `EncodedSource::set_layer_bitrate`
reaches exactly that layer's encoder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-27 13:45:13 +00:00
Claude 64a3b95742 Criterion benches for conversion and scaling; media docs
`cargo bench -p voelin-media --bench convert` times, at 720p, 1080p and
1440p of the desktop test pattern: the old allocating one-thread
`to_i420`, the `Converter` on one thread and on all cores, the pyramid
(full, half and quarter size), and luma scaling to half (2x2 box) and to
2/3 (area average). criterion 0.8 is already in the lock file (the proto
crates use it), Apache-2.0 OR MIT.

docs/media.md describes the threaded simulcast pipeline, reconfigure and
the stats, the capture sinks, portal DMA-BUFs, the wlroots backend, the
libvpx settings, how to benchmark, the allocation behaviour, the modules
with unsafe code, and the test status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-27 09:06:29 +00:00
Claude e050148a32 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
2026-09-26 21:11:17 +00:00