Both sides kept: the studio page and the new home, friends, messages,
events and settings pages in the Page enum, app.slint, the phone's top
bar (studio, search, bell), bind/ and vm/ modules, dev.rs switches. The
layers icon and Video::codecs were added on both sides; one of each is
kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The studio inside the main window (scenes, sources, preview with LIVE,
timer and viewers, the audio mixer with meters and gains, stream chat,
stream settings with a simulcast layer editor, Share Window/Screen,
Record Clip, Go Live, End Stream), the same studio in its own window,
and a phone layout. Also an engine fix: a camera's new background
effect is applied instead of being kept from the old one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What each part shows, how it opens for a screenshot and what of the
engine it uses; how the window of its own shares the controller; the
studio.ui setting; the sample studio; its limits. docs/studio.md points
there and says that another background effect restarts a source's
input. The headless example also drops XDG_SESSION_TYPE, as the script
now does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A captured RGB DMA-BUF is converted to NV12 and scaled per simulcast
layer on the GPU, into surfaces the VA-API encoders take as they are;
the CPU never reads the frame. Used while every layer's encoder is
VA-API, with the unchanged CPU path otherwise, and switched on the fly.
The portal offers the GPU's tiled layout ahead of LINEAR. Measured with
the test pattern as DMA-BUFs: 1440p60 h264_vaapi at 0.10 cores instead
of 0.34-0.52; a real portal capture through this path is still to run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
The home page lists the latest chats across servers and the profiles
page raises an identity's security level, so the engine gains:
- Store::recent_chats / History::recent_chats: the newest message of
every chat, the most recently active first (one pass over the time
index).
- identity::improve_level: the hash cash search on every core, in
chunks of counters, cancellable, reporting each better level reached;
the key and so the unique id stay the same.
- privacy.private_messages and privacy.pokes (everyone, friends,
nobody): private messages and pokes of everyone else are dropped,
next to what privacy.block_mode does for blocked contacts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AMD's AMF runtime is not safe to open on several threads at once; the
probe did exactly that and crashed the app inside avcodec_open2. AMF
opens are serialised, and on Linux AMF is used only on request
(VOELIN_FFMPEG_AMF=1): VA-API drives the same encoder there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Chat with author grouping, reactions, file cards and the composer;
a resizable members panel grouped by server group with badges and a
member card; pinned-message and topic drawers; the voice-channel grid
with stream cards; the watch-stream screen with viewers, volume, chat
and a full-window pop-out. Screenshots run headless on Xvfb with
WAYLAND_DISPLAY removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/ui.md gains a section on the server page: each part (chat, members
panel, member card, pins, topics, voice channel, watching a stream), the
`VOELIN_OPEN` switch that shows it, and the engine events and requests
it uses. The settings table lists `ui.members_width`, the switches and
the screenshot script are described as they now work, and the limits say
what the design shows that we leave out (offline members, a quality
picker without layer information, a second window for the pop-out).
The screenshots are taken again so they all show the chat at its newest
message. The user card's avatar has the green ring while our voice goes
out, the speaking indicator of the compact voice controls.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Nothing set the position of the message list, so a chat opened at the
oldest loaded message and new ones arrived out of sight below. The list
now starts at its end and follows new messages while it is there;
scrolling up stops that until the end is reached again, and another tab
starts at its end.
Jumping to a pinned message highlighted it but did not scroll: it now
scrolls to the message (to where an average row would be, as the
standard list estimates it, since rows differ in height) and leaves an
open topic for the chat.
The members panel could be dragged no wider than 420 px; it can now
take what the window allows while the chat keeps 400 px.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
The viewer count in the player and on the stream cards was never filled
in a real session: the engine subscribes to the gateway's stream
directory, whose entries carry the number of viewers, but the UI dropped
those updates. Keep the counts per session by stream id from
`GatewayUpdate::Streams`, `StreamStarted`, `StreamUpdated`,
`StreamRegistered` and `StreamEnded`, and show them in the player ("12
watching") and on the voice channel's stream cards. The sample data
answers with a directory, like a gateway, instead of setting the count.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pictures in docs/screenshots/ showed the server page before the
design's layout. They are taken again with scripts/shots.sh, and the new
screens get their own: the voice channel, the pins, the topics, an open
topic, the member card and the stream popped out.
`VOELIN_OPEN=topic:<id>` now fills the sample topic as the gateway would
when it is opened (it was answered once at start and then cleared), and
the top bar's members button also closes an open drawer, like the chat
header's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 9b09e7b moved from 6 to 1 ns per pixel.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The segment docs promised a bilinear, feathered mask; the frame path
samples the nearest mask pixel and relies on the mask's own soft edge.
Say so, here and in docs/studio.md, rather than promise a smoothing that
is not there: a model's sharper mask will want it, and that is the place
to add it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
winit prefers Wayland when WAYLAND_DISPLAY is set, so `xvfb-run` in a
Wayland session still opened the window on the desktop, where the
compositor chose its size. That looked like the X server ignoring the
requested size. Remove the variable for the screenshot run, and size the
Xvfb screen like the window.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
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>
The format description was written before the code; bring it in line with what
shipped, and be explicit about the two costs a reader would otherwise discover
the hard way: `immutable` means an identity the running client has not yet
checkpointed is not seen, and the Qt secrets file path is best-effort because
no such file existed to develop against.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Switching to Voelin should not mean starting over on every server: the unique
id is the key pair, and a user who cannot bring it along loses every server
group they have. So read the forms the official clients keep it in — the
TeamSpeak 3 `.ini` export, the `ProtobufItems` items both clients write, and
the older `Identities/<n>/…` rows — and store them through voelin-store,
skipping unique ids the store already has instead of adding a second copy.
Export back to the `.ini` form in the same module: an importer without an
exporter traps people here, which is the thing being fixed.
The clients' databases hold private keys and may be open in a running client,
so they are opened read-only and `immutable`: no lock, no shared-memory file,
no write-ahead log replay, nothing of the user's changed to read it. The cost
is that an identity written but not yet checkpointed is not seen, which is the
right way round.
Three field numbers do not earn a protobuf dependency; the wire reader is
twenty lines and skips what it does not understand. An item is taken as an
identity only when its declared type says so, never because a field number
happens to match.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Both official clients store identities in a `ProtobufItems` table of their
`settings.db`, not in the settings rows: one protobuf item per object, the item
type in field 6 selecting which payload field carries the body, and type 1
(field 17) holding the TeamSpeak 3 export string plus a nickname. Working that
out is the prerequisite for importing, so write it down before the code.
The myTeamSpeak account record sits in the same database and is easy to mistake
for an identity store; note that it carries no key pair and that the account
service stays out of scope, so the question is not reopened.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
H.264, HEVC, AV1, VP9 and VP8 on VA-API, NVENC, Quick Sync, AMF, Media
Foundation, VideoToolbox and the software encoders the system FFmpeg
has, found at runtime without a version allow-list and self-tested per
backend. Viewers get the codec they answered, with one encoder per codec
only while someone needs it, and H.264's level follows the stream.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
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
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
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
The architecture document describes what the engine now offers for the
new UI: client and server details and groups in the presence, channel
files and chat file links, the avatar and icon cache, pokes, private and
offline messages, and contacts with friends' presence and blocking, with
the protocol facts they rest on (avatar file names, icon ids, TS6 unique
ids for offline messages, the transfer port).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
Stream audio is mixed from any number of sources (desktop, chosen apps,
the shared window's app, the processed microphone), each with gain,
mute and meters, changeable while live. Desktop audio now leaves out
Voelin's own playback on Linux, Windows and Android.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
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
Chats show their stored history at once and sync what the gateway kept
while we were away; messages seen over voice and the gateway are
stored once. Pins, reactions, topics, events, the stream directory,
activity and gateway administration are engine commands and events.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
Theme tokens from the mockups, Inter, Lucide icons and Twemoji (with
their notices and About credits), a component library, desktop and
phone shells, today's screens re-skinned, view models and bindings
split out of app.rs, an image cache and live ui.* settings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
docs/ui.md describes the new UI for later work: the file layout, theme
tokens, the component catalogue, how to add a screen, the appearance
settings, how emoji are drawn, and the development switches for
screenshots. The screenshots are new (sample data from VOELIN_DEMO_UI,
256 colours); the old ones showed the previous design.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
Architecture: how messages are stored and merged, what opening a chat and
paging back emit, the history settings, the gateway's requests and
updates in the engine, and the directory as a stream discovery source.
The protocol page points to the engine's mapping, the README and the
changelog mention chat history and voelinctl's engine mode.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
Capture, conversion and encoding on their own threads with latest-wins
handoffs and frame pools, one encoder per simulcast layer, portal
DMA-BUF, a wlroots capture backend, tuned libvpx, per-stage statistics,
Streamer::reconfigure and voelinctl stream bench. Conflicts: the root
manifest (dimpl patch next to the release profile) and voelinctl's
command list (probe-stream next to the stream tools).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
`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 (a89ac5f). After: the
threaded pipeline (quiet column: ffc79e6; busy column: f6a4ae3).
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); f6a4ae3 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
tsgw keeps runtime-edited settings and permission rules in its database
(they win over --set, environment and tsgw.toml), migrates its database
in place, and serves the new features to clients that opt in; old
clients are unaffected. voelin-core gets a typed gateway client.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
gateway-admin.md explains bootstrap keys versus seeds, the precedence
(runtime > --set > environment > file > default), reloading, every key,
the admin commands, permission rules with their defaults and the data
the database keeps. The history retention default is now to keep
messages; the doc says how to get the old 30 days back.
gateway-protocol.md is the reference of tsgw.v1+json with the new
messages. The example config marks bootstrap keys and lists the seeds.
The systemd unit reloads with SIGHUP.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
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
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
`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
Conflicts with the SRTP/BWE/simulcast work were in the engine's command
loop, session and stream tasks (both sides kept: SRTP order and layers
next to settings and discovery) and in the voelin-stream exports.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
The window read its blobs (ui, audio, client_playback) from the store once
and wrote them back. It now opens the settings service on the client
database, attaches it to the engine, registers its own keys (ui,
client_playback), and loads config file, VOELIN_SETTING_* and `--set
key=value` overrides below the stored values. Its edits are set on the
service, which stores them off the UI thread and flushes on exit; changes
made elsewhere (e.g. Command::SetSetting) update the window's copies of the
audio, crash report and client volume settings. The crash report opt-in is
the crash_reports key the Android app already read (and stays in the blob
for older versions).
The share dialog starts from stream.fps and stream.bitrate_kbps and takes
any value typed next to the presets, which remain as shortcuts; what was
used is stored back. docs/architecture.md describes stream discovery and
the settings service.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
The interop test now reads the transport's getStats() and requires
srtpCipher AES_CM_128_HMAC_SHA1_80 in both directions, and bandwidth
estimates from Chromium's transport-cc feedback. The docs describe the SRTP
profile order, the bandwidth estimation and the simulcast layers of our
stream, and the findings with Chromium 141.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G