Our customers are seeing different performance (primarily frame drops it seems) even with the same setup but at different times.
Wondering what tooling is available to help us detect and debug these issues both as a test before an event and to diagnose situations during an event.
Hard to figure out right now if its their LAN/WiFi, their Internet connection, the TUN connection, their device, the server or something else.
Pretty sure its not the server. The server is very underutilized right now running under 10% CPU 99% of the time.
Todays' problem was the video was very jerky though the audio was perfect. Though when we had run test streams earlier we did not have this problem.
Looking at the Antmedia server logs during the actual event, I see that what I believe was significant amount of drop frames by the WebRTC encoder. I put a snippet of the WebRTCEncoder log lines below. Other times and places we get fine video quality....
Are there any tools we could use to help with figuring out where the bottleneck is? Any other suggestions?
Are there other ways to have the dashboard show these stats in a way that is more clear?
2021-02-23 00:14:00,164 [network_thread - 12902] INFO i.a.e.adaptive.WebRTCEncoderAdaptor - Publish Stats StreamId: 0995eb7f-47ad-4948-8913-b6e7d037803d TransferedByte: 1489058 Stream Duration: 39513 Bitrate: 37 Source IP: User-Agent: N/A
2021-02-23 00:14:05,307 [IncomingVideoSt - 12911] INFO i.a.e.adaptive.WebRTCEncoderAdaptor - Number of video frames pending in the queue: 1, received total video frames: 300 received fps: 6 for stream 0995eb7f-47ad-4948-8913-b6e7d037803d
2021-02-23 00:14:10,167 [network_thread - 12902] INFO i.a.e.adaptive.WebRTCEncoderAdaptor - audio stats: { timestampUs: 1614039250166406, type: inbound-rtp, id: RTCInboundRTPAudioStream_4252049050, ssrc: 4252049050, isRemote: false, mediaType: "audio ", kind: "audio", trackId: "RTCMediaStreamTrack_receiver_139", transportId: "RTCTransport_0_1", codecId: "RTCCodec_0_Inbound_111", packetsReceived: 2475, bytesReceived: 197147, headerBytesReceived: 59400, packetsLost: 14, lastPacketReceivedTimestamp:
1.9022110955E7, jitter: 0.027 }
2021-02-23 00:14:10,167 [network_thread - 12902] INFO i.a.e.adaptive.WebRTCEncoderAdaptor - Publish Stats StreamId: 0995eb7f-47ad-4948-8913-b6e7d037803d TransferedByte: 1921050 Stream Duration: 49516 Bitrate: 38 Source IP: User-Agent: N/A
2021-02-23 00:14:16,657 [IncomingVideoSt - 12911] INFO i.a.e.adaptive.WebRTCEncoderAdaptor - Number of video frames pending in the queue: 1, received total video frames: 400 received fps: 7 for stream 0995eb7f-47ad-4948-8913-b6e7d037803d
2021-02-23 00:14:20,162 [network_thread - 12902] INFO i.a.e.adaptive.WebRTCEncoderAdaptor - audio stats: { timestampUs: 1614039260161466, type: inbound-rtp, id: RTCInboundRTPAudioStream_4252049050, ssrc: 4252049050, isRemote: false, mediaType: "audio ", kind: "audio", trackId: "RTCMediaStreamTrack_receiver_139", transportId: "RTCTransport_0_1", codecId: "RTCCodec_0_Inbound_111", packetsReceived: 2974, bytesReceived: 237682, headerBytesReceived: 71376, packetsLost: 18, lastPacketReceivedTimestamp:
1.9022120917E7, jitter: 0.021 }
2021-02-23 00:14:20,162 [network_thread - 12902] INFO i.a.e.adaptive.WebRTCEncoderAdaptor - Publish Stats StreamId: 0995eb7f-47ad-4948-8913-b6e7d037803d TransferedByte: 2221367 Stream Duration: 59511 Bitrate: 37 Source IP: User-Agent: N/A
2021-02-23 00:14:30,163 [network_thread - 12902] INFO i.a.e.adaptive.WebRTCEncoderAdaptor - audio stats: { timestampUs: 1614039270162768, type: inbound-rtp, id: RTCInboundRTPAudioStream_4252049050, ssrc: 4252049050, isRemote: false, mediaType: "audio ", kind: "audio", trackId: "RTCMediaStreamTrack_receiver_139", transportId: "RTCTransport_0_1", codecId: "RTCCodec_0_Inbound_111", packetsReceived: 3470, bytesReceived: 277593, headerBytesReceived: 83280, packetsLost: 22, lastPacketReceivedTimestamp:
1.9022130962E7, jitter: 0.027 }
2021-02-23 00:14:30,163 [network_thread - 12902] INFO i.a.e.adaptive.WebRTCEncoderAdaptor - Publish Stats StreamId: 0995eb7f-47ad-4948-8913-b6e7d037803d TransferedByte: 2570669 Stream Duration: 69512 Bitrate: 36 Source IP: User-Agent: N/A
2021-02-23 00:14:40,165 [network_thread - 12902] INFO i.a.e.adaptive.WebRTCEncoderAdaptor - audio stats: { timestampUs: 1614039280164747, type: inbound-rtp, id: RTCInboundRTPAudioStream_4252049050, ssrc: 4252049050, isRemote: false, mediaType: "audio ", kind: "audio", trackId: "RTCMediaStreamTrack_receiver_139", transportId: "RTCTransport_0_1", codecId: "RTCCodec_0_Inbound_111", packetsReceived: 3970, bytesReceived: 317387, headerBytesReceived: 95280, packetsLost: 23, lastPacketReceivedTimestamp:
1.9022140944E7, jitter: 0.024 }