2025-12-27 03:06:51 +01:00
2025-12-26 23:37:04 +01:00
2025-12-27 02:37:09 +01:00
2025-12-27 03:06:51 +01:00
2025-12-26 21:58:16 +01:00
2025-12-26 22:52:08 +01:00
2025-12-27 02:37:09 +01:00
2025-12-27 00:24:46 +01:00
2025-12-27 00:24:46 +01:00

rtmp-cpp

Build Status

A lightweight C++ RTMP server library with C-compatible API.

Features

  • Full RTMP protocol implementation (handshake, chunking, AMF0)
  • Supports publish and play streams
  • Callbacks for connect, publish, play, audio/video data, disconnect
  • GOP cache for low-latency playback
  • FLV file recording
  • Authentication callback
  • Stream statistics (bitrate, frames, uptime)
  • Connection limits, timeouts, ping/pong

Roadmap

You can View the Roadmap Here.

Quick Start

Build

./build.sh

This builds librtmp.so and example binary rtmp_example.

Windows Support

Windows Support has been added in the branch windows-support

Run Example

./build/rtmp_example

Server listens on rtmp://localhost:1935/live/stream

Test with OBS:

  • Server: rtmp://127.0.0.1/live
  • Stream key: stream

Or FFmpeg:

ffmpeg -re -i input.mp4 -c copy -f flv rtmp://127.0.0.1/live/stream

License

MIT

Description
A Lightweight C++ RTMP Server
Readme MIT 76 KiB
Languages
C++ 96.5%
C 2.6%
CMake 0.8%