Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.82 KB

README.md

File metadata and controls

31 lines (24 loc) · 1.82 KB

Hls Proxy

hls-proxy is a tool that allows for easy downloading or mirroring of remote HLS streams.

How to use

Mirroring a remote live HLS stream

./start-proxy.sh http://server.com/live-stream.m3u8 -o .

The content of http://server.com/live-stream.m3u8 will be downloaded to the output directory (specified by -o). The playlist will be constantly refreshed and when new content is available it will be also downloaded while old content will be removed. This will practically mirror the remote hls stream in the output directory (-o). The downloaded stream itself can be served using any HTTP server.

Downloading a remote live HLS stream

./start-proxy.sh http://server.com/live-stream.m3u8 -o . -d

This will behave just as the above command except that old content will not be deleted effectively downloading the live stream in the output directory (-o). This is useful for downloading a long sample of a live stream that can latter be used for debugging and testing puposes.

Downloaidng a remote VoD HLS steram

./start-proxy.sh http://server.com/vod-stream.m3u8 -o . -d

The VoD stream will be downloaded in the output directory (-o). In this case the download (-d) parameter is effectively ignored. In this example it is provided for clarity.

Supported features

  • All HLS v3 features are supported including Live, VoD, ABR, and encrypted streams

Dependencies

hls-proxy requires python-2.7, Twisted-13.2 and zope.interface. start-proxy.sh will download and setup Twisted. The only things that need to be installed manually are python and zope.interface. Most linux distros provide these as packages. For detailed information on how to install them refer to your distro manual. Alternatively you can use pip.

License

MIT