Batch download HLS .m3u8 indexes listed in an input file, merge each set of segments to a single .mkv-File.
Create Config File named jobs.txt. Input file format (one job per line): Input file format (one job per line):
- Remote index:
output_name.mkv;https://.../index-v1-a1.m3u8?... - Local index:
output_name.mkv;local_index.m3u8
When a local .m3u8 file is provided, relative segment paths inside the
file are resolved relative to the .m3u8 location and local segment files
are copied directly. HTTP/HTTPS segments are downloaded as usual.
Run:
python ./dl.py
The script prints live per-job download progress to the terminal.
Requires: Python 3.8+, requests, ffmpeg on PATH.