Skip to content

This is a small utility that enables one to simulate typical network traffic when end users are viewing HTTP Live Streaming (HLS).

License

Notifications You must be signed in to change notification settings

Spotme/HLS-Live-Traffic-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

HLS-Live-Traffic-Generator

This is a small utility that enables one to simulate typical network traffic when end users are viewing HTTP Live Streaming (HLS).

When setting up and configuring corporate traffic shaping (QoS), corporate VPN setting, this tool can come in handy for IT teams to test their setting by simulating a fare amount of typical live video streaming network traffic.

Running the tool

The tool is a simple interactive command line program written in Python.

To run the tool, launch it with the following parameters:

python3 HLS_live_traffic_generator.py [m3u8_url] [local_folder] [nb_segments_to_download] [nb_of_threads] [variant_nb]

Example:

python3 HLS_live_traffic_generator.py https://[your_cdn_domain]/index.m3u8 test/ 30 10 1

In the above example command line:

test/ = the folder in which the segments and playlists will be downloaded to
30 = the number of video segments to download in that test
10 = the number of downloader threads (one thread = one user)
1 = the variant playlist to download (highest resolution = highest possible load on the network)

About

This is a small utility that enables one to simulate typical network traffic when end users are viewing HTTP Live Streaming (HLS).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages