gortmplib

May 20, 2026 · View on GitHub

Test Lint Go Report Card CodeCov PkgGoDev

RTMP client and server library for the Go programming language, forked from MediaMTX.

This was created to provide Enhanced RTMP features, like multiple video/audio tracks and additional codecs.

Go ≥ 1.25 is required.

Features:

  • Read and write multiple video and audio tracks
  • Read and write tracks encoded with AV1, VP9, H265, H264, Opus, FLAC, MPEG-4 Audio (AAC), MPEG-1/2 Audio (MP3), AC-3, G711 (PCMA, PCMU), LPCM
  • Support most Enhanced RTMP features
  • Support TLS encryption (RTMPS)
  • Support Diffie-hellman based encryption (RTMPE)
  • Support encoding and decoding data with the AMF0 format

WARNING: API is not stable and might be subjected to breaking changes.

Table of contents

Examples

API Documentation

Click to open the API Documentation

Specifications

namearea
Action Message Format - AMF0RTMP
FLVRTMP
RTMPRTMP
Enhanced RTMP v2RTMP
Codec specificationscodecs
Golang project layoutproject layout