Skip to content

librtmp2 0.17.2

Choose a tag to compare

@github-actions github-actions released this 21 Nov 22:50

Fixed

  • A fmt=3 chunk that starts a new message uses the extended timestamp value
    when present. ffmpeg carries the actual delta there for deltas >=
    0xFFFFFF; the reader previously advanced by the previous delta and jumped
    the timeline. Registry re-initialization now discards the previous session's
    per-CSID state, and a fragmented extended-timestamp message keeps its
    timestamp across continuation chunks.
  • Reserved legacy video codec nibbles are no longer cached as keyframes.
    Codecs 8 (RealH263) and 9 (MPEG-4 Part 2) remain cacheable because ffmpeg
    emits them in the wild.
  • The generic aggregate decoder rejects zero-length video/data sub-tags,
    matching the session path; zero-length audio is still the RTMP silence
    message.
  • The client always advertises the E-RTMP multitrack capability and claims
    reconnect only when a reconnect callback is installed. The capsEx mask used
    to be sent only for reconnect support and omitted the multitrack bit, so a
    v2 server dropped every multitrack frame for this client. A force-released
    publish route now clears the publish role and restarts the setup timer, so
    a displaced publisher that keeps sending is reaped instead of pinning its
    connection slots.
  • Every sub-track of an admitted multitrack message reaches the frame
    callback. The poll budget was re-checked per sub-track and silently skipped
    the tail once it was used up; MAX_MULTITRACK_SUBTRACKS still bounds the
    work. A same-route republish after media gets a fresh media window;
    cycling without media keeps the prior deadline.
  • A FourCC list or video FourCC info map whose public count exceeds the
    entry arrays is clamped in the AMF and binary writers and in the
    negotiation reader, instead of panicking on an out-of-bounds index.

Changed

  • Debian packaging uses the non-native quilt source format, loads the
    vendored source archive from debian/ and uses the standard 1 revision.
    PPA builds default to Ubuntu 26.04 LTS and 26.10, and release tags from
    before the quilt switch can still be republished.
  • The play interop CI test runs the librtmp2 client against MediaMTX v1.21.4
    (was v1.21.3).
  • Build dependency update: cc 1.11.3.

Benchmarks

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

  • Measured: 2026-11-21 22:52:17 UTC · 9da3e91 · crate version 0.17.2 · workflow run
  • CPU: AMD EPYC 7763 64-Core Processor · 4 vCPUs
  • RAM: 15.6 GiB
  • System: Linux 7.0.0-1020-azure x86_64 · rustc 1.100.0 · GitHub-hosted ubuntu26 (image 20261116.202.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.17.1: ❌ different hardware (INTEL(R) XEON(R) PLATINUM 8573C, 4 vCPUs vs AMD EPYC 7763 64-Core Processor, 4 vCPUs): only large changes (> 25 %) mean anything

protocol

Benchmark Time Throughput vs release v0.17.1
amf0_build_connect 211 ns — ⚪ +4.1 %
chunk/write_read_roundtrip 5.32 µs ~735 MiB/s ⚪ +17.3 %
flv/audio_tag_aac 1.25 ns — ⚪ +14.1 %
flv/video_tag_h264 1.25 ns — ⚪ +14.4 %
fourcc_to_video_codec_avc1 2.80 ns — 🔴 +34.5 %
server_read_c1 936 ns — ⚪ +2.7 %

relay

Benchmark Time Throughput vs release v0.17.1
relay/publish_to_player/100 51.4 ms ~1946 elem/s ⚪ +0.1 %
relay/publish_to_player/500 53.4 ms ~9361 elem/s ⚪ +1.1 %

🟢 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.