Skip to content

librtmp2 0.17.1

Choose a tag to compare

@github-actions github-actions released this 12 Nov 01:13

Fixed

  • Enhanced AAC sequence headers are validated like legacy ones before they
    replace the cached AudioSpecificConfig. A malformed enhanced mp4a record
    can no longer evict a valid header and be replayed to late joiners; the
    regression test covers both framings.
  • Legacy FLV VideoInfo/Command frames (frame type 5) are recognised as
    commands instead of being cached as AVC keyframes. 0x57 0x01 is no
    longer dropped under congestion, and the per-frame callback reports no
    codec identity for it. An enhanced Metadata packet that uses frame type 5
    keeps its FourCC and codec identity.
  • The spec-defined zero-length audio silence message is accepted. A server
    with an on_media_cb (librtmp2-server always installs one) treated it as
    an unknown codec and closed the publisher. It is reported as silence
    without pinning the detected codec, stays critical under congestion, and
    counts toward publisher liveness. Aggregate parsers accept an empty audio
    sub-tag, while empty video and data tags stay invalid.
  • An unpeeled ModEx chain is no longer classified as a VideoCommand and can
    no longer bypass the multitrack relay gate; opaque wrappers are handled
    conservatively at fan-out. Legacy G.711U audio (0x87) also stays out of
    the ModEx gate.
  • A server driven through poll_ready/process_connections_ready no longer
    skips receive while OpenSSL has decrypted bytes waiting, so an RTMPS
    handshake or command cannot stall until the kernel socket becomes readable
    again.

Changed

  • CI workflows pin third-party GitHub Actions to commit SHAs.

Benchmarks

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

  • Measured: 2026-11-12 01:15:46 UTC · 77166ca · crate version 0.17.1 · workflow run
  • CPU: INTEL(R) XEON(R) PLATINUM 8573C · 4 vCPUs
  • RAM: 15.6 GiB
  • System: Linux 7.0.0-1019-azure x86_64 · rustc 1.99.1 · GitHub-hosted ubuntu26 (image 20261101.186.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.0: ❌ different hardware (AMD EPYC 7763 64-Core Processor, 4 vCPUs vs INTEL(R) XEON(R) PLATINUM 8573C, 4 vCPUs): only large changes (> 25 %) mean anything

protocol

Benchmark Time Throughput vs release v0.17.0
amf0_build_connect 203 ns — ⚪ −0.8 %
chunk/write_read_roundtrip 4.53 µs ~862 MiB/s ⚪ −16.2 %
flv/audio_tag_aac 1.09 ns — ⚪ −12.2 %
flv/video_tag_h264 1.09 ns — ⚪ −12.5 %
fourcc_to_video_codec_avc1 2.08 ns — ⚪ −4.5 %
server_read_c1 911 ns — ⚪ −3.5 %

relay

Benchmark Time Throughput vs release v0.17.0
relay/publish_to_player/100 51.3 ms ~1948 elem/s ⚪ +0.1 %
relay/publish_to_player/500 52.8 ms ~9462 elem/s ⚪ −0.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.