Recursive HTTP Live Streaming Downloader!
Download and install the latest hlsdownload.phar
(see releases page for details):
$ wget "https://ejz.ru/hlsdownload.phar"
$ chmod +x hlsdownload.phar
$ sudo mv hlsdownload.phar /usr/local/bin/hlsdownload
Test it:
$ hlsdownload "http://content.jwplatform.com/manifests/nJEIV3eJ.m3u8"
PHP 5.5 or above (with cURL library installed).
- The
-d
option sets target directory - The
-F
option allows you to select streams from master manifest - The
--progress
option turns on progress animation (percents) - The
--limit-rate
limits download speed - The
--decrypt
turns on decryption (by default it's turned on) - The
--no-decrypt
turns off decryption - The
--continue
option in case of disconnect helps you to continue
Download stream with highest bitrate:
$ hlsdownload -F bandwidth=max "http://content.jwplatform.com/manifests/nJEIV3eJ.m3u8"
Save to /tmp
and limit connection speed:
$ hlsdownload -d /tmp --limit-rate 100k "http://content.jwplatform.com/manifests/nJEIV3eJ.m3u8"
HLSDownload is licensed under the WTFPL License (see LICENSE).