ossrs / oryx

Oryx(SRS Stack) is an all-in-one, out-of-the-box, and open-source video solution for creating online video services, including live streaming and WebRTC, on the cloud or through self-hosting.
https://ossrs.io/oryx
MIT License
448 stars 97 forks source link

Cant play SRT url link in VLC #186

Closed gasguti closed 1 week ago

gasguti commented 1 month ago

Describe the bug Im using SRT with OBS, the problem is I cant play the SRT URL in VLC, but the other links HTTP-FLV stream, HLS stream, webrtc works fine. The url is srt://64.176.10.27:10080?streamid=#!::r=live/ncmjed?secret=20628c23090e49ec96d2175081c13447,m=publish Version [v5.14.19]

Screenshots image

thank you

suzp1984 commented 1 month ago

This is not a bug, you need to input streamid manually in vlc''s preference settings. make sure you installed the latest version of VLC first. My version is 3.0.20. go to, settings -> show all -> stream output -> access output -> SRT, there is an input with label SRT Stream ID, you need to input it.

In your case, the url srt://64.176.10.27:10080?streamid=#!::r=live/ncmjed?secret=20628c23090e49ec96d2175081c13447,m=publish is the publish URL, the stream id you need to input is: #!::r=live/ncmjed,m=request. Or in Oryx, it remind you to add latency=20, which means the streamid is #!::r=live/ncmjed,latency=20,m=request, it ok without it.

Screenshot 2024-05-30 at 3 02 01 PM

Then in Network URL input, you just need to input the IP and port with scheme, in your case is srt://64.176.10.27:10080.

TRANS_BY_GPT4

gasguti commented 1 month ago

thank you @suzp1984