SRT connection abandoned

751 views
Skip to first unread message

Bodya

unread,
Aug 22, 2021, 9:27:49 AM8/22/21
to MonaServer
I'm using the SRT protocol with an OBS client. OBS establishes a connection with the server and sends about 50kb of data and then the connection is abandoned till OBS auto recconnectes.  
My connection to RTMP is ok.
Also port seems to be closed for some reason, firewall, port forwarding, etc. is fine.

MonaServer:
16:19:27.272000/T6124*E:SRT.cn: srt_accept: no pending connection available at the moment
SRTProtocol.cpp[49] Invalid SRT streamid
SRTProtocol.cpp[121] SRT connection without a valid streamid, use ini configuration rather to configure statically SRT input and output

Please help!


Message has been deleted

Bodya

unread,
Aug 22, 2021, 12:09:04 PM8/22/21
to MonaServer
setting up streamid=<value> in MonaServer.ini and providing streamid and transtype in obs srt://localhost:10000?streamid=11,transtype=live worked for me.

Bodya

unread,
Aug 22, 2021, 1:45:48 PM8/22/21
to MonaServer
for some reason i still get messages from the above about streamid when trying to watch the stream via vlc

MonaServer

unread,
Aug 25, 2021, 11:28:44 AM8/25/21
to MonaServer
Hi!

VLC seems to not support the SRT Stream ID feature.

This is a useful tool which allows to create multiple streams dynamically with different names like it is done with other protocols (RTMP, HTTP etc...).
If you want to use this feature anyway you can do it with OBS as publisher and ffmpeg (ffplay) for the player. Here is the procedure :
- In OBS set the url => srt://<ip:port>/?streamid=#!::r=<stream name>,m=publish
- Start publishing
- For ffmpeg just play the stream with :
ffplay.exe srt://<ip:port>?streamid=<stream name>
(the streamid parameter here is a shortcut of streamid=#!::r=<stream name>,m=caller)

Now if you need to use VLC you can use static media configuration by adding a publication configuration in the MonaServer.ini file.
Here are the steps to make it work :
- Setup the publication in the MonaServer.ini file (for this example we use the publication name "11" and the listening SRT port "5678") :
[11=publication]
OUT srt://@0.0.0.0:5678
- Then restart MonaServer
- In OBS the stream url => srt://<ip:port>/?streamid=#!::r=11,m=publish
- Start publishing
- Then play the stream in VLC using the following url :
(note that "localhost" seems not working in VLC with SRT, for this reason I have put "127.0.0.1" instead)

I hope this is clear enough, let us know if you need more help.

Regards

Thomas
Reply all
Reply to author
Forward
0 new messages