Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Latest commit

 

History

History
34 lines (21 loc) · 1010 Bytes

README.md

File metadata and controls

34 lines (21 loc) · 1010 Bytes

streaming_calc

Bandwidth calculation for streaming server

Quality Gate Status Code Smells

Usage

Determine necessary server bandwidth

./streaming_calc.py bwserver nblisteners bitrate

./streaming_calc.py bwserver 250 64

Output

Number of listeners : 250
Bitrate (kb/s) : 64
Server bandwidth (Mib/s) : 15625.0

Determine the amount of data used for the streaming

./streaming_calc.py usagebw nblisteners bitrate nbdays nbhours

./streaming_calc.py usagebw 250 64 1 24

Output

Number of listeners : 250
Bitrate (kb/s) : 64
Number of days : 1
Number of hours by days : 24
Bandwidth used (GiB) : 164794.921875