nilaoda / n_m3u8dl-re Goto Github PK
View Code? Open in Web Editor NEWCross-Platform, modern and powerful stream downloader for MPD/M3U8/ISM. English/简体中文/繁體中文.
License: MIT License
Cross-Platform, modern and powerful stream downloader for MPD/M3U8/ISM. English/简体中文/繁體中文.
License: MIT License
这是我的测试地址:https://new.qqaku.com/20220819/g63uLb7E/index.m3u8
它的内容里包含了另一个地址:https://new.qqaku.com/20220819/g63uLb7E/1100kb/hls/playlist_up.m3u8
这是控制台信息
./N_m3u8DL-RE https://new.qqaku.com/20220819/g63uLb7E/index.m3u8
07:20:30.059 INFO : 加载URL: https://new.qqaku.com/20220819/g63uLb7E/index.m3u8
07:20:31.111 INFO : 内容匹配: HTTP Live Streaming
07:20:31.111 INFO : 正在解析媒体信息...
07:20:31.111 WARN : 检测到Master列表,开始解析全部流信息
07:20:31.123 INFO : 已解析, 共计 1 条媒体流, 基本流 1 条, 可选音频流 0 条, 可选字幕流 0 条
07:20:31.123 INFO : Vid 960x540 | 1100 Kbps
07:20:31.138 ERROR : Object reference not set to an instance of an object.
現時m3u8dl://為獨立執行
建議加入下載序列, 減低負載
大佬为什么解密完ffmpeg不自动合并,环境变量添加了ffmpeg,N_m3u8DL-RE.exe同目录也有ffmpeg.exe
Hi bro .. is there any options like geo bypass country ??
RT
环境:Debian+Arm64
问题:在下载视频文件时,会时常报错WARN : Response status code does not indicate success: 403 (Forbidden).
但由于重试次数不足,导致分片没有下载下来,合并失败
Is possible add support for record/download live mpd streaming?
建议重点linux
conf配置文件,
后台运行,
简单web功能
谢谢
17:30:01.505 INFO : Content Matched: HTTP Live Streaming
17:30:01.505 INFO : Parsing streams...
17:30:01.864 WARN : Writing meta json
17:30:01.898 INFO : Extracted, there are 1 streams, with 1 basic streams, 0 audio streams, 0 subtitle streams
17:30:01.899 INFO : Vid *AES_128 Kbps | 1771 Segments | ~01h58m05s
17:30:01.901 WARN : Writing meta json
17:30:01.939 INFO : Selected streams:
17:30:01.941 INFO : Vid *AES_128 Kbps | 1771 Segments | ~01h58m05s
17:30:01.944 INFO : Start downloading...Vid Kbps
17:30:04.678 WARN : Reading media info...
17:30:05.131 INFO : [0x100]: Video, h264 (High) ([27][0][0][0]), 1280x720, 97 fps
17:30:05.136 INFO : [0x101]: Audio, aac (LC) ([15][0][0][0]), 142 kb/s
17:34:04.784 INFO : ffmpeg merging...
17:34:05.257 INFO : Done
没有报错信息,没有合并,临时文件夹还在,里面的ts文件可以正常打开.
请问哪里可以看到日志嘛?
环境是Linux Debian arm64
试着下载另一个小视频 可以正常合并
Hi nilaoda, I just like to know how long will it take to complete the rewrite of the N_m3u8DL? Thanks!
如题。这个跨平台是啥意思?除了m3u8还能下载其他格式?磁力 迅雷?还是啥意思?。另外 能发个客户端吗 小白用户直接用 谢谢
N_m3u8DL-RE.exe --save-name 6689.ts "http://59.49.41.44/live.aishang.ctlcdn.com/00000110240389_1/playlist.m3u8?CONTENTID=00000110240389_1" --append-url-params --live-real-time-merge
https://pic.imgdb.cn/item/63291f6a16f2c2beb15c7f93.png
測試版本:Build Latest #61
測試系統:Win 10
不確定是我理解錯誤還是「錄製直播時即時合併」有BUG
在我預想中是把最新分片合併在之前下載的尾段,例如我之前下載2分鐘,最新分片是40秒,那就合併為2分40秒
但根據我測試是把最新分片覆蓋掉之前下載的,例如我之前下載2分鐘,最新分片是40秒,那40秒就會把2分鐘覆蓋掉
到錄製完成後合併片段只是最後一次下載的分片,之前下載的全都被覆蓋
錄製myTV SUPER的回放直播(我測試是翡翠台),不會錄製到當前最新的直播片段,而是會錄製到3小時前的片段(3小時是回放極限)
實測是因為myTV SUPER網頁版的mpd連結上會附帶「&mode=admarker%2Cticks」(模式=廣告標記,刻度),把它刪除掉就可以錄製到當前最新的直播片段
以「點播」形式下載myTV SUPER的回放直播(我測試是翡翠台),由於混流時會提示「pts has no value」、「Application provided duration: 47528000000 / timestamp: 47528000000 is out of range for mov/mp4 format」,觀看混流字幕時發現字幕會提前很多顯示
但導入沒刪除的外部字幕時發現,只需把字幕提前XX秒就能對應一整部錄製的直播…
由於錄製直播會「自動併發下載」且預設的「下載執行緒數」為8,當「auto-select」選擇的選項有點多時(1影+1音+3字幕),會提示「Response status code does not indicate success: 403 (Forbidden).」,有時候甚至會用盡重試次數,手動設置「下載執行緒數」為4後會比較少提示,就算提示也不會用盡重試次數
在繁體界面裡,「--use-shaka-packager」的解釋是「解密?使用shaka-packager替代mp4decrypt」,有個「?」在裡面
视频地址:https://vod.hoy.tv/BW05270HA/HOYTVHLS/BW05270HA.m3u8,切片数:1344,合并时提示“Too many open files”,合并失败。
I was wondering if it's possible to add an argument to automatically remux audio and video downloaded after decryption in a single file?
./N_m3u8DL-RE https://pri-cdn-tx.xiaoeknow.com/app1dfvej/private_index/.m3u8\?sign\=40571c6524fc7879d736846f\&t\=6357e5ac --base-url https://c-vod.hw-cdn.xiaoeknow.com///drm/ -H 'Referer: https://app1dfvejls1518.h5.xiaoeknow.com/' --custom-hls-key j0Q4f271tUX4OmAGmEdSA==
21:47:28.819 INFO : N_m3u8DL-RE (Beta version) 20221024
21:47:29.091 INFO : 加载URL: https://pri-cdn-tx.xiaoeknow.com/app1dfvejls1518...
21:47:29.437 INFO : 内容匹配: HTTP Live Streaming
21:47:29.440 INFO : 正在解析媒体信息...
21:47:29.579 INFO : 已解析, 共计 1 条媒体流, 基本流 1 条, 可选音频流 0 条, 可选字幕流 0 条
21:47:29.590 INFO : Vid *AES_128 Kbps | 3129 Segments | ~01h44m17s
21:47:29.591 INFO : 已选择的流:
21:47:29.592 INFO : Vid *AES_128 Kbps | 3129 Segments | ~01h44m17s
21:47:29.594 INFO : 保存文件名: 1662989967qV7GCK_2022-10-25_21-47-29
21:47:29.604 INFO : 开始下载...Vid Kbps
21:47:29.723 ERROR : Padding is invalid and cannot be removed.
选择的是2160p,文件大小500多M但是SMPlayer、VLC都无法播放。
希望录播功能可以按小时自动合并视频
Hello,
first of all, thank you for great application and efforts to maintain it!
I have some issues with running mpd url of live stream and merging the audio with video. The audio is not in sync with video.
./N_m3u8DL-RE-beta --save-name test "https://url/index.mpd" --mp4-real-time-decryption --live-real-time-merge --key 000000:000000000 --use-shaka-packager
ffmpeg -readrate 1 -i test.mp4 -i test.m4a -c:v copy -c:a copy test_merged.mp4
Also tried stopping the N_m3u8DL-RE and did merging without -readrate 1, like vod audio/video merge, but sound is still out of sync. Any suggestions what might be wrong?
Thank you!
填一个m3u8地址,剩下的自动?
@echo Off
For /F %%a in (urls.txt) Do (N_m3u8DL-RE.exe "%%a" --save-dir "E:\3" --mt --binary-merge "true")
在下载某个mpd直播流时,我的命令是 N_m3u8DL-RE.exe --save-name test1 --append-url-params --live-real-time-merge "https://dizf8i52j4sep.cloudfront.net/out/v1/148af6c03e6d48b0a725611fae5ed3a7/index.mpd"
生成视频文件时长4分多钟,音频文件8分多钟,这样合并起来有可能导致音画不同步,请问怎么解决呢?
https://pic1.imgdb.cn/item/6350179816f2c2beb1fab18d.png
1.j a b l e . t v
此网站m3u8就在主页代码中提取出来下载在老版能下载,新版就会少文件,不断有超时重试
基于以上两点,我目前在ubuntu 20.04 上还无法正常使用
之前我有分享过DMM的M3U8解密下载,不过DMM大容量视频虽然保留了M3U8但推荐基于AV1的MPD,这种视频还不知道怎么拿到密钥
个人的一些建议
Crypto.AESUtil.cs这个文件里可以加入
AES-ECB-Decrypt 方法,C#不太了解,不过应该是在CipherMode这里改成CipherMode.ECB,再去掉iv选项应该可以做到
在args 里可以加入--use-AES-ECB参数,实现手动使用AES-ECB解密
还有就是可以加入proxy参数,使一些下载可以走代理
the game is 2 hours but when i try to download it with N-m3u8DL-RE it give me stream only 18 minutes with no audio
00:35:49.550 INFO : 正在解析媒体信息...
00:35:49.551 WARN : 写出meta json
00:35:49.567 INFO : 已选择的流:
00:35:49.568 INFO : Vid *CENC 3840x2160 | 15000 Kbps | video_5 | hvc1.1.6.L150.90 | 1954 Segments | ~02h10m14s
00:35:49.568 INFO : Aud *CENC audio_aac_eng_6 | 56 Kbps | mp4a.40.2 | eng | 1954 Segments | ~02h10m14s
00:35:49.573 INFO : 开始下载...Vid 3840x2160 | 15000 Kbps | video_5 | hvc1.1.6.L150.90
00:35:49.573 WARN : 检测到CENC加密方式,自动开启二进制合并
00:35:50.605 ERROR : Operation is not supported on this platform.00:35:49.550 INFO : 正在解析媒体信息...
00:35:49.551 WARN : 写出meta json
00:35:49.567 INFO : 已选择的流:
00:35:49.568 INFO : Vid *CENC 3840x2160 | 15000 Kbps | video_5 | hvc1.1.6.L150.90 | 1954 Segments | ~02h10m14s
00:35:49.568 INFO : Aud *CENC audio_aac_eng_6 | 56 Kbps | mp4a.40.2 | eng | 1954 Segments | ~02h10m14s
00:35:49.573 INFO : 开始下载...Vid 3840x2160 | 15000 Kbps | video_5 | hvc1.1.6.L150.90
00:35:49.573 WARN : 检测到CENC加密方式,自动开启二进制合并
00:35:50.605 ERROR : Operation is not supported on this platform.
N_m3u8DL-RE_Beta_win-x64
我在mac下运行 报了一下错误
01:29:49.366 ERROR : mp4decrypt not found!
N_m3u8DL-RE_Beta_osx-x64
e1c89de
下载完成后没有合并成MP4 就算指定参数 -M format=mp4 也没有合并需要手动用ffmpeg 合并
是现在暂时不支持吗 ?
现在好多国外的体育电视台直播流采用的是非标准M3U8直播流,例如http://superbits.tv:2095/live/kC6PZctg/hBbm57AG/11519.ts,希望老大在后面版本中支持该类型的直播流的解析与下载,感谢
请问如何解析DMM上面视频流?我参考的是之前的版本里面的方法:nilaoda/N_m3u8DL-CLI#473 , thanks in advance!
我用的是macos x64的最新版本: https://github.com/nilaoda/N_m3u8DL-RE/actions/runs/2899166444 里面的N_m3u8DL-RE_Beta_osx-x64
类似
https://www.52pojie.cn/forum.php?mod=viewthread&tid=1468046
你看看
希望能监控主页直播状态,有直接下载;
用服务器监控下载有保障,本地win经常丢直播文件。
很多直播视频,需要二次剪辑
感谢开发者。老版本可以正常下载dedao.cn的音频,但是新版本会卡住,然后就没有然后了。我即便设置了--log-level debug 也没拿到什么有效错误信息。
示例地址:https://m.igetget.com/ddmedia/public/v1/m3u8/3403820841304864/52/m.m3u8
卡住的位置:
17:15:04.338 DEBUG : 7E E9 09 0A B0 00 42 05 C7 2B 06 8E AE 94 80 1C
17:15:04.363 INFO : 已解析, 共计 1 条媒体流, 基本流 1 条, 可选音频流 0 条, 可选字幕流 0 条
17:15:04.409 INFO : Vid *AES_128 Kbps | 48 Segments | ~11m54s
17:15:04.415 INFO : 已选择的流:
17:15:04.416 INFO : Vid *AES_128 Kbps | 48 Segments | ~11m54s
06:52:48.591 INFO : Loading URL: https://.com/videos/202204/18//0g2b90/index.m3u8
06:52:49.052 ERROR : AggregateException_ctor_DefaultMessage (net_http_ssl_connection_failed)
06:52:52.066 INFO : Loading URL: https://****.com/videos/202204/18/***/index.m3u8
06:52:52.532 ERROR : AggregateException_ctor_DefaultMessage (net_http_ssl_connection_failed)
报如上错误。
termux-setup-storage
Allow prompt, then restart Termux.
pkg up -y
pkg install proot-distro
proot-distro install ubuntu
proot-distro login ubuntu
On Ubuntu:
mkdir /RE
cd /RE
apt update
apt install wget
apt install unzip
apt-get install libicu-dev
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-arm64-static.tar.xz
tar -xvf ffmpeg-release-arm64-static.tar.xz --wildcards '*/ffmpeg' -O > ./ffmpeg
chmod +x ./ffmpeg
wget https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/2905367163/N_m3u8DL-RE_Beta_linux-arm64.zip
unzip N_m3u8DL-RE_Beta_linux-arm64.zip
chmod +x ./N_m3u8DL-RE
Note: replace 2905367163
with latest id (Actions)
./N_m3u8DL-RE --tmp-dir /sdcard/Download --save-dir /sdcard/Download --save-name TEST "http://playertest.longtailvideo.com/adaptive/oceans_aes/oceans_aes.m3u8"
The saved name of the downloaded media contain the type of the media. Would like to remove it by default.
Command and flag used:
~/m3u8/bin/./N_m3u8DL-RE "URL" --save-name "KL.Gangster.Underworld.S01E01" --ffmpeg-binary-path /usr/bin/ffmpeg --write-meta-json false --sub-format SRT --binary-merge
Saved filename:
KL.Gangster.Underwold.S01E01.VIDEO.ts
KL.Gangster.Underworld.S01E01.SUBTITLE.en.srt
Can the media type like VIDEO and SUBTITLE be removed by default?
Common links I use have two primary formats both exactly the same except one has 1 segment and the other has multiple, if I have it auto select it will go for the one with multiple and end up downloading the same thing multiple times. This happens with both Video and Audio, is there a command that I can have it automatically choose the audio and video with 1 segment and the best quality otherwise?
核心功能是否可以在.net-android,net-ios中运行。并使用MAUI等跨平台技术实现跨平台?
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.