harlan-h / m3u8downloader_h Goto Github PK
View Code? Open in Web Editor NEW[.net6]m3u8下载器,功能强大,多线程,多任务,支持aes-128-cbc解密,自定义请求头,自定义插件
License: MIT License
[.net6]m3u8下载器,功能强大,多线程,多任务,支持aes-128-cbc解密,自定义请求头,自定义插件
License: MIT License
有log文件吗?有个直播只下了25分钟,我设置的最长下载是4h…
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:29031
#EXT-X-TARGETDURATION:4
#EXT-X-KEY:METHOD=AES-128,URI="https://cdn-key.hkdtmb.com/81/1688002981505.key",IV=0x00000000000000000000018904D16E81
#EXTINF:4.000,
1688003008966.ts
#EXTINF:4.000,
1688003013382.ts
#EXTINF:4.000,
1688003017421.ts
#EXT-X-KEY:METHOD=AES-128,URI="https://cdn-key.hkdtmb.com/81/1688003020776.key",IV=0x00000000000000000000018904D207E8
#EXTINF:4.000,
1688003020776.ts
#EXTINF:4.000,
1688003025089.ts
#EXTINF:4.000,
1688003031821.ts
#EXTINF:4.000,
1688003034696.ts
#EXTINF:4.000,
1688003036634.ts
#EXTINF:4.000,
1688003040654.ts
#EXTINF:4.000,
1688003049166.ts
#EXTINF:4.000,
1688003050790.ts
#EXTINF:4.000,
1688003052642.ts
#EXTINF:4.000,
1688003056849.ts
#EXT-X-KEY:METHOD=AES-128,URI="https://cdn-key.hkdtmb.com/81/1688003060849.key",IV=0x00000000000000000000018904D2A471
#EXTINF:4.000,
1688003060849.ts
#EXTINF:4.000,
1688003065419.ts
这个会议下午下了3个多小时(会议时长是3个多小时),下载结束后打开视频才1个多小时,进度条拖到最后,确实也只有1个多小时…
#EXT-X-KEY:METHOD=SAMPLE-AES,URI="skd://ChDy656Hr-4xToOFUpIfaK4oEhDlvHJq1JVNUUK3TFDtlI22GpIBeyJ2IjoiMiIsImZpZCI6IjUzZHYwMTUyMSIsInN2aWQiOiJkaWdpdGFsIiwicGwiOiJleUp3YVdRaU9pSTFNMlIyTURFMU1qRWlMQ0prWld4cGRtVnllVjkwZVhCbElqb2ljM1FpZlEiLCJjcyI6IjA0M2VjN2RhNWE0NDdkM2Y5NTE5Y2VkZmQ3NzE5OTliIn0",IV=0xe5bc726ad4954d5142b74c50ed948db6,KEYFORMAT="com.apple.streamingkeydelivery"
下载DMM发现它更新了加密方式,不是以前的drm_phone那种方式了,查了一下好像需要通过网络获取key。
System.InvalidOperationException: ffmpeg异常退出 退出码 (1).
这个怎么解决呢?
System.InvalidOperationException: ffmpeg异常退出 退出码 (1).
参数:
-allowed_extensions ALL -i D:\ruanjian\M3u8Downloader_H\download\19ad4b8cfc1d4d23ae703d023d5f4e70\generated.m3u8 -f mp4 -c:a copy -c:v copy -nostdin -y D:\ruanjian\M3u8Downloader_H\download\19ad4b8cfc1d4d23ae703d023d5f4e70.mp4
错误是:
ffmpeg version 4.4.1-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11.2.0 (Rev1, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
[hls @ 000001f8334dc500] Opening 'D:\ruanjian\M3u8Downloader_H\download\19ad4b8cfc1d4d23ae703d023d5f4e70\1.tmp' for reading
[hls @ 000001f8334dc500] Could not find codec parameters for stream 0 (Video: png, none(pc)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, hls, from 'D:\ruanjian\M3u8Downloader_H\download\19ad4b8cfc1d4d23ae703d023d5f4e70\generated.m3u8':
Duration: 00:01:00.11, bitrate: 0 kb/s
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: png, none(pc), 25 tbr, 25 tbn, 25 tbc
Metadata:
variant_bitrate : 0
Output #0, mp4, to 'D:\ruanjian\M3u8Downloader_H\download\19ad4b8cfc1d4d23ae703d023d5f4e70.mp4':
Output file #0 does not contain any stream
at M3u8Downloader_H.Core.VideoConverter.FFmpeg.ExecuteAsync(String arguments, IProgress`1 progress, CancellationToken cancellationToken)
at M3u8Downloader_H.Core.DownloaderSources.DownloaderSource.ConverterToMp4(String m3u8FilePath, Boolean allowed_extensions, CancellationToken cancellationToken)
at M3u8Downloader_H.Core.DownloaderSources.DownloaderSource.ConvertWithM3u8File(CancellationToken cancellationToken)
at M3u8Downloader_H.Core.DownloaderSources.DownloaderSource.Converter(Boolean isFile, CancellationToken cancellationToken)
at M3u8Downloader_H.Core.DownloaderSources.DownloadVodSource.DownloadAsync(CancellationToken cancellationToken)
at M3u8Downloader_H.Services.DownloadService.DownloadAsync(IDownloaderSource downloaderSource, DownloadRateSource downloadRate, CancellationToken cancellationToken)
at M3u8Downloader_H.ViewModels.DownloadViewModel.b__41_0()
下载的东西:nos.netease.co谷谷谷谷m/yanxuan/fa9fa2d7咕咕咕咕8b13ba4ae62c737b89a33cff.m3u8
版本是下载最新的
大佬,能够新增批量下载音频功能,提取在线视频中的音频,转换选项增加MP3
抖音现在有VR直播,一般在晚上18点-22点之间,有一些主播在播。尝试录制视频时发现这些直播的地址是无法在电脑的浏览器里播放的,直接提示只能在手机上播放,而且该直播的源数据应该是8k左右格式的,但是最高清晰度貌似限制了只能在移动端播放,最高清晰度可能还限制了只能是pico设备。直接用本软件输入直播地址来获取的话,会提示获取失败。大佬能否使本程序支持直接下载vr直播的视频?
目前我采用real-url那个软件可以获取到m3u8地址,然后把链接中的hd5vr2d字样,改为uhdvr2d字样,就可以用本软件下载4k的单画面视频,但仍然不能下载8k左右格式的原画面。
使用M3u8文件列表下载线程数不对,下载的buffer[]size也太小建议改大点,一般1M比较或者更大比较好,太小容易断联。
M3u8之类的视频根本不用ffmpg4,直接文件文件拼合就能出视频文件。
同时下载的线程数不能达到设置的线程,建议直接先创建下载Task列表
然后使用while循环去检测Task下载状态,使下载线程切换更快
具体:类似将作者加入监控列表,每隔X分钟检测一下直播间状态。一旦对方正在直播,则自动开启录制。这样可以保证不错过直播。
目前网上上具有类似功能的软件都失效了。
System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at M3u8Downloader_H.Common.Extensions.HttpClientExtension.GetStreamAndUriAsync(HttpClient httpClient, Uri uri, IEnumerable`1 headers, CancellationToken cancellationToken)
at M3u8Downloader_H.M3U8.M3UFileReaderManangers.M3UFileReaderManager.GetM3u8FileInfo(Uri uri, IEnumerable`1 headers, CancellationToken cancellationToken)
at M3u8Downloader_H.M3U8.M3UFileReaderManangers.M3UFileReaderManager.GetM3u8FileInfo(Uri uri, IEnumerable`1 headers, Boolean isRetry, CancellationToken cancellationToken)
at M3u8Downloader_H.Core.DownloaderSources.DownloadLiveSource.GetLiveFileInfos(Uri url, IEnumerable`1 Headers, CancellationToken cancellationToken)
at M3u8Downloader_H.Core.DownloaderSources.DownloadLiveSource.GetM3U8FileInfoAsync(CancellationToken cancellationToken)
at M3u8Downloader_H.Core.DownloaderSources.DownloadLiveSource.DownloadAsync(CancellationToken cancellationToken)
at M3u8Downloader_H.Services.DownloadService.DownloadAsync(IDownloaderSource downloaderSource, DownloadRateSource downloadRate, CancellationToken cancellationToken)
at M3u8Downloader_H.ViewModels.DownloadViewModel.<OnStart>b__41_0()
这种情况怎么挽救?
所在文件夹里都是碎片,打开单个文件,无法播放。怎么快速合并?
请求添加命令操作功能,如在windows上使用bat等命令操作
在下载多个视频时操作相对繁琐重复,如果可通过bat等命令来调用,可简化重复操作,如填写链接和名字
请问一下B站怎么下载呢?
用了猫抓在B站也没看到有那个M38U的链接.
m3u8 大部分站 现在都是这种加密方式
https://kr46.sogirl.so/stars-758-%ec%95%84%ec%98%a4%ec%a1%b0%eb%9d%bc-%ed%9e%88%ec%b9%b4%eb%a6%ac-hd/
还有
https://kbjav.com/
https://supjav.com/
这些都是一种加密方式。有办法添加上吗?
謝謝
能做到对所有的未加密的m3u8直播通用吗?
我这里显示restapi初始化失败,是正常的吗?
你参考下这段批处理:这是ts转为mp4的,不过这个不完善;会把分集的同源文件合并为一集,你顺着这个思路搞就好。谢谢!
SetLocal EnableDelayedExpansion
echo.>0.txt
for /f "delims=" %%a in ('dir /b/a-d *.ts') do (
echo %cd%%%a>>0.txt
)
for /f "delims=" %%i in (0.txt) do (
set str=%%i
set "str=!str:E:=file 'E:!"
set "str=!str:.ts=.ts'!"
echo !str!>>1.txt
)
move 1.txt 0.txt
ffmpeg.exe -f concat -safe 0 -i 0.txt -c copy out.mp4
pause
rem -safe 0: 防止Operation not permitted
rem dir /s /b *.ts> 0.txt此命令会列举子文件夹ts
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.