ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.25k stars 626 forks source link

GStreamer custom H264 codec doesn't work on SFU mode #4048

Closed SelimEmre closed 2 years ago

SelimEmre commented 2 years ago

Short description

Gstreamer omxh264enc codec doesn't work SFU mode. But it's working properly HLS and WebRTC with Adaptive options.

Steps to reproduce

  1. It's hard to reproduce it but please use omxh264enc with publishing GStreamer like below:
    gst-launch-1.0 -v videotestsrc ! video/x-raw, format=NV12 ! omxh264enc ! h264parse ! flvmux ! rtmpsink location='rtmp://[192.168.1.123/LiveApp/CAM2](http://192.168.1.123/LiveApp/CAM2)'

Expected behavior

WebRTC and HLS should work properly on SFU mode.

Actual behavior

WebRTC and HLS doesn't work if we use Adaptive option.

https://drive.google.com/file/d/1ktyKslo6-A-WmbUbhBJ34EduItWrtsv_/view?usp=sharing

Logs

SFU Mode:

22-03-10 17:11:05,018 [RTMPConnectionExecutor-1] INFO  i.a.e.webrtc.WebRTCApplication - W3C x-category:session x-event:connect c-ip:192.168.1.140 c-client-id:0
2022-03-10 17:11:05,036 [RTMPConnectionExecutor-1] INFO  i.a.s.AcceptOnlyStreamsWithWebhook - AcceptOnlyStreamsWithWebhook is not activated for stream CAM2 webhook url: 
2022-03-10 17:11:05,036 [RTMPConnectionExecutor-1] INFO  i.a.s.AcceptOnlyStreamsInDataStore - AcceptOnlyStreamsInDataStore is not activated. Accepting all streams CAM2
2022-03-10 17:11:05,048 [RTMPConnectionExecutor-1] INFO  org.red5.server.scope.BasicScope - ClientBroadcastStream already exists: org.red5.server.stream.ClientBroadcastStream@22b84285 new: org.red5.server.stream.ClientBroadcastStream@22b84285
2022-03-10 17:11:05,048 [RTMPConnectionExecutor-1] INFO  o.r.s.stream.ClientBroadcastStream - Stream start: CAM2
2022-03-10 17:11:05,050 [RTMPConnectionExecutor-1] INFO  i.a.e.webrtc.WebRTCApplication - W3C x-category:stream x-event:publish c-ip:192.168.1.140 x-sname:086831ec-ba63-4244-80c2-8ba26a3745b0 x-name:CAM2
2022-03-10 17:11:05,298 [RTMPConnectionExecutor-1] INFO  i.a.AntMediaApplicationAdapter -  Status of stream CAM2 is set to Broadcasting with result: true
2022-03-10 17:11:05,298 [RTMPConnectionExecutor-1] INFO  io.antmedia.muxer.MuxAdaptor - serverSettings exist io.antmedia.settings.ServerSettings@73db6589
2022-03-10 17:11:05,298 [RTMPConnectionExecutor-1] INFO  io.antmedia.muxer.MuxAdaptor - vertx exist io.vertx.core.impl.VertxImpl@3c5161d
2022-03-10 17:11:05,298 [RTMPConnectionExecutor-1] INFO  io.antmedia.muxer.MuxAdaptor - serverSettings exist io.antmedia.settings.ServerSettings@73db6589
2022-03-10 17:11:05,300 [RTMPConnectionExecutor-1] INFO  io.antmedia.muxer.MuxAdaptor - adding HLS Muxer for CAM2
2022-03-10 17:11:05,301 [RTMPConnectionExecutor-1] INFO  io.antmedia.muxer.HLSMuxer - hls time: 2, hls list size: 5 for stream:CAM2
2022-03-10 17:11:05,305 [RTMPConnectionExecutor-1] INFO  io.antmedia.muxer.MuxAdaptor - serverSettings exist io.antmedia.settings.ServerSettings@73db6589
2022-03-10 17:11:05,306 [RTMPConnectionExecutor-1] INFO  io.antmedia.muxer.MuxAdaptor - Number of items in the queue while adaptor is being started to prepare is 0
2022-03-10 17:11:05,306 [vert.x-worker-thread-43] INFO  io.antmedia.muxer.MuxAdaptor - before prepare for CAM2
2022-03-10 17:11:05,307 [vert.x-worker-thread-43] INFO  io.antmedia.muxer.MuxAdaptor - Number of items in the queue while starting: 0 for stream: CAM2
2022-03-10 17:11:05,308 [vert.x-eventloop-thread-2] INFO  io.antmedia.muxer.MuxAdaptor - muxadaptor start has finished with true for stream: CAM2
2022-03-10 17:11:05,311 [RTMPConnectionExecutor-1] INFO  o.red5.server.stream.AbstractStream - metadata read data type -->>>> core map
2022-03-10 17:11:05,312 [RTMPConnectionExecutor-1] INFO  io.antmedia.muxer.MuxAdaptor - first received frame timestamp: 0 for stream:CAM2 
2022-03-10 17:11:08,386 [http-nio2-0.0.0.0-5080-exec-1] INFO  i.a.e.s.WebSocketLocalHandler - Web Socket opened session:0 user-agent:[Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36]
2022-03-10 17:11:25,327 [vert.x-worker-thread-5] ERROR io.antmedia.muxer.MuxAdaptor - Total max time(20000) is spent to determine video and audio existence for stream:CAM2. It's skipped waiting
2022-03-10 17:11:25,327 [vert.x-worker-thread-5] INFO  io.antmedia.muxer.MuxAdaptor - Streams for CAM2 enableVideo:true enableAudio:false total spend time: 20009 elapsed frame timestamp:20500 stop request exists: false
2022-03-10 17:11:25,329 [vert.x-worker-thread-5] INFO  io.antmedia.muxer.MuxAdaptor - Incoming video width: 320 height:240 stream:CAM2
2022-03-10 17:11:25,384 [vert.x-worker-thread-5] INFO  io.antmedia.muxer.MuxAdaptor - There is no audio in the stream or not received AAC Sequence header for stream:CAM2 muting the audio
2022-03-10 17:11:25,385 [vert.x-worker-thread-5] INFO  i.a.e.adaptive.EncoderAdaptor - not decoding video for stream: CAM2
2022-03-10 17:11:25,385 [vert.x-worker-thread-5] INFO  i.a.e.adaptive.EncoderAdaptor - No audio in stream: CAM2
2022-03-10 17:11:25,391 [vert.x-worker-thread-5] INFO  i.a.e.adaptive.StreamAdaptor - Stream adaptor scheduled job id 18 stream adaptor:408871186 for stream:CAM2
2022-03-10 17:11:25,391 [vert.x-worker-thread-5] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - registering CAM2 muxer with 240p and codec::H264 to webrtc adaptor
2022-03-10 17:11:25,391 [vert.x-worker-thread-5] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Increasing number of live streams: 1 and stream id:CAM2
2022-03-10 17:11:25,392 [vert.x-worker-thread-5] INFO  i.a.AntMediaApplicationAdapter - start publish leaved for stream:CAM2
2022-03-10 17:11:25,393 [vert.x-worker-thread-12] INFO  i.a.AntMediaApplicationAdapter -  Status of stream CAM2 is set to Broadcasting with result: true
2022-03-10 17:11:26,428 [http-nio2-0.0.0.0-5080-exec-10] INFO  i.a.e.w.WebSocketEnterpriseHandler - viewer info :
2022-03-10 17:11:26,428 [http-nio2-0.0.0.0-5080-exec-10] INFO  i.a.e.w.WebSocketEnterpriseHandler - Play
2022-03-10 17:11:26,429 [http-nio2-0.0.0.0-5080-exec-10] INFO  i.a.enterprise.webrtc.WebRTCClient - Initial tracks for 1689840900 are 
2022-03-10 17:11:26,429 [http-nio2-0.0.0.0-5080-exec-10] INFO  i.a.enterprise.webrtc.WebRTCClient - WebRTCClient created video = true audio = true streamId:CAM2
2022-03-10 17:11:26,431 [http-nio2-0.0.0.0-5080-exec-10] INFO  i.a.e.w.WebSocketEnterpriseHandler - Starting webrtc stream viewer local for stream id: CAM2 viewer hashcode:1689840900 user-agent: [Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36]
2022-03-10 17:11:26,432 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCClient - startInternal time: 1646903486432 stream id:CAM2 viewer hashcode:1689840900
2022-03-10 17:11:26,435 [vert.x-eventloop-thread-0] INFO  org.webrtc.Logging - Tag:NativeLibrary - Message:Loading native library: jingle_peerconnection_so
2022-03-10 17:11:26,435 [vert.x-eventloop-thread-0] INFO  org.webrtc.Logging - Tag:NativeLibrary - Message:Loading library: jingle_peerconnection_so
2022-03-10 17:11:26,435 [vert.x-eventloop-thread-0] INFO  org.webrtc.Logging - Tag:PeerConnectionFactory - Message:PeerConnectionFactory was initialized without an injected Loggable. Any existing Loggable will be deleted.
2022-03-10 17:11:26,439 [vert.x-eventloop-thread-0] INFO  org.webrtc.Logging - Tag:JavaAudioDeviceModule - Message:createAudioDeviceModule
2022-03-10 17:11:26,439 [vert.x-eventloop-thread-0] INFO  org.webrtc.Logging - Tag:JavaAudioDeviceModule - Message:HW NS will not be used.
2022-03-10 17:11:26,439 [vert.x-eventloop-thread-0] INFO  org.webrtc.Logging - Tag:JavaAudioDeviceModule - Message:HW AEC will not be used.
2022-03-10 17:11:26,447 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCClient - Before sem acquire for 1689840900
2022-03-10 17:11:26,447 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCClient - After sem acquire for 1689840900
2022-03-10 17:11:26,449 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - onRenegotiationNeeded for CAM2
2022-03-10 17:11:26,451 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCClient - Timing:WebRTCClient(1689840900) is initialized for CAM2 takes 19ms
2022-03-10 17:11:26,452 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCClient - setting local description for stream Id CAM2 viewer hashcode:1689840900
2022-03-10 17:11:26,452 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - onSignalingChange : HAVE_LOCAL_OFFER
2022-03-10 17:11:26,453 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - SdpObserverLogger - onSetSuccess (local) for stream Id CAM2
2022-03-10 17:11:26,455 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCClient - Timing:onCreateSuccess takes 23ms hash:1689840900
2022-03-10 17:11:26,489 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCClient - setting remote description for stream Id CAM2 for 1689840900
2022-03-10 17:11:26,489 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - onSignalingChange : STABLE
2022-03-10 17:11:26,490 [EncoderQueue - 206656] INFO  i.a.e.w.c.VirtualVideoEncoderFactory - createEncoder: H264 for factory: 968873929
2022-03-10 17:11:26,490 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - IceConnectionState: CHECKING instance: 1689840900
2022-03-10 17:11:26,490 [EncoderQueue - 206656] INFO  i.a.e.w.c.VirtualVideoEncoderFactory - encoder input key: level-asymmetry-allowed  value: 1 
2022-03-10 17:11:26,490 [EncoderQueue - 206656] INFO  i.a.e.w.c.VirtualVideoEncoderFactory - encoder input key: packetization-mode  value: 1 
2022-03-10 17:11:26,490 [EncoderQueue - 206656] INFO  i.a.e.w.c.VirtualVideoEncoderFactory - encoder input key: profile-level-id  value: 42e01f 
2022-03-10 17:11:26,490 [EncoderQueue - 206656] INFO  i.a.e.w.c.VirtualVideoEncoderFactory - encoder input key: track  value: ARDAMSvCAM2 
2022-03-10 17:11:26,490 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - Sem Released for 1689840900 at onSuccess
2022-03-10 17:11:26,491 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - Timing:onSetSuccess takes 59ms hash:1689840900
2022-03-10 17:11:26,491 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCClient - onSetSuccess (remote) for stream Id CAM2
2022-03-10 17:11:26,494 [EncoderQueue - 206656] INFO  i.a.e.w.codec.VirtualVideoEncoder - initEncode: 1 x 1. @ 300kbps 60fps automaticResizeOn: true adjusted bitrate: 10000000 for client:
2022-03-10 17:11:26,496 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - IceConnectionState: CONNECTED instance: 1689840900
2022-03-10 17:11:26,497 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - Timing:OnIceConnection Connected state takes 65ms hash:1689840900 remoteDescriptionSet:true
2022-03-10 17:11:26,497 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - Starting streaming for CAM2
2022-03-10 17:11:26,497 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - IceConnectionState: COMPLETED instance: 1689840900
2022-03-10 17:11:26,497 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCClient - registering webrtc client 1689840900 with codec H264 to webrtc adaptor for streamId CAM2
2022-03-10 17:11:26,497 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCMuxer - register webrtc client(1689840900) to webrtc muxer(240p - codec:H264) for stream: CAM2 current viewer count:1
2022-03-10 17:11:26,489 [http-nio2-0.0.0.0-5080-exec-8] INFO  i.a.enterprise.webrtc.WebRTCClient - addIceCandidate : 0:0:candidate:3687888086 1 udp 2122260223 192.168.1.123 51064 typ host generation 0 ufrag YDzZ network-id 1::UNKNOWN
2022-03-10 17:11:26,498 [http-nio2-0.0.0.0-5080-exec-8] INFO  i.a.enterprise.webrtc.WebRTCClient - addIceCandidate : 0:0:candidate:1725357256 1 udp 2122194687 10.193.66.84 55218 typ host generation 0 ufrag YDzZ network-id 2 network-cost 10::UNKNOWN
2022-03-10 17:11:26,499 [vert.x-eventloop-thread-0] INFO  i.a.e.w.WebRTCPlayStreamInfoListener - A new viewer started streaming of CAM2
2022-03-10 17:11:26,503 [network_thread - 206638] INFO  org.webrtc.Logging - Tag:WebRtcAudioRecordExternal - Message:startRecording
2022-03-10 17:11:26,504 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - IceConnectionState: CONNECTED instance: 1689840900
2022-03-10 17:11:26,504 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - Timing:OnIceConnection Connected state takes 72ms hash:1689840900 remoteDescriptionSet:true
2022-03-10 17:11:26,504 [network_thread - 206638] WARN  i.a.enterprise.webrtc.WebRTCClient - StartStreaming is called in an unexpected case. It's streaming: true(should be false) and it's stopped:false (should be false)
2022-03-10 17:11:26,636 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - IceConnectionState: COMPLETED instance: 1689840900
2022-03-10 17:11:27,393 [vert.x-eventloop-thread-2] INFO  i.a.AntMediaApplicationAdapter - Broadcast absolute time is not available for stream:CAM2
2022-03-10 17:11:31,502 [vert.x-eventloop-thread-3] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Client:1689840900 for stream CAM2 current video bitrate: 976640 audio bitrate: 0 webrtc client target bitrate: 5280000
2022-03-10 17:11:36,501 [vert.x-eventloop-thread-3] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Client:1689840900 for stream CAM2 current video bitrate: 965973 audio bitrate: 0 webrtc client target bitrate: 5280000
2022-03-10 17:11:38,127 [vert.x-worker-thread-6] INFO  i.a.e.adaptive.StreamAdaptor - Stream adaptor queue size: 0 for stream: CAM2
2022-03-10 17:11:41,501 [vert.x-eventloop-thread-3] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Client:1689840900 for stream CAM2 current video bitrate: 968533 audio bitrate: 0 webrtc client target bitrate: 5280000
2022-03-10 17:11:41,510 [network_thread - 206638] INFO  org.webrtc.Logging - Tag:WebRtcAudioTrackExternal - Message:GetPlayoutUnderrunCount
2022-03-10 17:11:46,501 [vert.x-eventloop-thread-3] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Client:1689840900 for stream CAM2 current video bitrate: 994133 audio bitrate: 0 webrtc client target bitrate: 5280000
2022-03-10 17:11:51,501 [vert.x-eventloop-thread-3] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Client:1689840900 for stream CAM2 current video bitrate: 965740 audio bitrate: 0 webrtc client target bitrate: 5280000
2022-03-10 17:11:56,501 [vert.x-eventloop-thread-3] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Client:1689840900 for stream CAM2 current video bitrate: 982903 audio bitrate: 0 webrtc client target bitrate: 5280000
2022-03-10 17:11:56,513 [network_thread - 206638] INFO  org.webrtc.Logging - Tag:WebRtcAudioTrackExternal - Message:GetPlayoutUnderrunCount
2022-03-10 17:11:59,872 [vert.x-worker-thread-18] INFO  i.a.e.w.codec.VirtualVideoEncoder - frame id: 252533172 capture TimeNs: 55000000000
2022-03-10 17:12:01,501 [vert.x-eventloop-thread-3] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Client:1689840900 for stream CAM2 current video bitrate: 962986 audio bitrate: 0 webrtc client target bitrate: 5280000
2022-03-10 17:12:06,501 [vert.x-eventloop-thread-3] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Client:1689840900 for stream CAM2 current video bitrate: 982613 audio bitrate: 0 webrtc client target bitrate: 5280000
2022-03-10 17:12:09,895 [NioProcessor-2] INFO  o.r.s.stream.ClientBroadcastStream - Checking mux adaptor to stop CAM2
2022-03-10 17:12:09,895 [NioProcessor-2] INFO  io.antmedia.muxer.MuxAdaptor - Calling stop for CAM2 input queue size:0
2022-03-10 17:12:09,895 [NioProcessor-2] INFO  o.r.s.stream.ClientBroadcastStream - Mux Adaptor stop called CAM2
2022-03-10 17:12:09,896 [NioProcessor-2] INFO  i.a.e.webrtc.WebRTCApplication - W3C x-category:stream x-event:unpublish c-ip:192.168.1.140 cs-bytes:7218453 sc-bytes:3615 x-sname:086831ec-ba63-4244-80c2-8ba26a3745b0 x-file-length:64 x-name:CAM2
2022-03-10 17:12:09,896 [NioProcessor-2] INFO  i.a.e.webrtc.WebRTCApplication - W3C x-category:session x-event:disconnect c-ip:192.168.1.140 c-client-id:0
2022-03-10 17:12:09,897 [vert.x-worker-thread-42] WARN  io.antmedia.muxer.MuxAdaptor - closing adaptor for CAM2 
2022-03-10 17:12:09,898 [vert.x-worker-thread-42] INFO  io.antmedia.muxer.MuxAdaptor - close resources for streamId -> CAM2
2022-03-10 17:12:09,898 [vert.x-worker-thread-42] INFO  io.antmedia.muxer.MuxAdaptor - Cancelling packet poller task(id:17) for streamId: CAM2
2022-03-10 17:12:09,903 [vert.x-worker-thread-42] INFO  io.antmedia.muxer.HLSMuxer - Delete File onexit:true upload to S3:true stream:CAM2 hls time:2 hlslist size:5 
2022-03-10 17:12:09,903 [vert.x-worker-thread-42] INFO  i.a.e.adaptive.EncoderAdaptor - closing input and number of dropped packets 0
2022-03-10 17:12:09,903 [vert.x-worker-thread-42] INFO  i.a.e.adaptive.EncoderAdaptor - Total video encode time 0ms, average video encode time 0ms total audio encode time 0ms total video decode time 0ms , average video decode time 0 ms 
2022-03-10 17:12:09,904 [vert.x-worker-thread-42] WARN  io.antmedia.muxer.MuxAdaptor - closed adaptor for CAM2
2022-03-10 17:12:09,904 [vert.x-worker-thread-42] INFO  i.a.AntMediaApplicationAdapter - Closing broadcast stream id: CAM2
2022-03-10 17:12:09,905 [vert.x-worker-thread-42] INFO  i.antmedia.statistic.HlsViewerStats - Reset HLS Stream ID: CAM2 remove failed or null
2022-03-10 17:12:09,911 [vert.x-worker-thread-47] INFO  i.a.e.adaptive.StreamAdaptor - Recording set to false in streamadaptor: 408871186 for stream: CAM2 stopping scheduler job id: 18
2022-03-10 17:12:09,911 [vert.x-worker-thread-47] INFO  i.a.e.adaptive.StreamAdaptor - Flushing video encoder:SFUForwarder for stream adaptor:408871186 stream id:CAM2
2022-03-10 17:12:09,912 [vert.x-worker-thread-47] WARN  i.a.e.adaptive.audio.OpusEncoder - Audio Encoder is not running right now. hashCode: 1950931260 for stream:CAM2
2022-03-10 17:12:09,912 [vert.x-worker-thread-47] INFO  i.a.e.adaptive.StreamAdaptor - Flushing audio encoder:libopus for stream adaptor:408871186 stream id:CAM2
2022-03-10 17:12:09,912 [vert.x-worker-thread-47] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - unregistering CAM2 muxer with 240p and codec: H264 from webrtc adaptor
2022-03-10 17:12:09,913 [vert.x-worker-thread-47] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Decreasing number of live streams: 0 and stream id:CAM2
2022-03-10 17:12:09,913 [vert.x-worker-thread-47] INFO  i.a.enterprise.webrtc.WebRTCMuxer - Average write packet call interval for video 22ms average video packet processing time 0ms video packet count: 1952 for stream:CAM2
2022-03-10 17:12:09,913 [vert.x-worker-thread-47] INFO  i.a.enterprise.webrtc.WebRTCMuxer - WebRTC Client 1689840900 video frame average sent period: 33.302612  audio frame average period: 0.0 for stream:CAM2 type:WebRTCClient
2022-03-10 17:12:09,913 [vert.x-worker-thread-47] INFO  i.a.enterprise.webrtc.WebRTCClient - Clearing native stats timer for stream:CAM2 and viewer hashcode:1689840900
2022-03-10 17:12:09,914 [vert.x-worker-thread-47] INFO  i.a.e.adaptive.video.SFUForwarder - Video codec writing trailer name: SFUForwarder height:240 for stream:CAM2
2022-03-10 17:12:09,914 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCClient - Stop is called for CAM2 for 1689840900
2022-03-10 17:12:09,914 [vert.x-worker-thread-47] INFO  i.a.e.adaptive.video.SFUForwarder - Total processing time 0 ms Average processing time 0 ms per frame for stream:CAM2
2022-03-10 17:12:09,914 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCClient - Disposing audio source for stream Id CAM2 viewer hashcode:1689840900
2022-03-10 17:12:09,914 [vert.x-worker-thread-47] INFO  i.a.e.adaptive.audio.OpusEncoder - writing trailer codec name: libopus bitrate:96000 for stream:CAM2
2022-03-10 17:12:09,914 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCClient - Closing and disposing peer connection for stream Id CAM2 for 1689840900
2022-03-10 17:12:09,914 [network_thread - 206638] INFO  org.webrtc.Logging - Tag:WebRtcAudioTrackExternal - Message:GetPlayoutUnderrunCount
2022-03-10 17:12:09,914 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - IceConnectionState: CLOSED instance: 1689840900
2022-03-10 17:12:09,914 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - Stop is already called for CAM2 viewer hashcode:1689840900
2022-03-10 17:12:09,914 [network_thread - 206638] INFO  i.a.enterprise.webrtc.WebRTCClient - onSignalingChange : CLOSED
2022-03-10 17:12:09,915 [network_thread - 206638] INFO  org.webrtc.Logging - Tag:WebRtcAudioRecordExternal - Message:stopRecording
2022-03-10 17:12:09,915 [vert.x-worker-thread-47] INFO  i.a.e.adaptive.StreamAdaptor - Average thread entrance interval 9ms for stream: CAM2
2022-03-10 17:12:09,915 [vert.x-worker-thread-47] INFO  i.a.e.adaptive.StreamAdaptor - Leaving streamadaptor: 408871186 for stream: CAM2
2022-03-10 17:12:09,919 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCClient - Closing peer connection factory for CAM2 viewer hashcode:1689840900
2022-03-10 17:12:09,920 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCClient - Stopping webrtc client number of send audio packet call: 0 send video packet call: 1302 client id: 1689840900
2022-03-10 17:12:09,920 [vert.x-eventloop-thread-0] INFO  i.a.enterprise.webrtc.WebRTCClient - Average sendVideoPacket call interval 33ms client id:1689840900
2022-03-10 17:12:09,920 [vert.x-eventloop-thread-0] INFO  i.a.e.w.WebRTCPlayStreamInfoListener - A viewer stopped streaming for CAM2
2022-03-10 17:13:07,822 [http-nio2-0.0.0.0-5080-exec-2] WARN  i.a.AntMediaApplicationAdapter - app settings bean updated for LiveApp
mekya commented 2 years ago

I've just had a quick analyze the file.