/m3u8-downloader-rs

rust语言写的m3u8下载器

Primary LanguageRust

m3u8-downloader-rs

Rust练手项目: 一个简易的m3u8下载器

实现原理: 通过http://xxxxx.com/xxx.m3u8文件获取ts片段, 下载ts文件合并成一个文件, 目前只支持无key下载。

实现效果:

3.79 MB / 3.79 MB [============================================================================================================] 100.00 % 20.68 MB/s 
./download/output000.ts:下载成功!
4.06 MB / 4.06 MB [============================================================================================================] 100.00 % 23.06 MB/s 
./download/output001.ts:下载成功!
3.62 MB / 3.62 MB [============================================================================================================] 100.00 % 21.71 MB/s 
./download/output002.ts:下载成功!
3.77 MB / 3.77 MB [============================================================================================================] 100.00 % 20.96 MB/s 
./download/output003.ts:下载成功!
3.78 MB / 3.78 MB [============================================================================================================] 100.00 % 20.38 MB/s 
./download/output004.ts:下载成功!
3.89 MB / 3.89 MB [============================================================================================================] 100.00 % 20.59 MB/s 
./download/output005.ts:下载成功!
3.40 MB / 3.40 MB [============================================================================================================] 100.00 % 19.76 MB/s 
./download/output006.ts:下载成功!
1.48 MB / 1.48 MB [============================================================================================================] 100.00 % 14.09 MB/s 
./download/output007.ts:下载成功!
146.88 KB / 146.88 KB [=========================================================================================================] 100.00 % 2.71 MB/s 
./download/output008.ts:下载成功!
文件合并至: ./kuux1HO.ts