An aggressive HLS proxy for slow networks
I wrote this program just to watch Worldcup on the internet over unstable connection. therefore it's unpolished and might not work for you out of the box. If you have fast connection i recommend using this or this
git clone https://github.com/carp3/aggressive-HLS-proxy.git
cd aggressive-HLS-proxy
pip install m3u8
mkdir cache && chmod +w cache
aria2c --enable-rpc --rpc-listen-all --max-concurrent-downloads=5 --max-connection-per-server=10 --min-split-size=1M
python2 aggressive-HLS-proxy http://domain.com/path/to/livetv.hls --port=8899 --proxy=proxyserver.com:3128 --delay=30
Wait around 30 seconds for cache to build-up
Open http://localhost:8899/stream.delay.m3u8 in VLC
- Compatibility with python3 ( it's easily doable with 2to3 )
- Ditching aria2 and download segments with python
- Create delayed playlist immediately and gradually increase delay (How? without resampling. perhaps by inserting short blank gaps between segments )
- Support for encrypted playlists