Skip to content

librtmp2-server 0.8.2

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 22:32

Changed

  • Dependency bump: librtmp2 0.17.3 -> 0.17.4. That release fixes receive-path
    behaviour the server relies on: an aggregate is charged once against the
    per-recv message budget and an unprocessed tail is kept instead of failing
    the connection, and the staging cap follows a raised max_msg_length. No
    public signature change, so no server code changes.

Fixed

  • A DELETE that fails before the durable begin no longer disconnects live
    publishers/players; the stream is enrolled in the RTMP drain only after the
    begin commits or its outcome is ambiguous.
  • An ambiguous FinalizeDeleteStream is no longer reported as a definite 500
    and no longer rolls back a row that may already be gone; the synchronous
    path answers 202 and reconciles in the background.
  • The terminal delete fallback retries the identity-fenced begin; only if that
    fails does it disable the row, and that last write now leaves
    pending_delete untouched so a restart can still finish the accepted delete.
    A replacement stream is never marked pending.

What's Changed

  • chore(deps): update sonarsource/sonarqube-scan-action action to v8.5.1 by @renovate[bot] in #396
  • fix(http): report leaderless cluster writes as retryable 503 by @AlexanderWagnerDev in #397
  • chore(deps): update rust crate sha2 to v0.11.2 by @renovate[bot] in #398
  • chore(deps): update taiki-e/install-action action to v2.90.9 by @renovate[bot] in #399
  • chore(deps): update taiki-e/install-action action to v2.90.10 by @renovate[bot] in #400
  • chore(deps): update taiki-e/install-action action to v2.90.11 by @renovate[bot] in #401
  • fix(deps): update rust crate openraft to v0.10.2 by @renovate[bot] in #402
  • fix(deps): update rust crate openraft-legacy to v0.10.2 by @renovate[bot] in #404
  • chore(deps): update softprops/action-gh-release action to v3.0.5 by @renovate[bot] in #403
  • chore(deps): optimize Renovate and Dependabot coverage by @AlexanderWagnerDev in #407
  • chore(deps): update taiki-e/install-action action to v2.90.12 (main) by @renovate[bot] in #408
  • fix(delete): keep live sessions on a failed begin and reconcile ambiguous finalize by @AlexanderWagnerDev in #406

Full Changelog: v0.8.1...v0.8.2

Benchmarks

Measured automatically for this release on a CI runner; the machine is described below. Raw data: bench-results-v0.8.2.json.

  • Measured: 2026-12-01 22:44:10 UTC · 0488c8f · crate version 0.8.2 · workflow run
  • Built on: librtmp2 0.17.4
  • CPU: AMD EPYC 9V74 80-Core Processor · 4 vCPUs
  • RAM: 15.6 GiB
  • System: Linux 7.0.0-1020-azure x86_64 · rustc 1.100.1 · GitHub-hosted ubuntu26 (image 20261122.9.1)
  • Noise: shared CI VM — CPU model, neighbouring load and the runner image change between runs, so treat absolute numbers as indicative.
  • Comparable vs release v0.8.1: ❌ different hardware (Intel(R) Xeon(R) 6975P-C, 4 vCPUs vs AMD EPYC 9V74 80-Core Processor, 4 vCPUs): only large changes (> 25 %) mean anything

http_api

Benchmark Time Throughput vs release v0.8.1
http_api/create_stream 263.32 µs — 🔴 +63.8 %
http_api/health 134.61 µs — 🔴 +50.0 %
http_api/list_streams 10.3 ms — 🔴 +28.7 %

