Jump to content
  • 0

streaming close by server?


許景然
 Share

Question

when steaming working,we got obs push disconnect.

log about this.
how can i fix it?
 we need let steaming always connecting.
because when streaming disconnect,then client will get black screen.

2021-03-22 19:50:48,051 [vert.x-worker-thread-6] WARN  io.antmedia.muxer.MuxAdaptor - Stream: streamkey003 does not get packet for 4000 ms

2021-03-22 19:50:48,304 [vert.x-worker-thread-6] WARN  io.antmedia.muxer.MuxAdaptor - Stream: streamkey003 does not get packet for 4250 ms

2021-03-22 19:50:49,025 [vertx-blocked-thread-checker] WARN  i.v.core.impl.BlockedThreadChecker - Thread Thread[vert.x-worker-thread-6,5,main]=Thread[vert.x-worker-thread-6,5,main] has been blocked for 5021 ms, time limit is 2000 ms
io.vertx.core.VertxException: Thread blocked
at java.base@11.0.10/java.lang.Thread.sleep(Native Method)
at io.antmedia.muxer.MuxAdaptor$1.call(MuxAdaptor.java:257)
at org.bytedeco.ffmpeg.global.avformat.av_read_frame(Native Method)
at io.antmedia.muxer.MuxAdaptor.execute(MuxAdaptor.java:662)
at io.antmedia.muxer.MuxAdaptor.lambda$start$0(MuxAdaptor.java:1061)
at io.antmedia.muxer.MuxAdaptor$$Lambda$386/0x00000008406fc040.handle(Unknown Source)
at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$2(ContextImpl.java:313)
at io.vertx.core.impl.ContextImpl$$Lambda$360/0x00000008405ef440.run(Unknown Source)
at java.base@11.0.10/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base@11.0.10/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base@11.0.10/java.lang.Thread.run(Thread.java:834)

...
2021-03-22 19:50:54,263 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Client:590678713 for stream streamkey003 current video bitrate: 1536000 audio bitrate: 96000 webrtc client target bitrate: 5622000
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] WARN  io.antmedia.muxer.MuxAdaptor - Stream: streamkey003 does not get packet for 10250 ms
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] WARN  io.antmedia.muxer.MuxAdaptor - Total wait time:10250 for receiving packet exceeds maxWaitTime(10* max analyze duration):10000 breaking the loop for stream:streamkey003
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] INFO  io.antmedia.muxer.MuxAdaptor - packet is null and return length is -1
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] INFO  io.antmedia.muxer.MuxAdaptor - stop request for stream id : streamkey003 
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] INFO  io.antmedia.muxer.MuxAdaptor - packet is null and return length is -1
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] WARN  io.antmedia.muxer.MuxAdaptor - closing adaptor for streamkey003 
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] INFO  io.antmedia.muxer.MuxAdaptor - close resources for streamId -> streamkey003
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] INFO  io.antmedia.muxer.MuxAdaptor - Cancelling packet poller task(id:18646) for streamId: streamkey003
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] INFO  i.a.e.adaptive.EncoderAdaptor - closing input and number of dropped packets 0
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] INFO  i.a.e.adaptive.EncoderAdaptor - Total video encode time 0ms, average video encode time 0ms total audio encode time 21560ms total video decode time 0ms , average video decode time 0 ms 
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] WARN  io.antmedia.muxer.MuxAdaptor - closed adaptor for streamkey003 input queue size:-2 and queue reference size:1
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] INFO  o.r.s.stream.ClientBroadcastStream - Stream stop: streamkey003
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] INFO  io.antmedia.muxer.MuxAdaptor - Calling stop for streamkey003 input queue size:-2
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] WARN  io.antmedia.muxer.MuxAdaptor - Mux adaptor stopped returning for streamkey003
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] INFO  o.r.s.stream.ClientBroadcastStream - Stream close: streamkey003
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] INFO  o.r.s.stream.ClientBroadcastStream - Checking mux adaptor to stop streamkey003
2021-03-22 19:50:54,375 [vert.x-worker-thread-6] INFO  o.r.s.stream.ClientBroadcastStream - Mux Adaptor stop called streamkey003

Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Hi

It seems publisher is not sending the stream properly. Could you please make sure publisher stream status metric is green and dropped frames value is 0? 
Please check more detail about troubleshooting -> https://github.com/ant-media/Ant-Media-Server/wiki/Open-Broadcaster-Software-Publishing#troubleshooting

Also please use our default OBS encoder settings.
Profile: Baseline
Keyframe every: 1
Quality: Fast or Medium (you can change your CPU usage)
Bitrate: 1000-1500 (change bitrate according to your upload size)

I hope, I could help you.

Best Regards,
Selim

Link to comment
Share on other sites

 Share


×
×
  • Create New...