Skip to content

librtmp2-server 0.6.8

Choose a tag to compare

@github-actions github-actions released this 01 Nov 22:58
3d108fc

Fixed

  • A publisher that keeps sending media is no longer dropped for not
    answering RTMP pings (librtmp2 0.16.1). The DJI Osmo Pocket 3 never sends
    a ping response and was disconnected after about 15 seconds of streaming.
  • The release benchmark run measures the compared servers again. On the
    Ubuntu 26.04 runners their binary paths no longer reached the sweep, so
    the v0.6.7 release record only contains librtmp2-server.
  • The GitHub release body keeps the generated pull request list and compare
    link below the CHANGELOG section.
  • After a cluster node recovers from isolation, it reacquires ownership of
    its streams at a fresh epoch and re-stamps its local publishers, so their
    exported frames are no longer fenced by receivers. A claim whose
    publisher closed in the meantime is released again.
  • A local admission refusal no longer forces a local publisher off; only a
    real ownership conflict does.
  • A superseded join proof is spent right away, and a failed ownership or
    publisher read no longer triggers destructive cleanup.
  • The streams API reports a storage failure instead of returning an empty
    list, keeps the status of rejected requests, and answers a cluster write
    timeout with a retryable error.
  • Stats output drops code points that are not valid in XML, and older
    databases get the rtt_ms columns migrated.
  • Failed session inserts are logged, rapid stream switches are debounced,
    and the media-output path no longer looks up the database for every
    frame.
  • IPv6 pre-auth slots are keyed by /64, the cluster control read limit
    matches what the writer sends, and an invalid per-IP cap override keeps
    the configured cap.
  • The benchmark sweep does not publish incomplete join legs or legs with
    zero frames per viewer, retries its final rebase, and rejects a warmup
    that covers the whole run.

Changed

  • Built on librtmp2 0.16.1. Besides the ping fix above, a peer that keeps
    sending but stops reading what the server sends is now closed after
    10 seconds without any of its queued output going out.
  • Dependency update: openssl 0.10.82 (openssl-sys 0.9.118).

What's Changed

Full Changelog: v0.6.7...v0.6.8

