Adaptive Bitrate Client Target Calculation

35 views
Skip to first unread message

Matt Lowe

unread,
Jul 1, 2020, 4:14:22 PM7/1/20
to Ant Media Server
Hello,

I'm wondering how client target for adaptive bit-rate is calculated. I have some clients who I know have much stronger internet connections reporting targets that are quite low

I can't seem to get a WebRTC stream over 2.3Mbps to a client

Also, is it possible to set higher bit-rates for HLS streams than WebRTC streams? Would love to be able to set a lower bit-rate for WebRTC stream and a high bit-rate for HLS where it can buffer easier 

2020-07-01 20:10:23,233 [vert.x-eventloop-thread-2] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Client:572656515 for stream 258078917669599715913742 current video bitrate: 2000000 audio bitrate: 128000 webrtc client target bitrate: 2528000
2020-07-01 20:10:23,252 [network_thread - 5645] INFO  org.webrtc.Logging - Tag:WebRtcAudioTrackExternal - Message:GetPlayoutUnderrunCount
2020-07-01 20:10:23,256 [vert.x-eventloop-thread-15] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Client:1589516411 for stream 258078917669599715913742 current video bitrate: 1500000 audio bitrate: 128000 webrtc client target bitrate: 1089500
2020-07-01 20:10:23,342 [network_thread - 5540] INFO  org.webrtc.Logging - Tag:WebRtcAudioTrackExternal - Message:GetPlayoutUnderrunCount
2020-07-01 20:10:23,343 [vert.x-eventloop-thread-4] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Client:32252718 for stream 258078917669599715913742 current video bitrate: 2000000 audio bitrate: 128000 webrtc client target bitrate: 2520000
2020-07-01 20:10:23,352 [network_thread - 5551] INFO  org.webrtc.Logging - Tag:WebRtcAudioTrackExternal - Message:GetPlayoutUnderrunCount
2020-07-01 20:10:23,355 [vert.x-eventloop-thread-3] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Client:2101172705 for stream 258078917669599715913742 current video bitrate: 1500000 audio bitrate: 128000 webrtc client target bitrate: 1380000
2020-07-01 20:10:23,394 [network_thread - 5562] INFO  org.webrtc.Logging - Tag:WebRtcAudioTrackExternal - Message:GetPlayoutUnderrunCount
2020-07-01 20:10:23,399 [vert.x-eventloop-thread-5] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Client:1219759679 for stream 258078917669599715913742 current video bitrate: 1500000 audio bitrate: 128000 webrtc client target bitrate: 885500
2020-07-01 20:10:23,425 [EncoderQueue - 5598] INFO  i.a.e.w.codec.VirtualVideoEncoder - setRateAllocation bitrate: 907000 framerate: 60 adjusted bitrate:451500 for client: 87290645
2020-07-01 20:10:24,402 [network_thread - 5576] INFO  org.webrtc.Logging - Tag:WebRtcAudioTrackExternal - Message:GetPlayoutUnderrunCount
2020-07-01 20:10:24,408 [vert.x-eventloop-thread-6] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Client:323461706 for stream 258078917669599715913742 current video bitrate: 2000000 audio bitrate: 128000 webrtc client target bitrate: 2540000
2020-07-01 20:10:24,900 [network_thread - 5588] INFO  org.webrtc.Logging - Tag:WebRtcAudioTrackExternal - Message:GetPlayoutUnderrunCount
2020-07-01 20:10:24,900 [vert.x-eventloop-thread-7] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - Client:569673064 for stream 258078917669599715913742 current video bitrate: 1500000 audio bitrate: 128000 webrtc client target bitrate: 514500

Ant Media

unread,
Jul 2, 2020, 2:52:31 AM7/2/20
to ma...@goodco.tv, ant-medi...@googlegroups.com
Hi Matt,
The calculation is made by native side of WebRTC code and it may be lower than your expectation because of the UDP protocol. If you increase bitrate from source or adaptive settings it may also increase.

Actually, HLS also creates the incoming bitrate even if you add an adaptive setting. 

PS 1: 2000th instance celebration campaign is ongoing. You still have a chance to join at https://antmedia.io/?add-to-cart=1576&coupon=CELEBRATE-2000-DISCOUNT
PS 2: Free or Paid one-on-one support and consultancy for your streaming project, please book at https://calendly.com/antmedia/
Regards,
Burak Kekec
, Matt <ma...@goodco.tv> wrote:
--
You received this message because you are subscribed to the Google Groups "Ant Media Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ant-media-serv...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ant-media-server/ae627af8-2e60-4b31-b984-670b4634dfb1n%40googlegroups.com.
11661:1264838
Reply all
Reply to author
Forward
0 new messages