2017 © Pedro Peláez
 

project hls-monitor

Console script to monitor that HLS links are accessible (supports adaptive streaming)

image

lezhnev74/hls-monitor

Console script to monitor that HLS links are accessible (supports adaptive streaming)

  • Saturday, June 24, 2017
  • by lezhnev74
  • Repository
  • 1 Watchers
  • 0 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

HLS-monitor

Console script to monitor that HLS links are accessible (supports adaptive streaming), (*1)

Install via Composer

composer require lezhnev74/hls-monitor

Usage

Package comes with a console file located at vendor/bin/hls-monitor. Check that playlist is available and all it's streams are accessible from the Internet (in 10 simultaneous connections), (*2)

vendor/bin/hls-monitor playlists --log log.txt --concurrency=10 https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8

Output will be something like this:, (*3)

#---------------------------------------------------
Executed on node: <YOUR_PUBLIC_IP>
Date of execution: 29.11.2016, 10:04 UTC
#---------------------------------------------------

Concurrency level:50
Playlists fetching is over in 0.7s
Streams fetching is over in 0.68s
Chunks fetching is over in 255.22s

The console command will return code 0 if no problems found. In case of some stream is not accessible, you will see someting like this:, (*4)

#---------------------------------------------------
Executed on node: <YOU_PUBLIC_IP>
Date of execution: 29.11.2016, 11:11 UTC
#---------------------------------------------------

Downloading playlist...DONE
Playlist is located on: 127.0.0.1
Found streams in playlist: 3
Started checking streams
Stream is not accessible: http://m3u8provider.dev.com/stream2.m3u8
Stream has unaccessible chunks:
|--Chunk: http://m3u8provider.dev.com/04.ts
|--Chunk: http://m3u8provider.dev.com/05.ts
|---
Checking Streams is DONE

Reporting

At this version library has no reporting capabilities., (*5)

You will have to write a wrapper for this tool which will capture all of the failed output and will email it to you or report to somewhere., (*6)

Pseudo code looks like this:, (*7)

```php, (*8)

$playlists = [...many playlists to check...]; $failed_reports = [];, (*9)

// for each given playlist - make checking $output = []; $return_code = 0; exec('vendor/bin/hls-monitor playlists '.implode(",",$playlists), $output, $return_code);, (*10)

if($return_code) { // there were problems with this palylist $failed_reports[] = $output; }, (*11)

// then report if anything is not good if(count($failed_reports)) { // mail reports to somewhere }, (*12)

```, (*13)

The Versions

24/06 2017

dev-master

9999999-dev

Console script to monitor that HLS links are accessible (supports adaptive streaming)

  Sources   Download

MIT

The Requires

 

The Development Requires

24/06 2017

1.0.9

1.0.9.0

Console script to monitor that HLS links are accessible (supports adaptive streaming)

  Sources   Download

MIT

The Requires

 

The Development Requires

07/12 2016

v1.0.8

1.0.8.0

Console script to monitor that HLS links are accessible (supports adaptive streaming)

  Sources   Download

MIT

The Requires

 

The Development Requires

02/12 2016

dev-multithreaded

dev-multithreaded

Console script to monitor that HLS links are accessible (supports adaptive streaming)

  Sources   Download

MIT

The Requires

 

The Development Requires

02/12 2016

v1.0.7

1.0.7.0

Console script to monitor that HLS links are accessible (supports adaptive streaming)

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2016

v1.0.6

1.0.6.0

Console script to monitor that HLS links are accessible (supports adaptive streaming)

  Sources   Download

MIT

The Requires

 

The Development Requires

30/11 2016

v1.0.5

1.0.5.0

Console script to monitor that HLS links are accessible (supports adaptive streaming)

  Sources   Download

MIT

The Requires

 

The Development Requires

30/11 2016

v1.0.3

1.0.3.0

Console script to monitor that HLS links are accessible (supports adaptive streaming)

  Sources   Download

MIT

The Requires

 

The Development Requires

29/11 2016

1.0.1

1.0.1.0

Console script to monitor that HLS links are accessible (supports adaptive streaming)

  Sources   Download

MIT

The Requires

 

The Development Requires

29/11 2016

v1.0.2

1.0.2.0

Console script to monitor that HLS links are accessible (supports adaptive streaming)

  Sources   Download

MIT

The Requires

 

The Development Requires

28/11 2016

v1.0.0

1.0.0.0

Console script to monitor that HLS links are accessible (supports adaptive streaming)

  Sources   Download

MIT

The Requires

 

The Development Requires