Desync over time with rtmp server / Add HTTP POST

darthclide

Member
I am currently using MonaServer because it seems to give the closest thing to "lossless" as I can get.
Since this stuff goes over my head, I will just post the email I was sent by the developer:
Hi,

Are you saying that RTMP works perfectly with other programs?

Yes sure, MonaServer is used in production by some customers for long time on streaming long session (many months without interruption) in RTMP. The better to convince you and trying with FMLE for example (or even ffmpeg), you will get always something smooth.

But OBS it does not?

Yes, there is known weakness in the RTMP implementation of OBS, I have already reported it many times to Hugh Bailey (his creator) in the past but he is quite busy and in his own words: "I hate RTMP" :-) (I give him reason ;-)).
Now here too, try OBS with an other RTMP server (replace MonaServer by something else), and look if it fixes your issue ;-).

Are you sure this HTTP POST addition will remove my desync problems?

A bad implementation of HTTP POST can create new issues of course, but I am sure that Hugh will always refuse new time development on RTMP, whereas if you propose him a HTTP POST extension where the code is concise, easy to read, easy to maintain and matching a standard with a bright future, I bet that it's an option which Huch could accept.
And "if it's simple it works".

Are there any other ideas you have to help this issue in OBS?

Report the issue on OBS forum or to Hugh. Or use something else than OBS (ffmpeg does well the job! but of course is less sexy...).

Sorry, on my side I see no other options, I can't fix something else than Mona.

Best,
Math

If you don't intend on adding this feature, can someone tell me how to get around this problem?
 

kurufu

Member
First, what is your actual issue? your title is has "Desync over time with rtmp server" but you dont explain anything other than posting this quote which also explains nothing about your issue. Are you having desync issues? Have you tried other service providers? What specifically is desyncing? How long does it take? Do you have a log file from OBS? Have you experienced this desync while recording?

Second, what are you actually requesting to be implemented? HTTP POST is not a streaming protocol, its at best a small portion of the larger HTTP protocol which is also not designed for streaming video. Best would be to provide a specification for the protocol, or perhaps request one from the MonaServer developer if you feel this is over your head.

Lastly
Yes, there is known weakness in the RTMP implementation of OBS, I have already reported it many times to Hugh Bailey (his creator) in the past but he is quite busy and in his own words: "I hate RTMP" :-) (I give him reason ;-)).
If this developer knows of issues they should be reported as precisely and accurately as possible so that they can be resolved. Not used as vague scare statements that mean nothing.

Yes sure, MonaServer is used in production by some customers for long time on streaming long session (many months without interruption) in RTMP.
There are at least a handful of people who have and presumably continue to run obs streams for months on end. The last user I saw personally had a stream running for about 5 months. So the issue is highly unlikely to be OBS.
 

darthclide

Member
My issue is that after around the 8-9 hour mark, all of my audio (both mic and game) are out of sync with the game. Why do you assume this developer is lying? How do I know these supposed "month long obs streams" you speak of are on streaming computers with NO capture card?

If this developer knows of issues they should be reported as precisely and accurately as possible so that they can be resolved. Not used as vague scare statements that mean nothing.

Ummm, did you not read what he said? He has reported this AND messaged the owner multiple times. There are no "scare" statements here. Only your assumption that any other developer must be a liar.

https://hastebin.com/guwokoqinu (Gaming Computer)
https://hastebin.com/izomijefac (Streaming Computer)

Also, read the title of the post next time. It clearly says what my problem is.
 

kurufu

Member
No one said the other developer was lying, only that his statements were essentially meaningless. Im sure he certainly did reach out about a _known weakness in the RTMP implementation_ though if he wanted it fixed it should be submitted to the bug tracker. Notably https://obsproject.com/mantis where it can be tracked and users like you can voice your concern about potential bugs. Perhaps you can reach out to him to create such a bug report or if it is a feature request utilize the https://ideas.obsproject.com/ page for feature requests so users like you can voice support for features and affect future development efforts. As this seems very important to your use case.

Also, read the title of the post next time. It clearly says what my problem is.
There is a reason i followed up your "clear" issue with another 6 questions. It's that 6 word blurb is not a very good description any problem.

As this is the forum for Ideas and Suggestions and this is mostly turning into a Support post, id recommend this being moved to the support channel and you can post a more targeted feature request if you can figure out what exactly the MonaServer is using that OBS can support.

So if you can go ahead and answer the rest of my questions i think we can get somewhere closer to a solution.
Have you tried other service providers? What specifically is desyncing, and by how much? Have you experienced this desync while recording?
 

darthclide

Member
Game audio and mic audio are happening earlier than the video by about 500ms. I can only assume it would get worse if I streamed for longer. Resetting the media source on my streaming computer fixes the issue, but I shouldn't have to do that. Yes desync happens while recording. As such, this has nothing to do with choosing a different ISP (which I can't do) or different twitch server. I have posted the logs, so if nothing is broken there, then it would indicate something wrong with the code in OBS (as the developer of MonaServer pointed out).

If someone wants to move this to the bugs section of the forums, then please feel free. I am just trying to help myself and this developer. No offense kurufu, but it seems that you and I both don't understand this detailed stuff about rtmp. I hope someone with more technical skill can come along and explain what this HTTP POST addition is all about? Or why there is no desync with other platforms like ffmpeg?
 

kurufu

Member
Install VLC and use the VLC source instead of a media source to see if that resolves your sync issues. The VLC source is more robust to issues than the media source. The fact that everything is synced when you restart your media source is perfect evidence that OBS is streaming out perfectly synced video. If there were any syncing issues from the output of OBS you would not get a synced video even after restarting the source.

--- Edit
I'm not sure if there are still issues with VLC 3.0 but if you dont see the vlc source even after installing VLC make sure to install the 2.X branch of VLC.
 

darthclide

Member
I apologize, I meant to say after I reset the source AND the stream to localhost (monaserver). But I will try this vlc thing anyway.
 
Top