Skip to content

Batch download HLS .m3u8 indexes listed in an input file, merge each set of segments to a single .mkv-File.

License

Notifications You must be signed in to change notification settings

12ib21/HLS-Dl-.m3u8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HLS-Dl-.m3u8

Batch download HLS .m3u8 indexes listed in an input file, merge each set of segments to a single .mkv-File.

Usage

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.

About

Batch download HLS .m3u8 indexes listed in an input file, merge each set of segments to a single .mkv-File.

Resources

License

Stars

Watchers

Forks

Languages