Skip to content
Projetos

Sobre

Um servidor de mídia ao vivo simples, de alto desempenho e seguro, escrito inteiramente em Rust (SRT/RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS).🦀

Design e mídia

Como estes números são medidos

O que você pode fazer

  • Support multiple platforms (Linux/macOS/Windows).
  • Support publishing or subscribing H.264/H.265/AAC streams.
  • Support GOP cache (zero-copy GopRingBuffer) for instant playback.
  • Support protocol conversion from RTMP to RTSP/WebRTC/SRT/HTTP-FLV/HLS.

Crescimento medido de estrelas

em 24 h
0
em 7 dias
+1
em 15 dias
+2
em 1 mês
+7

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

XIUcrates.io crates.io RTMPcrates.io crates.io RTSPcrates.io crates.io WEBRTCcrates.io crates.io SRTcrates.io crates.io HTTPFLVcrates.io crates.io HLScrates.io crates.io FLVcrates.io crates.io MPEGTScrates.io crates.io wechat

English Doc 中文文档

Sponsors

We would like to thank the following sponsors for their support of this project.

Recall.ai - API for meeting recordings

If you’re looking for a meeting recording API, consider checking out Recall.ai, an API that records Zoom, Google Meet, Microsoft Teams, in-person meetings, and more.

Overview

Xiu is a simple, high-performance, and secure live media server written in pure Rust powered by a zero-copy microkernel. It supports popular live protocols including RTMP, RTSP, WebRTC (WHIP/WHEP), SRT, HLS, and HTTP-FLV, with seamless cross-protocol remuxing.

Protocol Conversion Matrix

Rows are input (ingest) protocols and columns are output (egress) protocols. Powered by the zero-copy xiu-core microkernel, all ingest protocols can be remuxed to any egress protocol (with automatic on-demand Opus ↔ AAC audio transcoding when audio-transcode is enabled):

Input \ Output RTMP RTSP WebRTC (WHEP) SRT HTTP-FLV HLS
RTMP ✅ ✅ ✅ ✅ ✅ ✅
RTSP ✅ ✅ ✅ ✅ ✅ ✅
WebRTC (WHIP) ✅ ✅ ✅ ✅ ✅ ✅
SRT ✅ ✅ ✅ ✅ ✅ ✅

Features

  • Support multiple platforms (Linux/macOS/Windows).
  • Support RTMP.
    • Support publishing or subscribing H.264/H.265/AAC streams.
    • Support GOP cache (zero-copy GopRingBuffer) for instant playback.
    • Support protocol conversion from RTMP to RTSP/WebRTC/SRT/HTTP-FLV/HLS.
    • Support cluster relay (static push & pull).
  • Support RTSP.
    • Support publishing or subscribing H.265/H.264/AAC/Opus streams over both TCP (Interleaved) and UDP.
    • Support protocol conversion from RTSP to RTMP/WebRTC/SRT/HLS/HTTP-FLV.
  • Support WebRTC (WHIP/WHEP).
    • Support publishing RTC streams using WHIP.
    • Support subscribing RTC streams using WHEP.
    • Support on-demand audio transcoding (Opus ↔ AAC) and cross-protocol conversion to/from RTMP/RTSP/SRT/HLS/HTTP-FLV.
  • Support SRT (Pure Safe Rust Live SRT).
    • Support publishing and subscribing MPEG-TS over SRT (Caller/Listener with StreamID routing).
    • Support AES encryption via passphrase (pbkeylen: 16/24/32) and configurable latency.
    • Support cross-protocol conversion to/from RTMP/RTSP/WebRTC/HTTP-FLV/HLS.
  • Support HTTP-FLV/HLS protocols (on-demand and eager recording modes).
  • Support configuring the service using command line or a v2 TOML configuration file.
  • Support HTTP API and webhook notifications (on_publish, on_unpublish, on_play, on_stop, on_hls).
  • Support token authentication.
  • Support recording live streams into HLS files (m3u8 + ts).

Contributors

Thanks for their contributions!

Star History

Thanks

Others

Open issues if you have any problems. Star and pull requests are welcomed. Your stars can make this project go faster and further.

Explore projetos relacionados

Carregando…