1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #307, drop frame when VBR too high

This commit is contained in:
winlin 2020-04-17 12:30:53 +08:00
parent 606f8873b3
commit 14e3ec2fe8
10 changed files with 105 additions and 8 deletions

View file

@ -41,6 +41,10 @@ print "Repsonse %s"%(s)
obj = json.loads(s)
print ""
p = obj['data']['dropped']
print('RTC Frame Dropped: %s'%(100.0 * p['rtc_dropeed'] / p['rtc_frames']))
# 2, 3, 5, 9, 16, 32, 64, 128, 256
keys = ['lt_2', 'lt_3', 'lt_5', 'lt_9', 'lt_16', 'lt_32', 'lt_64', 'lt_128', 'lt_256', 'gt_256']
print("\n----------- 1 2 [3,4] [5,8] [9,15] [16,31] [32,63] [64,127] [128,255] [256,+) Packets"),