gopro 8 routing to OBS 3s delay

1,106 views
Skip to first unread message

drgu...@gmail.com

unread,
May 14, 2020, 4:54:28 AM5/14/20
to MonaServer
Hello,
 
could you please help me figure out what is happening here?

I managed to connect my goPro 8 to MonaServer64 (occasionally, because it keeps having trouble connecting but I'm sure that the problem is on the android/gopro side - or maybe I just have to start MonaServer as Admin) and use OBS media source to read the RTMP feed. 
The problem is that I have a 3s delay between the goPro. and OBS.
The console (cmd window) displays "FlashStream.cpp[126] setBufferTime 3000ms on stream id=1" when connecting
I found an older post here in which you said that it's a buffer set on the OBS side and that we should " Go into "Output>Advanced" and set "tune=zerolatency",". The problem is that the new OBS doesn't have this setting anymore.

Any idea what can I do to reduce the latency between goPro and OBS?

Thank you.

- Daniel

drgu...@gmail.com

unread,
May 14, 2020, 6:38:28 AM5/14/20
to MonaServer

Also, I cant seem to be able to connect with VLC to view the server, I keep getting "FlashMainStream.cpp[149] Method client getStreamLength not found in application /live" all the while in VLC the seekbar keeps bouncing from left to right, like it's trying to read something.

Thomas Jammet

unread,
May 24, 2020, 5:08:21 AM5/24/20
to MonaServer
1) This is more a question for OBS guys but I will try to answer. I guess you are using "VLC Video source" right? Sadly I see that there is no way to add parameters to customize the subscription but try to ask OBS team if you have time.

2) The 'getStreamLength' error can be ignored, this is normal with VLC.
To play the stream with RTMP in VLC you have to add an application name in the path, for example if you want to play the stream 'test' in VLC with rtmp you should try the following link :
rtmp://localhost/live/test
(replace 'test' by the name of your stream publication and 'live' by any other application name, it does not matter)

You can also try to view the stream with HTTP live streaming, for this just open the following link http://localhost/test.mp4 in VLC to play an existing stream 'test'.

drgu...@gmail.com

unread,
May 24, 2020, 8:05:41 AM5/24/20
to MonaServer
I was using a "Media Source" in OBS with the input "rtmp://localhost/" and I just managed to use the same link in VLC (I don't know what happened before, I was probably using the wrong link) and it has almost the same delay. Whether I use VLC media source or plain Media source in OBS, or just open VLC and connect to rtmp://localhost/ it has a 3 seconds delay (with a very slight variation, the OBS media source seems to be the most responsive but the difference is barely noticeable). 

This makes me think that it's either from MonaS or from goP, otherwise the plain VLC wouldn't have the delay.

Thomas Jammet

unread,
May 25, 2020, 2:00:40 AM5/25/20
to MonaServer
This depends on the subscribers buffering parameters, using RTMP in VLC we never get less than 3s of delay. If you try to open the HTTP link in VLC with "ts" format you'll get less latency, try this link with a stream called "test" : http://localhost/test.ts
Here is a small screenshot, having 1,3s of latency :


And you can get even less latency in the browser with other players like this Flash Player one (150ms) :


Now the problem is that you are limited in OBS when using a media source, you can't customize the subscription. Maybe you could try using other sources to see witch one is giving the less latency.

drgu...@gmail.com

unread,
May 25, 2020, 12:41:51 PM5/25/20
to MonaServer
I see. Well, indeed the flash player link that you sent me has the least latency.
As you can tell I'm a bit out of my depth, when I bought the goPro I didn't know that I have to jump thru so many hoops to make it work thru OBS with Twitch, I thought that is pretty straight forward, but it never is.

Right now I managed to download the SWF file of the video player from the link you gave me and I run it locally in flash player (when I run it from the browser link it's a bit harder to capture the window in OBS without the overlay menu and stuff). It's faster than any other option but it still seems to me to have almost a two seconds delay (it varies, sometimes is almost instantaneous). Even so, a big improvement over the obs media source or vlc media source. I guess it should do for now.

I didn't manage to run the ts format because I'm not sure how to change the name of the steam to "test" (i'm just using rtmp://localhost/ now) and as far as I can tell without naming it you can't add the .ts extension. But I doubt it would be faster than the current configuration.

Anyway, thank you very much for the time you took to answer my questions and for your work on MonaServer. 

p.s. - one of these days I'm going to open a thread on the OBS forum to ask them to add the option to customize the subscription (I'm not sure that I understood exactly but I guess it's the buffer time that should be configurable) when using an RTMP media source.
Reply all
Reply to author
Forward
0 new messages