Jump to content
  • 0

OBS is loosing connection with AMS


Roy Arne Olsen
 Share

Question

This is my second day testing AMS CE but OBS is having a problem keeping the connection open to AMS. So far it always gets connected again after a short time. Before this, I was running RTMP in Nginx on the same server and never had this problem. Any suggestions?

 

 

A part of my log:

 

2020-09-20 04:50:21,864 [vert.x-worker-thread-8] WARN  io.antmedia.muxer.MuxAdaptor - Stream: 613224290193012763806312 does not get packet for 500 ms
2020-09-20 04:50:22,119 [vert.x-worker-thread-8] WARN  io.antmedia.muxer.MuxAdaptor - Stream: 613224290193012763806312 does not get packet for 750 ms
2020-09-20 04:50:29,686 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:3 decrement count:-2 diff:1
2020-09-20 04:50:39,687 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:50:49,685 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-3 diff:-2
2020-09-20 04:50:51,679 [vert.x-worker-thread-19] WARN  io.antmedia.muxer.MuxAdaptor - Stream: 613224290193012763806312 does not get packet for 250 ms
2020-09-20 04:50:59,681 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:2 decrement count:-1 diff:1
2020-09-20 04:51:09,685 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:51:19,680 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-2 diff:-1
2020-09-20 04:51:29,685 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:51:39,686 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:51:49,687 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:51:59,680 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:52:09,687 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:52:19,685 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:0 decrement count:-1 diff:-1
2020-09-20 04:52:21,991 [vert.x-eventloop-thread-0] INFO  i.antmedia.statistic.StatsCollector - System cpu load:1 process cpu load:1 available memory: 22373372 KB used memory(RSS): 576572 KB
2020-09-20 04:52:21,992 [vert.x-eventloop-thread-0] INFO  i.antmedia.statistic.StatsCollector - Vertx worker queue size:0 WebRTCVertx worker queue size:0
2020-09-20 04:52:25,670 [vert.x-worker-thread-7] WARN  io.antmedia.muxer.MuxAdaptor - Stream: 613224290193012763806312 does not get packet for 250 ms
2020-09-20 04:52:29,687 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:52:39,687 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:0 diff:1
2020-09-20 04:52:49,687 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:52:59,686 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:53:09,687 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:53:19,687 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:53:29,685 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:53:39,679 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:53:44,180 [vert.x-worker-thread-5] WARN  io.antmedia.muxer.MuxAdaptor - Stream: 613224290193012763806312 does not get packet for 250 ms
2020-09-20 04:53:49,685 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:53:59,669 [vert.x-worker-thread-17] WARN  io.antmedia.muxer.MuxAdaptor - Stream: 613224290193012763806312 does not get packet for 250 ms
2020-09-20 04:53:59,687 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:54:09,687 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:0 decrement count:-1 diff:-1
2020-09-20 04:54:19,684 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:-1 diff:0
2020-09-20 04:54:21,990 [vert.x-worker-thread-14] WARN  io.antmedia.muxer.MuxAdaptor - Stream: 613224290193012763806312 does not get packet for 250 ms
2020-09-20 04:54:29,685 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:1 decrement count:0 diff:1
2020-09-20 04:54:33,729 [vert.x-worker-thread-0] WARN  io.antmedia.muxer.MuxAdaptor - Stream: 613224290193012763806312 does not get packet for 250 ms
2020-09-20 04:54:33,985 [vert.x-worker-thread-0] WARN  io.antmedia.muxer.MuxAdaptor - Stream: 613224290193012763806312 does not get packet for 500 ms
2020-09-20 04:54:39,686 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:3 decrement count:-1 diff:2
2020-09-20 04:54:49,687 [vert.x-eventloop-thread-6] INFO  i.antmedia.statistic.HlsViewerStats - Update HLS viewer in stream ID:613224290193012763806312 increment count:2 decrement count:-1 diff:1

Link to comment
Share on other sites

  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

5 answers to this question

Recommended Posts

  • 0

My Streamlags OBS or OBS studio behaves the same. They are set up to reconnect if they lose connection and they always reconnect without any issue but of course, the stream is broken so the client needs to refresh their web browser to get connected again.

My OBS is not reporting any dropped frames before the connections goes down so it seems like OBS is not detecting any poor/slow connection before it goes completely down.

This was not a issue at all when I used Nginx on the same server without any change in my hardware. My longest stream in Nginx was for more than six hours and the connection was always stable. I have even reduced the transfer video bitrate from 2500 and down to 1000 without any improvment.

Roy Arne
Link to comment
Share on other sites

  • 0

There is no regular time interval. Some times it can stream well for a half hour and the disconnect several times after each other before getting stable for several minutes again. I just restored my Nginx server to check if nothing has changed in my network lately and is now running a test. So far it all seems stable and the stream is running smoothly. 

I have attached a logfile from AMS if it can be to any help.

 

Ant-mediaserver-log.txt

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...