harlanc / xiu

A simple,high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS).🦀
https://www.rustxiu.com
MIT License
1.6k stars 168 forks source link

Stream RTSP directly from xiu #93

Closed thewh1teagle closed 1 month ago

thewh1teagle commented 5 months ago

Can I stream rtsp directly from xiu by passing path to video file? Or alternatively, use ffmpeg to read frames and push them into xiu via stdin?

The goa: I want to simplify the server starting.

harlanc commented 5 months ago

Reading a video file directly and stream out it as a RTSP stream by xiu? No, it's not supported now..

thewh1teagle commented 5 months ago

@harlanc Do you think it's useful feature? compared to simply using loopback network as now?

harlanc commented 5 months ago

I'm not entirely sure in what scenarios this feature is used, but it definitely brings convenience to you. However, I apologize as I am only maintaining this project in my spare time, which is limited. So, I want to focus my time on developing the most basic and common functionalities. I think you can implement this feature yourself, which shouldn't be too difficult. You can parse a file to obtain audio and video frame data, publish it to StreamHub, and subscribe to the RTSP event to receive the audio and video frames for distribution to the player. If you need any further assistance, feel free to continue the conversation.