M3u8Download
java下载m3u8视频,解密并合并ts java download m3u8 video,decrypt & merge ts slice
Install / Use
/learn @qq494257084/M3u8DownloadREADME
m3u8Dowload
<h1>java下载m3u8视频,解密并合并ts</h1> <h2> m3u8链接获取方式以及代码分析请参见: </h2> https://blog.csdn.net/qq494257084/article/details/103551293 <h3>准备</h3> <pre> JDK:1.8 开发环境:IntelliJ IDEA 用于解密的jar包:bcprov-jdk16-139.jar 了解一些m3u8标签作用 https://www.cnblogs.com/shakin/p/3870442.html </pre> <h3>使用方法</h3> <pre> M3u8DownloadFactory.M3u8Download m3u8Download = M3u8DownloadFactory.getInstance(M3U8URL); //设置生成目录 m3u8Download.setDir("F://m3u8JavaTest"); //设置视频名称 m3u8Download.setFileName("test"); //设置线程数 m3u8Download.setThreadCount(100); //设置重试次数 m3u8Download.setRetryCount(100); //设置连接超时时间(单位:毫秒) m3u8Download.setTimeoutMillisecond(10000L); //添加额外请求头 /* Map<String, Object> headersMap = new HashMap<>(); headersMap.put("Content-Type", "text/html;charset=utf-8"); m3u8Download.addRequestHeaderMap(headersMap);*/ //设置日志级别 //可选值:NONE INFO DEBUG ERROR m3u8Download.setLogLevel(Constant.DEBUG); //设置监听器间隔(单位:毫秒) m3u8Download.setInterval(500L); //如果需要的话设置http代理 //m3u8Download.setProxy("172.50.60.3",8090); //添加监听器 m3u8Download.addListener(new DownloadListener() { @Override public void start() { System.out.println("开始下载!"); } @Override public void process(String downloadUrl, int finished, int sum, float percent) { System.out.println("下载网址:" + downloadUrl + "\t已下载" + finished + "个\t一共" + sum + "个\t已完成" + percent + "%"); } @Override public void speed(String speedPerSecond) { System.out.println("下载速度:"+speedPerSecond); } @Override public void end() { System.out.println("下载完毕"); } }); //开始下载 m3u8Download.start(); </pre> <h2>更新日志</h2> <h4>2021.12.20</h4> * 增加代理设置 <h4>2020.05.22</h4> * 解决获取链接问题 <h4>2020.04.01</h4> * 解决链接转换问题 * 添加自定义请求头功能 <h4>2020.02.10</h4> * 解决日志级别为NONE模式下无法合并文件的问题 <h4>2020.01.14</h4> * 增加进度监听功能 <h4>2020.01.08</h4> * 优化内存占用率 <h4>2019.12.24</h4> * 进制转换问题 <h4>2019.12.23</h4> * 文件路径优化 * 解决新合并的文件会把以前的删除的问题 <h4>2019.12.21</h4> * 修复key获取错误 * 更新使用说明 * 解决内存占用过多 * 解决链接获取错误 * 增加IV向量偏移解密 * 解决合并文件后程序并没有退出 <h2>提示</h2> 如果遇到了问题,请发邮件至ts_liyaling@qq.com。Related Skills
qqbot-channel
349.9kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.4k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
349.9kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Design
Campus Second-Hand Trading Platform \- General Design Document (v5.0 \- React Architecture \- Complete Final Version)1\. System Overall Design 1.1. Project Overview This project aims t