🟢 faster · 🔴 slower · ⚪ within the noise band (5–25 % depending on how comparable the two environments are, plus both runs' Criterion confidence intervals). Lower time is better.

Cross-server sweep

Same RTMP client and ffmpeg source for every server, one server at a time: load viewers 500 1000 2000, publisher ffmpeg 1280x720@30 H.264 2.5 Mbps + AAC 128 kbps. One sweep per run, no repetitions — the shared runner makes single values noisy, so compare servers within this run rather than across runs.

Servers: librtmp2-server 0.8.2 (librtmp2 0.17.4) · MediaMTX v1.21.4 · nginx-rtmp nginx 1.31.8 (nginx-rtmp-module @ 6c7719d)

librtmp2-server vs the baselines
Metric Now vs release v0.8.1
publish handshakes/s 6,736 🔴 −53.1 %
publish handshake avg (ms) 3.46 🔴 +126.1 %
publish handshake p95 (ms) 7.96 🔴 +168.9 %
play handshakes/s 5,906 🔴 −50.9 %
play handshake avg (ms) 3.60 🔴 +103.4 %
play handshake p95 (ms) 6.96 🔴 +85.6 %
join, 1 viewer: avg (ms) 0.58 ⚪ +16.0 %
join, 1 viewer: p95 (ms) 0.58 ⚪ +16.0 %
join, 25 viewers: avg (ms) 2.40 🔴 +41.2 %
join, 25 viewers: p95 (ms) 3.47 🔴 +51.5 %
join, 100 viewers: avg (ms) 3.81 ⚪ +21.3 %
join, 100 viewers: p95 (ms) 7.15 ⚪ +15.0 %
load, 500 viewers: join avg (ms) 24.40 ⚪ −0.5 %
load, 500 viewers: join p95 (ms) 57.02 ⚪ +20.7 %
load, 500 viewers: frames/viewer 73.67 ⚪ −0.0 %
load, 500 viewers: CPU (% of one core) 35.90 🔴 +65.4 %
load, 500 viewers: peak RSS (MiB) 23.50 ⚪ −2.9 %
load, 1000 viewers: join avg (ms) 33.31 🔴 +47.5 %
load, 1000 viewers: join p95 (ms) 79.53 🔴 +46.5 %
load, 1000 viewers: frames/viewer 73.63 ⚪ −0.0 %
load, 1000 viewers: CPU (% of one core) 73.60 🔴 +64.3 %
load, 1000 viewers: peak RSS (MiB) 33.40 ⚪ +0.0 %
load, 2000 viewers: join avg (ms) 106.8 🔴 +50.9 %
load, 2000 viewers: join p95 (ms) 205.8 ⚪ +24.0 %
load, 2000 viewers: frames/viewer 73.67 ⚪ +0.0 %
load, 2000 viewers: CPU (% of one core) 128.5 🔴 +44.4 %
load, 2000 viewers: peak RSS (MiB) 54.30 ⚪ −1.6 %
Handshake latency
Server publish /s avg ms p95 p99 play /s avg ms p95 p99
librtmp2-server 6,736 3.46 7.96 8.99 5,906 3.60 6.96 10.14
MediaMTX 4,896 5.23 8.85 11.62 4,468 5.26 10.78 12.20
nginx-rtmp 683.9 42.74 44.29 44.81 350.1 83.91 86.03 86.88
Join latency (avg / p95 ms)
Server 1 viewer 25 viewers 100 viewers
librtmp2-server 0.58 / 0.58 2.40 / 3.47 3.81 / 7.15
MediaMTX 0.87 / 0.87 2.98 / 5.46 6.14 / 9.66
nginx-rtmp 82.36 / 82.36 84.54 / 86.12 86.42 / 89.10
Many viewers on one stream
Viewers Server join avg / p95 ms CPU % (one core) peak RSS MiB frames/viewer
500 librtmp2-server 24.40 / 57.02 35.90 23.50 73.67
500 MediaMTX 64.06 / 124.1 102.9 96.50 73.59
500 nginx-rtmp 104.1 / 119.6 57.10 21.50 73.59
1000 librtmp2-server 33.31 / 79.53 73.60 33.40 73.63
1000 MediaMTX 110.2 / 216.3 193.4 161.8 73.65
1000 nginx-rtmp 166.1 / 253.6 87.30 27.40 58.33
2000 librtmp2-server 106.8 / 205.8 128.5 54.30 73.67
2000 MediaMTX 477.8 / 1,246 190.4 290.3 37.26

A competitor delivering fewer frames per viewer than the others was overloaded at that step (the delivered rate, not just latency, is the result).