Download m3u8 media with multithreading, support decrypt
./m3u8-Downloader-Go -u "http://wwww.example.com/example.m3u8" -o video.ts
./m3u8-Downloader-Go -f example.m3u8 -H Referer:http://www.example.com -H 'User-Agent:Chrome/83.0.4103.61 Safari/537.36'
When using the -f parameter, if the m3u8 file does not contain a specific link to the media, but only the media name, you must specify the -u parameter
Some websites will add an image header at the beginning of the video file. The tool will attempt to remove these header. If there are issues with the downloaded video, please try using the --nofix
parameter
./m3u8-Downloader-Go -h
Usage:
./m3u8-Downloader-Go [Flags] [Options]
Flags:
-m,--merge-with-ffmpeg merge with ffmpeg
-n,--nofix don't try to remove the image header of the ts file
-s,--skipverify skip verify server certificate
Options:
-F,--ffmpeg path of ffmpeg [default: ffmpeg]
-H,--header http header. Example: Referer:http://www.example.com
-V,--version print version information
-c,--connections number of connections [default: 16]
-f,--m3u8-file use local m3u8 file instead of downloading from url
-h,--help print the help information
-o,--out-file out file
-p,--proxy proxy. Example: http://127.0.0.1:8080
-r,--retry number of retries [default: 3]
-t,--timeout timeout [default: 60s]
-u,--url url of m3u8 file
-d,--desired-resolution desired resolution. Example: 1920x1080