Reduce delay in MP4 streams and Stream authentication

125 views
Skip to first unread message

Spencer Austad

unread,
Oct 15, 2021, 3:07:50 PM10/15/21
to MonaServer
I have two questions:

1. Is there a way to reduce the latency of the mp4 streams (or a better way of doing it)? The delay I'm seeing is about 3-4 seconds and I have OBS tuned to "zerolatency." I'm trying to use this as a quick and easily accessible streaming server, so I don't want to use VLC RTMP. I want to be able to just give users an internet link.

2. Is there a way of authenticating streams  for a public instance of MonaServer so that only people with a certain key or a user could stream to it?

Thomas Jammet

unread,
Oct 26, 2021, 9:39:17 AM10/26/21
to MonaServer
Hi Spencer!

1. We have experienced this kind of delay with OBS, it seems to be some buffering done internally in OBS, I can't help for this but you can try some other tools to share your screen. There is FFmpeg for example or Xsplit, tell us if you find something else.

2. About authenticating streams this is possible with some changes in the code, I will keep this thread open to see if we can add a way to configure this directly in the MonaServer.ini file.

Regards

Thomas

MonaServer

unread,
Nov 15, 2021, 11:57:34 AM11/15/21
to MonaServer
Hi Spencer,

I hope you're enjoying MonaServer! We have just written a tutorial to update MonaTiny source code with login/password, please follow this link : https://groups.google.com/g/monaserver/c/B4CwlyAx_fo

Also another solution is to forbid all publications outside from one protocol (for example RTMP) :
bool MonaTiny::onPublish(Exception& ex, Publication& publication, Client* pClient) {
    return String::ICompare(pClient->protocol, "RTMP") == 0;
}

Then you just have to setup your network to reject all traffic from the RTMP port (1935 by default) which is not coming from trusted ip/network.
For example you can use your firewall, setup a VPN connection or setup port forwarding only for HTTP.

Regards

Thomas
Reply all
Reply to author
Forward
0 new messages