Benchmarks

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

  • Measured: 2026-11-01 23:14:17 UTC · 3d108fc · crate version 0.6.8 · workflow run
  • Built on: librtmp2 0.16.1
  • CPU: AMD EPYC 9V45 96-Core Processor · 4 vCPUs
  • RAM: 15.6 GiB
  • System: Linux 7.0.0-1017-azure x86_64 · rustc 1.99.1 · GitHub-hosted ubuntu26 (image 20261026.180.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.6.7: ❌ different hardware (AMD EPYC 7763 64-Core Processor, 4 vCPUs vs AMD EPYC 9V45 96-Core Processor, 4 vCPUs): only large changes (> 25 %) mean anything

http_api

Benchmark Time Throughput vs release v0.6.7
http_api/create_stream 126.90 µs — 🟢 −54.5 %
http_api/health 84.37 µs — 🟢 −49.4 %
http_api/list_streams 6.1 ms — 🟢 −48.4 %

🟢 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.6.8 (librtmp2 0.16.1) · MediaMTX v1.21.3 · LiveForge main @ a93fa22 · SRS v8.0-d2 · nginx-rtmp nginx 1.31.8 (nginx-rtmp-module @ 6c7719d)

librtmp2-server vs the baselines
Metric Now vs release v0.6.7
publish handshakes/s 11,292 🟢 +79.2 %
publish handshake avg (ms) 2.17 🟢 −40.4 %
publish handshake p95 (ms) 4.66 🟢 −36.2 %
play handshakes/s 10,942 🟢 +76.5 %
play handshake avg (ms) 2.10 🟢 −43.1 %
play handshake p95 (ms) 5.17 ⚪ −21.8 %
join, 1 viewer: avg (ms) 0.45 ⚪ −18.2 %
join, 1 viewer: p95 (ms) 0.45 ⚪ −18.2 %
join, 25 viewers: avg (ms) 1.18 🟢 −52.8 %
join, 25 viewers: p95 (ms) 1.70 🟢 −49.3 %
join, 100 viewers: avg (ms) 2.12 🟢 −51.3 %
join, 100 viewers: p95 (ms) 4.96 🟢 −46.6 %
load, 500 viewers: join avg (ms) 24.75 ⚪ −4.6 %
load, 500 viewers: join p95 (ms) 48.33 ⚪ −18.1 %
load, 500 viewers: frames/viewer 73.67 ⚪ −0.0 %
load, 500 viewers: CPU (% of one core) 27.50 🟢 −25.9 %
load, 500 viewers: peak RSS (MiB) 24.00 ⚪ +3.0 %
load, 1000 viewers: join avg (ms) 34.67 ⚪ +2.4 %
load, 1000 viewers: join p95 (ms) 74.79 ⚪ −19.9 %
load, 1000 viewers: frames/viewer 73.65 ⚪ +0.0 %
load, 1000 viewers: CPU (% of one core) 54.30 🟢 −25.4 %
load, 1000 viewers: peak RSS (MiB) 34.20 ⚪ +4.3 %
load, 2000 viewers: join avg (ms) 39.54 🟢 −63.8 %
load, 2000 viewers: join p95 (ms) 129.5 🟢 −49.2 %
load, 2000 viewers: frames/viewer 73.65 ⚪ −0.2 %
load, 2000 viewers: CPU (% of one core) 103.5 ⚪ −20.3 %
load, 2000 viewers: peak RSS (MiB) 54.00 ⚪ +3.3 %
Handshake latency
Server publish /s avg ms p95 p99 play /s avg ms p95 p99
librtmp2-server 11,292 2.17 4.66 5.48 10,942 2.10 5.17 5.91
MediaMTX 9,581 2.70 4.37 5.10 6,836 3.92 7.29 8.40
LiveForge 11,242 2.28 3.84 4.59 7,006 3.55 7.09 8.46
SRS 596.8 47.84 50.68 50.77 650.0 44.55 46.50 47.67
nginx-rtmp 706.6 41.75 43.09 43.36 357.8 83.05 84.16 84.32
Join latency (avg / p95 ms)
Server 1 viewer 25 viewers 100 viewers
librtmp2-server 0.45 / 0.45 1.18 / 1.70 2.12 / 4.96
MediaMTX 0.66 / 0.66 1.77 / 3.22 6.04 / 9.34
LiveForge 0.56 / 0.56 4.48 / 8.31 11.68 / 20.19
SRS 42.13 / 42.13 44.52 / 45.81 53.41 / 59.80
nginx-rtmp 81.57 / 81.57 83.46 / 84.72 83.84 / 86.39
Many viewers on one stream
Viewers Server join avg / p95 ms CPU % (one core) peak RSS MiB frames/viewer
500 librtmp2-server 24.75 / 48.33 27.50 24.00 73.67
500 MediaMTX 29.73 / 50.92 73.40 101.9 73.60
500 LiveForge 88.12 / 142.0 48.20 90.90 73.56
500 SRS 109.8 / 136.6 4.30 99.00 73.08
500 nginx-rtmp 94.23 / 106.7 42.30 21.30 73.56
1000 librtmp2-server 34.67 / 74.79 54.30 34.20 73.65
1000 MediaMTX 73.78 / 185.7 147.6 148.7 73.59
1000 LiveForge 138.5 / 288.6 90.10 145.9 73.57
1000 SRS 223.3 / 267.1 8.50 142.1 73.07
1000 nginx-rtmp 109.7 / 140.0 84.80 27.20 73.57
2000 librtmp2-server 39.54 / 129.5 103.5 54.00 73.65
2000 MediaMTX 185.4 / 308.8 210.0 351.0 72.43
2000 LiveForge 490.4 / 1,333 168.1 265.6 73.50
2000 SRS 487.7 / 1,124 19.60 225.5 73.40

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