harlanc / xiu

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

Does xiu support RTSP source authenticated by password? #149

Closed sunnysab closed 2 weeks ago

sunnysab commented 2 weeks ago

您好,感谢您开发了这个项目。我对流媒体相关的软件了解较少,当前要解决的问题是:我有一组(百来个)RTSP 视频流,我想按需地将其转为 HLS 或 WebRTC(用于浏览器上直播)。

我不知道如何填写 RTSP 流的用户名和密码,xiu 支持这样做吗?

Hello, thank you for developing this project. I know little about streaming media-related software, and the current problem I want to solve is: I have a set of (hundreds of) RTSP video streams, and I want to convert them to HLS or WebRTC on demand (for live streaming on the browser).

I don't know how to fill in the username and password for the RTSP stream, does xiu support this?

$ curl -X POST -H "Content-Type: application/json" -d '{
                           "id" : "3_86",
                           "identifier": {
                                      "rtsp": {
                                         "stream_path": "/"
                                      }
                                  },
                            "server_address":"192.168.3.86:554",
                            "relay_type":"Pull"
                      }' http://localhost:8000/api/start_relay_stream
{"error_code":-1,"desp":"failed","data":"send error"}
sunnysab commented 2 weeks ago

我在 文档 中发现了鉴权的方式,问题已解决。由于之前不太想用配置文件操作,所以忽视了这一部分文档,很抱歉!

I found it in document and the problem has been solved. Since I didn’t really want to use configuration files before, I ignored this part of the document. I’m sorry!