Forced Client Disconnects.

257 views
Skip to first unread message

KawaiiWoIf

unread,
Apr 27, 2015, 6:18:26 PM4/27/15
to monas...@googlegroups.com
I've got MonaServer up and running with the latest commit as of this time ( 48428fd2d44dba6a37c815ad683e675843c05178 ) but I seem to be running into an ugly problem.

For a number of videos, the server performs without incident, but when streaming a particular game that features a lot of flashing tiles, the stream seems to choke and die with no determinable reason.

My setup:

Mona Server running on Debian Jessie
- MonaServer logs reports no problems, only that a client disconnects

Open Broadcast Software x64 Windows 7
- No problems here, stream is continuous without problem or interruption

Clients: Both JW Player ( www.jwplayer.com ) and HDW Player ( http://www.hdwplayer.com ) give the exact same error, highly reducing the likelihood that it is a client issue.

The stream will be playing just fine, then the client will freeze frame and sit there doing nothing. MonaServer logs report the client has disconnected but it'll take a manual page refresh to get the clients playing again. In the API provided with the clients I can't get them to tell me what the error is, my troubleshooting options are limited. I can tell you though that HDW player, if the Mona server is taken offline, will spin and continue to try to buffer, connecting (automatically) when monaserver comes back online. When the issue on stream happens the HDW player is stuck and won't try to rebuffer.

--- So at this point, what can I do ? I'd be happy to run some more detailed logs for MonaServer if you'd want to release a build that can help debug it ? For now I'm stuck with this mysterious crash and no indication on server or client end on what the issue can be.

Help ?

KawaiiWoIf

unread,
Apr 29, 2015, 11:05:49 AM4/29/15
to monas...@googlegroups.com
After some more tests, I can confirm this is not a client bandwidth issue. I had someone externally stream to me the other night. Their connection to MonaServer stayed rock solid and my streaming player was only on the local area network. Same sort of disconnects at a frequent and alarming rate (between 2-5 minutes per forced interruption).

Thomas Jammet

unread,
Apr 29, 2015, 12:20:45 PM4/29/15
to monas...@googlegroups.com
Hi KawaiiWolf,

Yes I have reproduced the problem with the current version of MonaServer, now we will work on it and tell you when the problem is resolved.

Do you have the same issue with RTMFP?
You can try with this player : http://raspi.monaserver.ovh/MonaClients/VideoPlayer/?fit# (parameter "fit" is here to fit the player to the window).
Any idea to improve it is welcome :)

You can turn back to this previous commit : 2d31eb3836b17c22c56e12b4201d3a933e0f7e57 (from the 04/22/15), I think it works.

Thank you for your report!

KawaiiWoIf

unread,
Apr 29, 2015, 6:03:42 PM4/29/15
to monas...@googlegroups.com
RTMFP seems to hold down the connection just fine, it doesn't experience any of the same issues that RTMP has. RTMFP appears to have much lower latency, however it leaves far too many visual artifacts at a 720p resolution (that are only cleaned with new keyframes) to be considered stable to use for our purposes. This could be an issue with the player, however, since there are no commercial versions available to test with that I'm aware.

Attached is the source code and compiled video player (it's rather on the basic side) that's derivitive of your video player test that we used to test with. It's great for smaller samples but at high resolution, the quality isn't sufficient for streaming media (movies/games). What I can't be certain of is if it's an issue with the server or the client, since an RTMP fetch of the same stream does not seem to suffer the same artifacting and quality issues when compared side by side. It could be a lack of buffering in the player or just a setting I didn't know to set, at this point I can only guess. I'll revert to the suggested commit and see if it suffers any of the same playback issues later tonight.
VideoPlayer.mxml
swfobject.js
VideoPlayer.swf
VideoPlayer.html

KawaiiWoIf

unread,
Apr 29, 2015, 10:11:56 PM4/29/15
to monas...@googlegroups.com
The commit 2d31eb3836b17c22c56e12b4201d3a933e0f7e57 appears to be doing this as well (dropping clients)

Thomas Jammet

unread,
May 4, 2015, 10:20:51 AM5/4/15
to KawaiiWoIf, monas...@googlegroups.com
Hi KawaiiWolf,

We are always working on it, we know that the RTMP client shut down the connection but we don't know why, we will keep you informed when the problem will be resolved.

About your artifacts and RTMFP could you tell us what version of flash player do you use? on which system? MonaServer does not make a difference between RTMFP and RTMP video in reliable mode (the default one) so you should not see differences when you change protocol. I have only reproduced these artifacts when playing on Ubuntu with Flash Pepper extension and Chromium but it seems to be a client issue (maybe a bad implementation...).

Regards


--

Thomas JAMMET

--
You received this message because you are subscribed to the Google Groups "MonaServer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to monaserver+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/monaserver/0ce532af-7469-48b7-b3d5-63ca836b9e63%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Thomas Jammet

unread,
May 16, 2015, 10:35:56 AM5/16/15
to monas...@googlegroups.com, kawai...@gmail.com
Sorry I thought to have already published a response, does your disconnection problem is resolved? I have made a correction last week.

KawaiiWoIf

unread,
May 17, 2015, 6:02:43 PM5/17/15
to monas...@googlegroups.com, kawai...@gmail.com
So far it's running OK but this particular issue was a little difficult to reliably reproduce. I'm going to give it some more thorough testing to see if it crops up again.

KawaiiWoIf

unread,
May 29, 2015, 6:44:36 PM5/29/15
to monas...@googlegroups.com
Been running a few weeks without incident with multiple people using the stream. I think I can say with confidence that this bug is gone !

Thomas Jammet

unread,
May 31, 2015, 4:01:27 AM5/31/15
to monas...@googlegroups.com, kawai...@gmail.com
Thank you for your report!

Reply all
Reply to author
Forward
0 new messages