更新:
修复下载链接中的引号问题。
支持的下载方式:
1.从m3u8链接下载,参数 -i 2.从本地文件读取下载链接下载,参数 -f
参数说明:
- 如果直接从m3u8下载链接下载请使用-i参数, 示例:m3u8_downloader -i http://www.h4ck.org.cn/porn/av.m3u8, 同时支持下载mp4、avi文件。直接修改下载链接即可。
- 支持从文件读取下载链接批量下载,支持文本格式和csv格式,csv格式可以自定下下载后的文件名。文本格式按照每行一个下载链接组织内容即可。示例:
m3u8_downloader -f /Users/obaby/Downloads/m3u8_list/f_26.csv
- 如果下载单个文件可以通过-o参数指定输出文件名,配合-i参数使用, 实例:m3u8_downloader -i http://www.h4ck.org.cn/porn/av.m3u8 -o av.mp4
- 从文件读取下载链接可以通过-p参数指定输出目录,在-p模式下或者没有指定输出文件名称的情况下,程序会自动生成文件名。实例:m3u8_downloader -f /Users/obaby/Downloads/m3u8_list/f_26.csv -p /Volumes/home/Porn/20201023
csv文件结构:
下载测试:
C:\Users\obaby>F:\Pycharm_Projects\m3u8_downloader\dist\m3u8_downloader\m3u8_downloader.exe -f C:\Users\obaby\Downloads\download7.csv -p \\192.168.1.108\home\tmp\test **************************************************************************************************** [S] 开始下载任务...... [C] 下载链接: [C] 输出目录:\\192.168.1.108\home\tmp\test [C] 输出文件:伪娘魏露丝展示骚菊,干净无病,想不想来插插小妖的洞穴嚒[D42BCC02].mp4 [C] 创建目录: \\192.168.1.108\home\tmp\test [S] 开始下载...... [D] 下载文件...... [D] 文件路径:\\192.168.1.108\home\tmp\test\伪娘魏露丝展示骚菊,干净无病,想不想来插插小妖的洞穴嚒[D42BCC02].mp4 [E] 文件已经存在,跳过 **************************************************************************************************** [C] 输出文件:温柔乖乖女和人妖竟然是闺蜜周末闲来无事脱掉内裤吃屌添逼恋人一样的爱爱抽插射爱液[2CC170B0].mp4 [C] 创建目录: \\192.168.1.108\home\tmp\test [S] 开始下载...... [D] 下载文件...... [D] 文件路径:\\192.168.1.108\home\tmp\test\温柔乖乖女和人妖竟然是闺蜜周末闲来无事脱掉内裤吃屌添逼恋人一样的爱爱抽插射爱液[2CC170B0].mp4 F:\Pycharm_Projects\m3u8_downloader\dist\m3u8_downloader\bin/ffmpeg.exe -protocol_whitelist "file,http,crypto,tcp,https,tls" -i "https://cust91rb2.163cdn.net/hls/videos/103000/103728/103728.mp4/index.m3u8" -c copy "\\192.168.1.108\home\tmp\test\温柔乖乖女和人妖竟然是闺蜜周末闲来无事脱掉内裤吃屌添逼恋人一样的爱爱抽插射爱液[2CC170B0].mp4" ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 10.2.1 (GCC) 20200726 configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --enable-librav1e --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat 58. 45.100 / 58. 45.100 libavdevice 58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 libpostproc 55. 7.100 / 55. 7.100 [hls @ 0000026bf7085b40] Skip ('#EXT-X-ALLOW-CACHE:YES') [hls @ 0000026bf7085b40] Skip ('#EXT-X-VERSION:3') [hls @ 0000026bf7085b40] Opening 'https://cust91rb2.163cdn.net/hls/videos/103000/103728/103728.mp4/seg-1-v1-a1.ts' for reading [hls @ 0000026bf7085b40] Opening 'https://cust91rb2.163cdn.net/hls/videos/103000/103728/103728.mp4/seg-2-v1-a1.ts' for reading Input #0, hls, from 'https://cust91rb2.163cdn.net/hls/videos/103000/103728/103728.mp4/index.m3u8': Duration: 00:26:14.12, start: 0.101000, bitrate: 0 kb/s Program 0 Metadata: variant_bitrate : 0 Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Metadata: variant_bitrate : 0 Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp Metadata: variant_bitrate : 0 Stream #0:2: Data: timed_id3 (ID3 / 0x20334449) Metadata: variant_bitrate : 0 Output #0, mp4, to '\\192.168.1.108\home\tmp\test\温柔乖乖女和人妖竟然是闺蜜周末闲来无事脱掉内裤吃屌添逼恋人一样的爱爱抽插射爱液[2CC170B0].mp4': Metadata: encoder : Lavf58.45.100 Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc Metadata: variant_bitrate : 0 Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp Metadata: variant_bitrate : 0 Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [https @ 0000026bf78dc040] Opening 'https://cust91rb2.163cdn.net/hls/videos/103000/103728/103728.mp4/seg-3-v1-a1.ts' for reading [https @ 0000026bf7b31080] Opening 'https://cust91rb2.163cdn.net/hls/videos/103000/103728/103728.mp4/seg-4-v1-a1.ts' for reading [https @ 0000026bf78dc040] Opening 'https://cust91rb2.163cdn.net/hls/videos/103000/103728/103728.mp4/seg-5-v1-a1.ts' for reading [https @ 0000026bf7b31080] Opening 'https://cust91rb2.163cdn.net/hls/videos/103000/103728/103728.mp4/seg-6-v1-a1.ts' for reading [https @ 0000026bf78dc040] Opening 'https://cust91rb2.163cdn.net/hls/videos/103000/103728/103728.mp4/seg-7-v1-a1.ts' for reading [https @ 0000026bf7b31080] Opening 'https://cust91rb2.163cdn.net/hls/videos/103000/103728/103728.mp4/seg-8-v1-a1.ts' for reading [https @ 0000026bf78dc040] Opening 'https://cust91rb2.163cdn.net/hls/videos/103000/103728/103728.mp4/seg-9-v1-a1.ts' for reading [https @ 0000026bf7b31080] Opening 'https://cust91rb2.163cdn.net/hls/videos/103000/103728/103728.mp4/seg-10-v1-a1.ts' for reading [https @ 0000026bf78dc040] Opening 'https://cust91rb2.163cdn.net/hls/videos/103000/103728/103728.mp4/seg-11-v1-a1.ts' for reading [https @ 0000026bf7b31080] Opening 'https://cust91rb2.163cdn.net/hls/videos/103000/103728/103728.mp4/seg-12-v1-a1.ts' for reading frame= 2582 fps=407 q=-1.0 Lsize= 6936kB time=00:01:43.24 bitrate= 550.4kbits/s speed=16.3x
下载地址:
https://obaby.lanzouh.com/iCCRe02nkcsb
文件哈希:
名称: m3u8_downloader_21_11_02.7z
大小: 39341962 字节 (37 MiB)
CRC32: A7F37EDF
CRC64: C8665ADD570439F3
SHA256: b135231513a10851ce4c48e597ed3965e548fa5005fc5e26887c63444da3d6ff
SHA1: 3def81d40e697bee2d626184d08ec94f11aba53c
BLAKE2sp: 82253426c54c7514c89d97a537067e7531d3f4e745f17a810ab3cc587e7f29f3