tsctl: stream real VP8 from capture, decode watched streams

`stream start` captures through tsc-core's Streamer: `--synthetic` (or
`--source synthetic`) is the moving test pattern with a tone, `--source
x11[:N]`, `screen[:N]`, `window:<id>` or `portal` capture the desktop,
`--bitrate` sets the encoder and setupstream. `stream watch` decodes the
video, counts decoded pictures for `--expect-frames` and can save the
last one with `--save-frame out.png`. Offers carry the codec we encode
and answers accept what we decode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
Claude committed 2026-09-26 10:19:47 +00:00
1 parent fe7b79940b
commit 4add67d89b
4 files changed
+203 -43

No files matched your search

+3
View File
@@ -14,6 +14,7 @@ base64 = "0.22"
clap = { version = "4", features = ["derive", "env"] }
dirs = "6"
futures = "0.3"
png = "0.18"
serde_json = "1"
tokio = { version = "1", features = ["io-std", "io-util", "macros", "rt-multi-thread", "signal", "time"] }
tracing = "0.1"
@@ -24,6 +25,8 @@ tsc-model = { path = "../../crates/tsc-model" }
tsc-query = { path = "../../crates/tsc-query" }
tsc-observer = { path = "../../crates/tsc-observer" }
tsc-audio = { path = "../../crates/tsc-audio", default-features = false }
# The stream media pipeline (capture, VP8, decoding), without audio devices.
tsc-core = { path = "../../crates/tsc-core", default-features = false, features = ["media"] }
tsc-stream = { path = "../../crates/tsc-stream" }
tokio-tungstenite = "0.30"
futures-util = "0.3.34"