rtmp-rs

published

Async RTMP server and client for Rust on Tokio, with Enhanced RTMP v2, a GOP cache, and backpressure that drops video before audio.

RustTokioRTMPcrates.io
View on GitHub

rtmp-rs is an async RTMP server and client for Rust, built on Tokio. Use it to ingest live streams from OBS or FFmpeg, relay them to viewers, pull a stream from another server, or publish to YouTube, Twitch, and other RTMPS endpoints. It supports legacy RTMP (H.264 and AAC) as well as Enhanced RTMP v2 with HEVC, AV1, VP9, Opus, and FLAC.

The server accepts what real encoders send. Empty app names, timestamp regressions, and other quirks are tolerated instead of dropping the connection. A GOP cache gives late joiners a keyframe right away, and slow subscribers lose video frames before they lose audio.

Available on crates.io.

0

Nothing written up yet.