{"id":15038048,"url":"https://github.com/nilaoda/n_m3u8dl-cli","last_synced_at":"2025-05-13T21:06:06.310Z","repository":{"id":37286264,"uuid":"182095352","full_name":"nilaoda/N_m3u8DL-CLI","owner":"nilaoda","description":"[.NET] m3u8 downloader 开源的命令行m3u8/HLS/dash下载器，支持普通AES-128-CBC解密，多线程，自定义请求头等. 支持简体中文,繁体中文和英文. English Supported.","archived":false,"fork":false,"pushed_at":"2023-06-03T09:30:55.000Z","size":6399,"stargazers_count":15025,"open_issues_count":252,"forks_count":2240,"subscribers_count":191,"default_branch":"master","last_synced_at":"2025-04-28T13:59:03.579Z","etag":null,"topics":["command-line","downloader","m3u8","m3u8-downloader","m3u8-parser","m3u8dl-cli","windows"],"latest_commit_sha":null,"homepage":"https://nilaoda.github.io/N_m3u8DL-CLI/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nilaoda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://nilaoda.github.io/N_m3u8DL-CLI/source/images/alipay.png","https://www.buymeacoffee.com/nilaoda"]}},"created_at":"2019-04-18T13:43:49.000Z","updated_at":"2025-04-28T11:22:09.000Z","dependencies_parsed_at":"2022-07-18T12:31:45.644Z","dependency_job_id":"57fed049-8b06-4be3-a155-e6ab70760f48","html_url":"https://github.com/nilaoda/N_m3u8DL-CLI","commit_stats":null,"previous_names":[],"tags_count":84,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilaoda%2FN_m3u8DL-CLI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilaoda%2FN_m3u8DL-CLI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilaoda%2FN_m3u8DL-CLI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilaoda%2FN_m3u8DL-CLI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilaoda","download_url":"https://codeload.github.com/nilaoda/N_m3u8DL-CLI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254028698,"owners_count":22002277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","downloader","m3u8","m3u8-downloader","m3u8-parser","m3u8dl-cli","windows"],"created_at":"2024-09-24T20:36:54.575Z","updated_at":"2025-05-13T21:06:01.301Z","avatar_url":"https://github.com/nilaoda.png","language":"C#","funding_links":["https://nilaoda.github.io/N_m3u8DL-CLI/source/images/alipay.png","https://www.buymeacoffee.com/nilaoda"],"categories":[],"sub_categories":[],"readme":"```\n\n███╗   ██╗        ███╗   ███╗██████╗ ██╗   ██╗ █████╗ ██████╗ ██╗       ██████╗██╗     ██╗\n████╗  ██║        ████╗ ████║╚════██╗██║   ██║██╔══██╗██╔══██╗██║      ██╔════╝██║     ██║\n██╔██╗ ██║        ██╔████╔██║ █████╔╝██║   ██║╚█████╔╝██║  ██║██║█████╗██║     ██║     ██║\n██║╚██╗██║        ██║╚██╔╝██║ ╚═══██╗██║   ██║██╔══██╗██║  ██║██║╚════╝██║     ██║     ██║\n██║ ╚████║███████╗██║ ╚═╝ ██║██████╔╝╚██████╔╝╚█████╔╝██████╔╝███████╗ ╚██████╗███████╗██║\n╚═╝  ╚═══╝╚══════╝╚═╝     ╚═╝╚═════╝  ╚═════╝  ╚════╝ ╚═════╝ ╚══════╝  ╚═════╝╚══════╝╚═╝\n                                                                                          \n```\n---\n[![img](https://img.shields.io/github/stars/nilaoda/N_m3u8DL-CLI?label=%E7%82%B9%E8%B5%9E)](https://github.com/nilaoda/N_m3u8DL-CLI)  [![img](https://img.shields.io/github/last-commit/nilaoda/N_m3u8DL-CLI?label=%E6%9C%80%E8%BF%91%E6%8F%90%E4%BA%A4)](https://github.com/nilaoda/N_m3u8DL-CLI)  [![img](https://img.shields.io/github/release/nilaoda/N_m3u8DL-CLI?label=%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC)](https://github.com/nilaoda/N_m3u8DL-CLI/releases)  [![img](https://img.shields.io/github/license/nilaoda/N_m3u8DL-CLI?label=%E8%AE%B8%E5%8F%AF%E8%AF%81)](https://github.com/nilaoda/N_m3u8DL-CLI)  [![img](https://img.shields.io/badge/URL-%E7%94%A8%E6%88%B7%E6%96%87%E6%A1%A3-blue)](https://nilaoda.github.io/N_m3u8DL-CLI/)\n\n\n# [ENGLISH VERSION](https://github.com/nilaoda/N_m3u8DL-CLI/blob/master/README_ENG.md)\n\n# 下载使用\n* 发行版: https://github.com/nilaoda/N_m3u8DL-CLI/releases\n* 自动构建版`(供测试)`: https://github.com/nilaoda/N_m3u8DL-CLI/actions\n \n# 关于开源\n本项目已于2019年10月9日开源，采用MIT许可证，各取所需。\n\n# 关于跨平台\n* N_m3u8DL-CLI `(本项目)`: 基于 .NET Framework, 不具备跨平台能力. 目前已进入维护阶段.\n\n* [N_m3u8DL-RE](https://github.com/nilaoda/N_m3u8DL-RE) : 抛弃历史包袱从零做起, 支持Win/Linux/Mac, 更丰富的功能会在这里出现 ...\n\n# N_m3u8DL-CLI\n一个**简单易用的**m3u8下载器，下载地址：https://github.com/nilaoda/N_m3u8DL-CLI/releases  \n\n支持下载m3u8链接或文件为`mp4`或`ts`格式，并提供丰富的命令行选项。\n  * **不支持**优酷视频解密\n  * **不支持**气球云视频解密\n  * 支持`AES-128-CBC`加密自动解密\n  * 支持多线程下载\n  * 支持下载限速\n  * 支持断点续传\n  * 支持`Master List`\n  * 支持直播流录制(`BETA`)\n  * 支持自定义`HTTP Headers`\n  * 支持自动合并 (二进制合并或使用ffmpeg合并)\n  * 支持选择下载`m3u8`中的指定时间段/分片内容\n  * 支持下载路径为网络驱动器的情况\n  * 支持下载外挂字幕轨道、音频轨道\n  * 支持仅合并为音频\n  * 支持设置特定http代理\n  * 支持自动使用系统代理（默认行为, 可禁止）\n  * 支持m3u8dl链接协议（通过web链接调用本机客户端）\n  * 提供SimpleG简易的`GUI`生成常用参数\n\n\n\n![运行截图](https://nilaoda.github.io/N_m3u8DL-CLI/source/images/%E7%9B%B4%E6%8E%A5%E4%BD%BF%E7%94%A8.gif)  \n\n# 命令行选项\n```\nN_m3u8DL-CLI\n\nUSAGE:\n\n  N_m3u8DL-CLI \u003cURL|JSON|FILE\u003e [OPTIONS]\n\nOPTIONS:\n\n  --workDir                  设定程序工作目录\n  --saveName                 设定存储文件名(不包括后缀)\n  --baseUrl                  设定Baseurl\n  --headers                  设定请求头，格式 key:value 使用|分割不同的key\u0026value\n  --maxThreads               (Default: 32) 设定程序的最大线程数\n  --minThreads               (Default: 16) 设定程序的最小线程数\n  --retryCount               (Default: 15) 设定程序的重试次数\n  --timeOut                  (Default: 10) 设定程序网络请求的超时时间(单位为秒)\n  --muxSetJson               使用外部json文件定义混流选项\n  --useKeyFile               使用外部16字节文件定义AES-128解密KEY\n  --useKeyBase64             使用Base64字符串定义AES-128解密KEY\n  --useKeyIV                 使用HEX字符串定义AES-128解密IV\n  --downloadRange            仅下载视频的一部分分片或长度\n  --liveRecDur               直播录制时，达到此长度自动退出软件(HH:MM:SS)\n  --stopSpeed                当速度低于此值时，重试(单位为KB/s)\n  --maxSpeed                 设置下载速度上限(单位为KB/s)\n  --proxyAddress             设置HTTP/SOCKS5代理, 如 http://127.0.0.1:8080\n  --enableDelAfterDone       开启下载后删除临时文件夹的功能\n  --enableMuxFastStart       开启混流mp4的FastStart特性\n  --enableBinaryMerge        开启二进制合并分片\n  --enableParseOnly          开启仅解析模式(程序只进行到meta.json)\n  --enableAudioOnly          合并时仅封装音频轨道\n  --disableDateInfo          关闭混流中的日期写入\n  --disableIntegrityCheck    不检测分片数量是否完整\n  --noMerge                  禁用自动合并\n  --noProxy                  不自动使用系统代理\n  --registerUrlProtocol      注册m3u8dl链接协议\n  --unregisterUrlProtocol    取消注册m3u8dl链接协议\n  --enableChaCha20           enableChaCha20\n  --chaCha20KeyBase64        ChaCha20KeyBase64\n  --chaCha20NonceBase64      ChaCha20NonceBase64\n  --help                     Display this help screen.\n  --version                  Display version information.\n```\n\n# 关于`m3u8dl://`协议\n新增命令行参数：\n```\n--registerUrlProtocol          注册m3u8dl链接协议\n--unregisterUrlProtocol     取消注册m3u8dl链接协议\n```\n\nURI格式：\n```\nm3u8dl://\u003cbase64编码的客户端命令行文本\u003e\n```\n\nURI示例：\n```\nm3u8dl://Imh0dHBzOi8vZXhhbXBsZS5jb20vYWJjLm0zdTgiIC0td29ya0RpciAiJVVTRVJQUk9GSUxFJVxEb3dubG9hZHNcbTN1OGRsIiAtLXNhdmVOYW1lICJhYmMiIC0tZW5hYmxlRGVsQWZ0ZXJEb25lIC0tZGlzYWJsZURhdGVJbmZvIC0tbm9Qcm94eQ==\n```\n\nURI解码结果：\n```\n\"https://example.com/abc.m3u8\" --workDir \"%USERPROFILE%\\Downloads\\m3u8dl\" --saveName \"abc\" --enableDelAfterDone --disableDateInfo --noProxy\n```\n\n# 用户文档\nhttps://nilaoda.github.io/N_m3u8DL-CLI/\n\n# 聊聊\nhttps://discord.gg/SSGwKrjC44\n\n# 赞赏\n![Wow](https://nilaoda.github.io/N_m3u8DL-CLI/source/images/alipay.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilaoda%2Fn_m3u8dl-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilaoda%2Fn_m3u8dl-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilaoda%2Fn_m3u8dl-cli/lists"}