xiu

harlancMIT活跃维护

纯 Rust 实现的高性能安全直播流媒体服务器,支持 RTMP 集群、RTSP、WebRTC、HTTP-FLV 和 HLS,适合自建低延迟直播推流与分发服务。

A simple,high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS).🦀

v0.14.0发布于 2026-10-16 23:45 UTC2,337star240fork同步于 2026-11-10 23:45 UTC

怎么上手

由 README 提炼,执行前请确认
cargo install xiu
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

纯 Rust 实现的高性能安全直播媒体服务器,支持 RTMP、RTSP、WebRTC、HLS、HTTP-FLV 多协议互转

纯 Rust 实现的高性能安全直播流媒体服务器,支持 RTMP 集群、RTSP、WebRTC、HTTP-FLV 和 HLS,适合自建低延迟直播推流与分发服务。

核心能力

  • 支持 RTMP 推拉流与集群部署
  • 支持 RTSP 的 TCP/UDP 推拉流
  • 用 Whip/Whep 收发 WebRTC 流
  • RTMP/RTSP/WHIP 可转 HLS 与 HTTP-FLV
  • 提供 HTTP API 查询流信息与状态通知

容易踩的坑

README 未给出启动命令与默认端口,需查阅官方文档;HLS 录制与协议转换需在配置文件中开启;集群与 token 鉴权需额外配置

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v0.14.0
  1. v0.14.0最新正式版2026-10-16 · 2026-10-16 23:45 UTC
    • Feat: add rtmp client session timeout option. @vaptu
    • Fix: fix local config dependencies @Morb0
    • Feat: Add content types for HLS playlist & segments.Add HLS path parsing for security (countering path traversal attacks). @akadan47
    • Fix: rtsp udp remote address fix @huiminghao
    • Feat: enable LTO and codegen-units = 1 optimization @zamazan4ik
    • Fix: fix(rtp_h264): solve rtsp adding overflow; fix(rtp_aac): fix rtp seq_number overflow of the audio stream @feiyangyy
    • Feat: add some common params for hls module. @nikitos
    • Feat: add on_hls notification hook. @nikitos
    • Feat: forcibly disconnect (“kick”) a publishing client via the stream hub when an HTTP notify hook fails. @nikitos
    • Feat: add STRICT_ARRAY support. @nikitos
    • Feat: support Amazon S3 storage for HLS TS segments. @nikitos
    • Fix: fix GOP cache memory leak for audio-only streams. @rlustin
    • Fix: Log actual TcpListener local addresses for clarity. @DOCtorActoAntohich
  2. v0.13.02024-08-11 · 2024-08-11 01:09 UTC
    查看更新说明
    • Feat: Abstract streamhub message notifications. by @karaler
    • Feat: Add optional push_password for simple authentication. by @Ceron257
    • Feat: Implement Authorization header support for WebRTC. by @Ceron257
    • Fix: rust 1.80 dependency breakage #145. by @cafkafk
    • Fix: XIU cannot receive RTSP stream published by gstreamer #135
    • Feat: Support Rtsp pull client logic, and you can pull a remote RTSP stream using HTTP API to XIU now.
  3. v0.12.72024-05-17 · 2024-05-17 23:32 UTC
    查看更新说明
    • Fix: RTMP publish single AAC from ffmpeg client. by @suzp1984
    • Fix: RTMP Auth failing due to empty string query string in packet. by @radiohertz
    • Improve: the xiu application README for new beginners. by @suzp1984
    • Fix: the xiu application version.
  4. v0.12.62024-04-03 · 2024-04-03 11:38 UTC
    查看更新说明
    • Fix bug that the whip stream can not be established successfully #111.
    • Fix the issue of not correctly recognizing Opus encoding parameters.
    • Fix the issue of not being able to read HTTP resources when pulling streams using the WHEP.
  5. v0.12.52024-03-15 · 2024-03-15 16:41 UTC
    查看更新说明
    • Support querying more detailed statistic data by adding two new HTTP APIs.
    • Fix publishing RTSP stream error caused by network problem. by @bailb
    • Fix the bug that stopping the playback of RTSP stream leads to push(publish) failure.
    • Upgrade failure library.

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    XIUcrates.io crates.io RTMPcrates.io crates.io RTSPcrates.io crates.io WEBRTCcrates.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, it now supports popular live protocols like RTMP[cluster]/RTSP/WebRTC[Whip/Whep]/HLS/HTTP-FLV.

    Features

    • Support multiple platforms(Linux/MacOS/Windows).
    • Support RTMP.
      • Support publishing or subscribing H.264/AAC streams.
      • Support GOP cache which can be configured in the configuration file.
      • Support protocol conversion from RTMP to HTTP-FLV/HLS.
      • Support cluster.
    • Support RTSP.
      • Support publishing or subscribing H.265/H.264/AAC stream over both TCP(Interleaved) and UDP.
      • Support protocol conversion from RTSP to RTMP/HLS/HTTP-FLV.
    • Support WebRTC(Whip/Whep).
      • Support publishing rtc stream using Whip.
      • Support subscribing rtc stream using Whep.
      • Support protocol conversion from WHIP to RTMP/HLS/HTTP-FLV.
    • Support HTTP-FLV/HLS protocols(Transferred from RTMP/RTSP).
    • Support configuring the service using command line or a configuration file.
    • Support HTTP API/Notifications.
      • Support querying stream information.
      • Support notification of stream status.
    • Support token authentications.
    • Support recording live streams into HLS files(m3u8+ts).

    Contributors

    Thanks for their contributions!

    Star History

    Star History Chart

    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.