An open API service indexing awesome lists of open source software.

https://github.com/makandra/validate-hls

Smoke test for HLS stream integrity
https://github.com/makandra/validate-hls

hls validator

Last synced: 7 months ago
JSON representation

Smoke test for HLS stream integrity

Awesome Lists containing this project

README

        

Validate HLS streams
====================

This script checks a HLS playlist for the following:

- Whether all `.ts` fragments can be downloaded for all quality levels
- Whether all `.ts` fragments have video frames
- Whether all `.ts` fragments start with a keyframe

These are just the issues that we check for. There are other things that can go wrong with a HLS stream.

Note that **we do not actively maintain this script**. You will need to fix any issues yourself.

Setup
-----

- Install `ffmpeg`
- Install `wget`
- Install Ruby 2+
- Clone this repo to get the script

Usage
------

```
ruby validate-hls.rb "http://host/path/playlist.m3u8"
```

This will download, validate and print results for each `.m3u8` and `.ts` URL.

The URL can point to either a playlist of `.ts` files, or to a master playlist of multiple quality playlists.

You can also pass more than one playlist URL as multiple arguments to `validate-hls.rb`, in which case all URLs will be validated.

The script returns an error code if there was at least one validation error.

Credits
-------

Henning Koch ([@triskweline](https://twitter.com/triskweline)) from [makandra](https://makandra.com).