README 未给出启动命令与默认端口,需查阅官方文档;HLS 录制与协议转换需在配置文件中开启;集群与 token 鉴权需额外配置
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).🦀
纯 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 查询流信息与状态通知
容易踩的坑
- 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
- 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.
- 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.
- 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.
- 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.
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
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
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.