<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
>
<channel>
<title><![CDATA[DeepSeek Harness 开源插件商店]]></title> 
<atom:link href="https://dsh.lewz.cn/rss.php" rel="self" type="application/rss+xml" />
<description><![CDATA[插件即能力，开源即未来。]]></description>
<link>https://dsh.lewz.cn/</link>
<language>zh-cn</language>

<item>
    <title>N_m3u8DL-RE</title>
    <link>https://dsh.lewz.cn/nilaoda-n_m3u8dl-re</link>
    <description><![CDATA[<blockquote>
<p>🔥 本项收录自 <strong>GitHub 日榜 · 中文 第 19 名</strong>（1 star today），榜单来源：<a href="https://rebang.today/?tab=github&amp;sub_tab=all&amp;extra_filter=date_type%3Ddaily%26chinese%3Dtrue">rebang.today</a></p>
</blockquote>
<h1>N_m3u8DL-RE</h1>
<p><a href="README.en.md">See English version here</a></p>
<p>跨平台的DASH/HLS/MSS下载工具。支持点播、直播(DASH/HLS)。</p>
<p><a href="https://github.com/nilaoda/N_m3u8DL-RE"><img src="https://img.shields.io/github/stars/nilaoda/N_m3u8DL-RE?label=%E7%82%B9%E8%B5%9E" alt="img" /></a>  <a href="https://github.com/nilaoda/N_m3u8DL-RE"><img src="https://img.shields.io/github/last-commit/nilaoda/N_m3u8DL-RE?label=%E6%9C%80%E8%BF%91%E6%8F%90%E4%BA%A4" alt="img" /></a>  <a href="https://github.com/nilaoda/N_m3u8DL-RE/releases"><img src="https://img.shields.io/github/release/nilaoda/N_m3u8DL-RE?label=%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC" alt="img" /></a>  <a href="https://github.com/nilaoda/N_m3u8DL-RE"><img src="https://img.shields.io/github/license/nilaoda/N_m3u8DL-RE?label=%E8%AE%B8%E5%8F%AF%E8%AF%81" alt="img" /></a>   <a href="https://github.com/nilaoda/N_m3u8DL-RE/releases"><img src="https://img.shields.io/github/downloads/nilaoda/N_m3u8DL-RE/total?label=%E4%B8%8B%E8%BD%BD%E9%87%8F" alt="img" /></a></p>
<p>遇到 BUG 请首先确认软件是否为最新版本（如果是 Release 版本，建议到 <a href="https://github.com/nilaoda/N_m3u8DL-RE/actions">Actions</a> 页面下载最新自动构建版本后查看问题是否已经被修复），如果确认版本最新且问题依旧存在，可以到 <a href="https://github.com/nilaoda/N_m3u8DL-RE/issues">Issues</a> 中查找是否有人遇到过相关问题，没有的话再进行询问。</p>
<hr />
<p>版本较低的Windows系统自带的终端可能不支持本程序，替代方案：在 <a href="https://github.com/cmderdev/cmder">cmder</a> 中运行。</p>
<p>Arch Linux 可以从 AUR 获取：<a href="https://aur.archlinux.org/packages/n-m3u8dl-re-bin">n-m3u8dl-re-bin</a>、<a href="https://aur.archlinux.org/packages/n-m3u8dl-re-git">n-m3u8dl-re-git</a></p>
<pre><code class="language-bash"># Arch Linux 及其衍生版安装 N_m3u8DL-RE 发行版 (该源非本人维护)
yay -Syu n-m3u8dl-re-bin

# Arch Linux 及其衍生版安装 N_m3u8DL-RE 开发版 (该源非本人维护)
yay -Syu n-m3u8dl-re-git</code></pre>
<hr />
<h2>PowerShell 补全</h2>
<p>支持 Windows PowerShell 5.1 和 PowerShell 7。补全脚本内嵌在可执行文件中。将 <code>N_m3u8DL-RE</code> 加入 <code>PATH</code>，然后在 PowerShell 中加载：</p>
<pre><code class="language-powershell">N_m3u8DL-RE --generate-completion powershell | Out-String | Invoke-Expression</code></pre>
<p>输入 <code>N_m3u8DL-RE --sub-</code> 后按 Tab 可补全参数名；<code>--sub-format</code>、<code>--log-level</code>、<code>--ui-language</code> 等参数可补全可选值，文件和目录使用 PowerShell 的默认路径补全。以 <code>./N_m3u8DL-RE</code> 或完整路径调用程序时也可以使用。</p>
<p>加载仅对当前会话有效。如需每次启动时启用，可将上面的命令写入 <code>$PROFILE</code>。也可用 <code>--generate-completion powershell</code> 单独查看或保存脚本。</p>
<h2>Cookie 文件</h2>
<p>使用 <code>--cookies cookies.txt</code> 读取浏览器导出的 Netscape 格式 Cookie 文件：</p>
<pre><code class="language-text">N_m3u8DL-RE "https://example.com/video.m3u8" --cookies "cookies.txt"</code></pre>
<p>Cookie 会按请求的域名、路径、HTTPS 条件及有效期匹配，适用于清单、密钥、初始化文件和分片，支持点播及直播。若同时设置 <code>-H "Cookie: ..."</code>，则以手动请求头为准。服务器更新的 Cookie 仅保存在内存中，不回写文件。</p>
<h2>配置文件</h2>
<p>常用选项可以保存到 UTF-8 文本配置文件中，程序启动时自动读取：</p>
<ul>
<li>Linux / macOS：<code>~/.config/N_m3u8DL-RE/config.conf</code>；若设置了绝对路径的 <code>XDG_CONFIG_HOME</code>，则使用 <code>$XDG_CONFIG_HOME/N_m3u8DL-RE/config.conf</code>。</li>
<li>Windows：<code>%APPDATA%\N_m3u8DL-RE\config.conf</code>。</li>
</ul>
<p>程序不会自动创建配置文件，默认文件不存在时使用内置默认值。配置沿用命令行参数语法，支持以 <code>#</code> 开头的注释行；包含空格的参数值使用双引号：</p>
<pre><code class="language-text"># 常用下载选项
-mt
--no-log
--auto-select
--thread-count 16
--save-dir "Downloads/My Videos"</code></pre>
<p>优先级为 <strong>命令行 &gt; 配置文件 &gt; 内置默认值</strong>。同一选项按短名和长名识别，单值选项由命令行替换配置值，被替换的值不再进行下载参数转换或文件读取。<code>--key</code>、<code>--ad-keyword</code>、<code>--mux-import</code> 等可重复选项按配置在前、命令行在后的顺序合并。<code>-H</code> / <code>--header</code> 按请求头名称合并，名称不区分大小写；不同名称保留，同名以命令行为准。布尔选项可用 <code>false</code> 关闭，例如 <code>--no-log false</code>。配置中的 HTTP 超时也视为手动指定，会关闭直播的自动超时调整。</p>
<pre><code class="language-text">N_m3u8DL-RE "https://example.com/video.m3u8" --thread-count 8
N_m3u8DL-RE "https://example.com/video.m3u8" --config "custom.conf"
N_m3u8DL-RE "https://example.com/video.m3u8" --no-config</code></pre>
<p><code>--config FILE</code> 只读取指定文件，替代默认配置；文件不存在或内容无效时报错。<code>--no-config</code> 不读取配置文件，不能与 <code>--config</code> 同时使用。配置只允许保存下载选项，不允许保存下载地址、配置加载选项或帮助、版本、补全操作。相对路径按当前工作目录解析，程序目录和当前目录不会被自动搜索。</p>
<p>帮助信息会使用配置中的 UI 语言；生成补全脚本及 Tab 补全请求不读取配置。原有 <code>@args.txt</code> 参数文件仍可使用，其中的参数具有命令行优先级。</p>
<p>Docker 部署建议将配置只读挂载到 <code>/config/config.conf</code>，并传入 <code>--config /config/config.conf</code>，不依赖容器的 HOME 或运行用户。</p>
<h2>IPTV 频道列表</h2>
<pre><code class="language-text"># 交互选择 HTTP TS 直播频道，录制 3 分钟
N_m3u8DL-RE channels.m3u --live-record-limit 00:03:00

# 按频道名称筛选；for=all 可同时录制多个匹配频道，分别保存
N_m3u8DL-RE channels.m3u -sv "name=^Channel A$:for=best" --live-record-limit 00:03:00
N_m3u8DL-RE channels.m3u -sv "name=^Channel:for=all" --live-record-limit 00:03:00</code></pre>
<h2>工具命令</h2>
<table>
<thead>
<tr>
<th>命令</th>
<th>用途</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>concat</code></td>
<td>按顺序拼接文件字节，不解析容器，也不需要 FFmpeg；完整 MP4 等文件通常应使用 <code>merge</code></td>
</tr>
<tr>
<td><code>merge</code></td>
<td>将多段媒体按时间顺序连接，使用 FFmpeg 流复制，不转码；各段编码及轨道结构需兼容</td>
</tr>
<tr>
<td><code>mux</code></td>
<td>把视频、音频和字幕作为不同轨道放入同一文件，不将各输入首尾连接</td>
</tr>
<tr>
<td><code>doctor</code></td>
<td>检查外部工具的路径、版本及系统环境；<code>--json</code> 可输出诊断报告</td>
</tr>
</tbody>
</table>
<p>三个文件工具都接受 <code>-i 文件</code>、<code>-i 目录</code>，也可用 <code>--input-dir 目录</code> 指定一个目录。<code>-i</code> 可重复，输入之间保持指定顺序；<code>--input-dir</code> 不能与 <code>-i</code> 混用。</p>
<ul>
<li>目录自动识别优先处理有 RE 轨道命名、init 或 parts 等布局的目录，选择匹配的 init 和解密分片；多轨道任务目录请使用 <code>mux</code>。单段 <code>parts</code> 目录可恢复，多段点播仍需分别处理。</li>
<li>普通目录自动读取常见音视频文件（如 TS、MP4、MKV、M4A、AAC、MP3），<code>mux</code> 还读取 SRT、VTT、ASS 等字幕。普通目录不递归，文件按自然顺序排列，例如 <code>clip1.mp4</code>、<code>clip2.mp4</code>、<code>clip10.mp4</code>。</li>
<li><code>--pattern "*.mp4"</code> 可用于任一种目录输入，明确按文件名筛选，替代 RE 轨道识别；适合从混合目录选文件，或覆盖自动识别结果，将各文件作为独立混流输入。处理 RE 的 init/裸分片时应使用自动识别。</li>
<li><code>merge</code> 自动对完整 MP4、MKV、M4A 等容器使用 <code>DEMUXER</code>，对 TS 和带 init 的分片轨道使用 <code>LOCAL_HTTP</code>。显式指定或配置的 <code>--ffmpeg-concat-mode</code> 优先。</li>
<li>添加 <code>--dry-run</code> 可预览最终输入顺序、所选分片和合并模式，不写文件，也不要求 FFmpeg。输出不能覆盖输入；建议将输出放在输入目录外，避免下次扫描时选入旧输出。</li>
</ul>
<pre><code class="language-text"># 字节拼接，无需 FFmpeg
N_m3u8DL-RE concat -i 1.ts -i 2.ts -o combined.ts

# 显式筛选文件，按文件名自然排序；-i 目录也支持 --pattern
# --input-dir 不能与 -i 混用
N_m3u8DL-RE concat --input-dir segments --pattern "*.ts" -o combined.ts

# 自动识别目录内的 MP4 等媒体文件并按顺序合并，无需手动选择输入模式
N_m3u8DL-RE merge -i clips -o merged.mp4
# 只选 MP4，并预览输入顺序和合并模式
N_m3u8DL-RE merge --input-dir clips --pattern "*.mp4" -o merged.mp4 --dry-run

# 混流视频、音频和字幕
# 默认自动调整字幕时间轴，原文件不变；添加 --auto-subtitle-fix false 可关闭
N_m3u8DL-RE mux -i video.mp4 -i audio.m4a -i subtitle.srt -o output.mp4
# 也可自动发现普通目录内的媒体和字幕，每个文件作为独立输入
N_m3u8DL-RE mux --input-dir tracks -o output.mkv

# 单段点播或直播录制的分片未合并时，直接从任务目录合并各轨道并混流；原分片保留
N_m3u8DL-RE mux -i index_2026-10-10_23-56-12 -o recording.mkv

# 也可指定各轨道目录，并设置语言或标题
N_m3u8DL-RE mux -i video_segments -i "path=audio_segments:lang=eng:name=English" -i "path=subtitle_segments:lang=chi:name=中文" -o recording.mkv

# 单独合并一条轨道（自动选择对应 init 和已解密分片）
N_m3u8DL-RE merge -i video_segments -o video.mp4
# 二进制合并也支持未解密分片，供后续解密或其他处理
N_m3u8DL-RE concat -i video_segments -o video.mp4

# 设置轨道语言（lang）、轨道标题（name）和影片标题（--title）
# --mux-import 可追加外部音轨或字幕；lang、name 均可省略
N_m3u8DL-RE mux -i video.mp4 -i "path=audio.m4a:lang=eng:name=English" --mux-import "path=subtitle.srt:lang=zh-Hans:name=简体中文" --title "影片标题" -o output.mkv
# 复合参数值内的冒号需写为 \:，例如 path=C\:\media\audio.m4a:lang=eng

# 检查工具版本和系统环境
N_m3u8DL-RE doctor
N_m3u8DL-RE doctor --json &gt; doctor.json</code></pre>
<h2>命令行参数</h2>
<p>过长的自动保存名、自定义保存名和模板生成的文件名会自动缩短，并附加短哈希以减少重名。长度按 UTF-8 字节计算，不会截断中文或 emoji；自动名称的时间戳和输出文件的媒体扩展名会预留空间。</p>
<pre><code>Description:
  N_m3u8DL-RE 0.6.0 20261012

Usage:
  N_m3u8DL-RE &lt;input&gt; [options]

Arguments:
  &lt;input&gt;  链接或文件

Options:
  --config &lt;FILE&gt;                                         读取指定配置文件，替代用户默认配置；命令行选项优先
  --no-config                                             不读取配置文件，不能与 --config 同时使用
  --tmp-dir &lt;tmp-dir&gt;                                     设置临时文件存储目录
  --save-dir &lt;save-dir&gt;                                   设置输出目录
  --save-name &lt;save-name&gt;                                 设置保存文件名
  --save-pattern &lt;save-pattern&gt;                           设置保存文件命名模板. 输入 "--morehelp save-pattern" 以查看变量和示例
  --log-file-path &lt;log-file-path&gt;                         设置日志文件路径, 例如 C:\Logs\log.txt
  --base-url &lt;base-url&gt;                                   设置BaseURL
  --thread-count &lt;number&gt;                                 设置下载线程数 [default: 10]
  --download-retry-count &lt;number&gt;                         每个分片下载异常时的重试次数；直播失败分片独立补片，超过补片窗口后标记缺片 [default: 7]
  --http-request-timeout &lt;seconds&gt;                        HTTP请求超时(秒)；直播分片自动调整且手动设置也不超过两倍片长，限制连续无数据等待，不限制总下载时长 [default: 100]
  --http-version &lt;1.1|2&gt;                                 HTTP协议版本；默认使用1.1，选择2时优先HTTP/2并允许回退HTTP/1.1 [default: 1.1]
  --force-ansi-console                                    强制认定终端支持 ANSI 输出
  --no-ansi-color                                         去除ANSI颜色
  --auto-select                                           自动选择所有类型的最佳轨道 [default: False]
  --skip-merge                                            跳过合并分片 [default: False]
  --skip-download                                         跳过下载 [default: False]
  --check-segments-count                                  检测实际下载的分片数量和预期数量是否匹配 [default: True]
  --binary-merge                                          二进制合并 [default: False]
  --ffmpeg-concat-mode &lt;DEMUXER|LOCAL_HTTP|PROTOCOL&gt;      FFmpeg 合并输入方式：LOCAL_HTTP 本机虚拟输入(默认)，PROTOCOL 直接打开全部分片，DEMUXER 使用文件列表 [default: LOCAL_HTTP]
  --use-ffmpeg-concat-demuxer                             使用 concat 分离器合并，等同于 --ffmpeg-concat-mode DEMUXER；同一层同时指定时优先 [default: False]
  --del-after-done                                        完成后删除临时文件 [default: True]
  --no-date-info                                          混流时不写入日期信息 [default: False]
  --no-log                                                关闭日志文件输出 [default: False]
  --write-meta-json                                       解析后的信息是否输出json文件 [default: True]
  --append-url-params                                     将输入URL的查询参数添加至分片；本地清单使用 --base-url 的参数 [default: False]
  -mt, --concurrent-download                              并发下载已选择的音频、视频和字幕 [default: False]
  -H, --header &lt;header&gt;                                   为HTTP请求设置特定的请求头, 例如:
                                                          -H "Cookie: mycookie" -H "User-Agent: iOS"
  --cookies &lt;FILE&gt;                                        读取 Netscape 格式的 Cookie 文件；手动设置的 Cookie 请求头优先
  --sub-only                                              只选取字幕轨道 [default: False]
  --sub-format &lt;SRT|VTT&gt;                                  字幕输出类型 [default: SRT]
  --auto-subtitle-fix                                     自动修正字幕 [default: True]
  --ffmpeg-binary-path &lt;PATH&gt;                             ffmpeg可执行程序路径, 例如 C:\Tools\ffmpeg.exe
  --log-level &lt;DEBUG|ERROR|INFO|OFF|WARN&gt;                 设置日志级别 [default: INFO]
  --ui-language &lt;en-US|zh-CN|zh-TW&gt;                       设置UI语言
  --urlprocessor-args &lt;urlprocessor-args&gt;                 此字符串将直接传递给URL Processor
  --key &lt;key&gt;                                             设置解密密钥, 程序调用mp4decrypt/shaka-packager/ffmpeg进行解密. 格式:
                                                          --key KID1:KEY1 --key KID2:KEY2
                                                          对于KEY相同的情况可以直接输入 --key KEY
                                                          KID 和 KEY 均支持 16 字节 HEX 或 Base64；Base64 可省略末尾的 =
  --key-text-file &lt;key-text-file&gt;                         设置密钥文件,程序将从文件中按KID搜寻KEY以解密.(不建议使用特大文件)
  --decryption-engine &lt;FFMPEG|MP4DECRYPT|SHAKA_PACKAGER&gt;  设置解密时使用的第三方程序 [default: MP4DECRYPT]
  --decryption-binary-path &lt;PATH&gt;                         MP4解密所用工具的路径, 例如 C:\Tools\mp4decrypt.exe
  --mp4-real-time-decryption                              实时解密MP4分片 [default: False]
  -R, --max-speed &lt;SPEED&gt;                                 设置限速，单位支持 Mbps 或 Kbps，如：15M 100K
  -M, --mux-after-done &lt;OPTIONS&gt;                          所有工作完成时尝试混流分离的音视频. 输入 "--morehelp mux-after-done" 以查看详细信息
  --custom-hls-method &lt;METHOD&gt;                            指定HLS加密方式 (AES_128|AES_128_ECB|CENC|CHACHA20|NONE|SAMPLE_AES|SAMPLE_AES_CTR|UNKNOWN)
  --custom-hls-key &lt;FILE|HEX|BASE64&gt;                      指定HLS解密KEY. 可以是文件, HEX或Base64
  --custom-hls-iv &lt;FILE|HEX|BASE64&gt;                       指定HLS解密IV. 可以是文件, HEX或Base64
  --custom-hls-scope &lt;SCOPE&gt;                              指定自定义HLS加密方式、KEY和IV的适用范围 (ALL|VIDEO|AUDIO) [default: ALL]
  --use-system-proxy                                      使用系统默认代理 [default: True]
  --custom-proxy &lt;URL&gt;                                    设置请求代理, 如 http://127.0.0.1:8888
  --interface &lt;INTERFACE&gt;                                 指定请求使用的网卡名或本机 IP，如 eth1 或 192.168.1.10
  --custom-range &lt;RANGE&gt;                                  仅下载部分分片. 输入 "--morehelp custom-range" 以查看详细信息
  --task-start-at &lt;yyyyMMddHHmmss&gt;                        在此时间之前不会开始执行任务
  --live-perform-as-vod                                   以点播方式下载直播流 [default: False]
  --live-real-time-merge                                  录制直播时实时合并 [default: False]
  --live-keep-segments                                    录制直播并开启实时合并时依然保留分片 [default: True]
  --live-pipe-mux                                         录制直播并开启实时合并时通过管道+ffmpeg实时混流到TS文件 [default: False]
  --live-fix-vtt-by-audio                                 通过读取音频文件的起始时间修正VTT字幕 [default: False]
  --live-record-limit &lt;HH:mm:ss&gt;                          录制直播时的录制时长限制
  --live-wait-time &lt;SEC&gt;                                  手动设置直播列表刷新间隔
  --live-idle-timeout &lt;SEC&gt;                               直播列表连续指定秒数无新分片时停止录制（默认关闭）
  --live-take-count &lt;NUM&gt;                                 手动设置录制直播时首次获取分片的数量 [default: 16]
  --live-catchup &lt;TIME&gt;                                   从指定历史时间下载直播，支持回看时长或日期时间；覆盖 --live-take-count
  --mux-import &lt;OPTIONS&gt;                                  混流时引入外部媒体文件. 输入 "--morehelp mux-import" 以查看详细信息
  -sv, --select-video &lt;OPTIONS&gt;                           通过正则表达式选择符合要求的视频流. 输入 "--morehelp select-video" 以查看详细信息
  -sa, --select-audio &lt;OPTIONS&gt;                           通过正则表达式选择符合要求的音频流. 输入 "--morehelp select-audio" 以查看详细信息
  -ss, --select-subtitle &lt;OPTIONS&gt;                        通过正则表达式选择符合要求的字幕流. 输入 "--morehelp select-subtitle" 以查看详细信息
  -dv, --drop-video &lt;OPTIONS&gt;                             通过正则表达式去除符合要求的视频流. 支持与 --select-video 相同的参数, 输入 "--morehelp select-video" 以查看详细信息
  -da, --drop-audio &lt;OPTIONS&gt;                             通过正则表达式去除符合要求的音频流. 支持与 --select-video 相同的参数, 输入 "--morehelp select-video" 以查看详细信息
  -ds, --drop-subtitle &lt;OPTIONS&gt;                          通过正则表达式去除符合要求的字幕流. 支持与 --select-video 相同的参数, 输入 "--morehelp select-video" 以查看详细信息
  --ad-keyword &lt;REG&gt;                                      设置广告分片的URL关键字(正则表达式)
  --vod-select-parts                                      控制点播选段交互：不传则自动判断，true 强制显示，false 关闭（空格勾选，回车确认）
  --vod-list-parts                                        按媒体配置归组列出点播段的编号和总时长后退出 [default: False]
  --vod-drop-parts &lt;IDS&gt;                                  按 --vod-list-parts 的编号排除点播段及对应音频/字幕，例如 0,2-4
  --disable-update-check                                  禁用版本更新检测 [default: False]
  --allow-hls-multi-ext-map                               允许直播HLS中的多个#EXT-X-MAP(实验性；点播默认支持) [default: False]
  --morehelp &lt;OPTION&gt;                                     查看某个选项的详细帮助信息
  --generate-completion &lt;SHELL&gt;                           输出内嵌的补全脚本（powershell）
  -?, -h, --help                                          Show help and usage information
  --version                                               Show version information
</code></pre>
<p><code>--interface</code> 支持网卡名（如 <code>eth1</code>、<code>en0</code>、<code>Wi-Fi</code>）或本机 IP 地址。网卡名约束实际出口，IP 地址指定连接的源地址。使用代理时，约束应用于本机到代理的连接；DNS 仍由系统解析。绑定失败会明确报错，不会回退到其他网卡。Linux 按网卡名绑定可能需要额外权限，报错会包含系统原因。</p>
<p><code>--custom-hls-scope VIDEO</code> 仅对主播放列表中的视频流应用 <code>--custom-hls-method</code>、<code>--custom-hls-key</code> 和 <code>--custom-hls-iv</code>；<code>AUDIO</code> 仅对音频流应用。纯音频变体可通过 <code>CODECS</code> 识别；缺少足够类型信息的主变体仍按视频处理。默认 <code>ALL</code> 保持原有行为。直接输入单条媒体播放列表时无法识别轨道类型，自定义参数会应用于该播放列表。</p>
<p>交互下载多段点播时，会按实际媒体配置归组，用空格勾选要保留的组、回车确认；默认全部保留。相同配置的重复段只显示一次，时长存在明显间隔时再按段时长分组，不自动判定广告。HLS 会读取各类 init 的实际编码、分辨率及音频配置，界面不显示 init URL。不传 <code>--vod-select-parts</code> 时自动判断是否显示；使用 <code>--auto-select</code> 或选流过滤器时不自动弹出。<code>--vod-select-parts</code>（或 <code>--vod-select-parts true</code>）强制显示，<code>--vod-select-parts false</code> 明确关闭选段交互；相同配置且时长接近的广告仍需用 URL 规则或编号排除。</p>
<p>脚本可用 <code>--vod-list-parts</code> 查看归组后的原始编号，再用 <code>--vod-drop-parts 0,2-4</code> 排除指定段。DASH 编号为原 Period 顺序（从 0 开始），HLS 为原不连续序号（起点可能不同）；同一不连续段的 MAP 一并处理，音视频和字幕同步排除。没有独立不连续标记的 HLS MAP 可用 <code>--ad-keyword</code> 匹配 init/媒体 URL。<code>--custom-range</code> 仍使用源分片编号，选择后不重排。</p>
<details>
<summary>点击查看More Help</summary>

```
More Help:

  --mux-after-done

所有工作完成时尝试混流分离的音视频. 你能够以:分隔形式指定如下参数:

* format=FORMAT: 指定混流容器 mkv, mp4, ts
* muxer=MUXER: 指定混流程序 ffmpeg, mkvmerge (默认: ffmpeg)
* bin_path=PATH: 指定程序路径 (默认: 自动寻找)
* skip_sub=BOOL: 是否忽略下载的字幕（外部导入字幕仍参与混流） (默认: false)
* keep=BOOL: 混流成功后是否保留轨道文件；外部导入文件始终保留 (默认: false)

format= 可省略，如 -M mp4；mkvmerge 仅用于 MKV。参数值中的冒号需写为 \:，包含空格时请用引号包住整个参数。

例如:
# 混流为mp4容器
-M format=mp4
# 使用mkvmerge, 自动寻找程序
-M format=mkv:muxer=mkvmerge
# 使用mkvmerge, 自定义程序路径
-M "format=mkv:muxer=mkvmerge:bin_path=C\:\Program Files\MKVToolNix\mkvmerge.exe"
```

```
More Help:

  --mux-import

混流时引入本地媒体文件，可重复指定。主命令需同时启用 -M，mux 子命令也可使用。
可直接传入文件路径，或以 : 分隔如下参数（不支持目录）：

* path=PATH: 指定媒体文件路径
* lang=CODE: 指定轨道语言代码，如 eng、zh-Hans（可选）
* name=NAME: 指定轨道标题（可选）

复合参数值中的冒号需写为 \:（包括 Windows 盘符）；直接传入路径时无需转义冒号。包含空格时请用引号包住整个参数。

例如:
# 直接引入外部字幕
--mux-import "D:\media\subtitle.srt"
# 指定字幕语言和标题
--mux-import "path=zh-Hans.srt:lang=zh-Hans:name=中文 (简体)"
# 引入外部音轨和字幕
--mux-import "path=D\:\media\audio.m4a:lang=eng:name=English Audio" --mux-import "path=D\:\media\subtitle.srt:lang=eng:name=English Subtitles"
```

```
More Help:

  --select-video

通过正则表达式选择符合要求的视频流. 你能够以:分隔形式指定如下参数.
同样的参数也适用于 --select-audio/-sa, --select-subtitle/-ss 以及对应的 --drop-video/--drop-audio/--drop-subtitle 选项.

* id=REGEX: 按 GroupId 匹配
* lang=REGEX: 按语言代码匹配
* name=REGEX: 按名称匹配
* codecs=REGEX: 按编码匹配 (如 hvc1, avc1, mp4a)
* res=REGEX: 按分辨率匹配 (如 ^1920x, ^3840x)
* frame=REGEX: 按帧率匹配
* channel=REGEX: 按音频声道数匹配 (如 6, 2)
* range=REGEX: 按视频动态范围匹配 (如 SDR, HDR, PQ)
* url=REGEX: 按流 URL 匹配
* period=REGEX: 按 DASH Period id 匹配 (多Period MPD, 如广告/分段)
* segsMin=number: 仅保留分片数 >= number 的流
* segsMax=number: 仅保留分片数 <= number 的流
* plistDurMin=hms: 仅保留时长 >= hms 的流 (如 1h20m30s, 90s)
* plistDurMax=hms: 仅保留时长 <= hms 的流
* bwMin=int: 仅保留码率 >= int Kbps 的流
* bwMax=int: 仅保留码率 <= int Kbps 的流
* role=string: 按 DASH role 匹配 (Subtitle, Main, Alternate, Supplementary, Commentary, Dub, Description, Sign, Metadata, ForcedSubtitle)
* for=FOR: 每种基础语言按码率选择 best[number] 或 worst[number]，all 保留全部匹配流 (默认: best)

例如:
# 选择最佳视频
-sv best
# 选择4K+HEVC视频
-sv res="^3840x":codecs=hvc1:for=best
# 选择长度至少为1小时20分钟30秒的视频
-sv plistDurMin="1h20m30s":for=best
-sv role="main":for=best
# 选择码率在800Kbps至1Mbps之间的视频
-sv bwMin=800:bwMax=1000
# 去除分片数不超过2的字幕流 (如 trick-play/广告列表)
-ds segsMax=2:for=all --auto-select
# 仅保留主内容 Period (排除广告 Period)
-sv period="main":for=best
# 去除广告 Period 的视频
-dv period="ad":for=all
```

```
More Help:

  --select-audio

通过正则表达式选择符合要求的音频流. 完整筛选参数见 --morehelp select-video

例如:
# 选择所有音频
-sa all
# 选择最佳英语音轨
-sa lang=en:for=best
# 分别选择英语和日语中最佳的2条音轨
-sa lang="ja|en":for=best2
-sa role="main":for=best
```

```
More Help:

  --select-subtitle

通过正则表达式选择符合要求的字幕流. 完整筛选参数见 --morehelp select-video

例如:
# 选择所有字幕
-ss all
# 选择所有带有"中文"的字幕
-ss name="中文":for=all
```

```
More Help:

  --custom-range

下载点播内容时, 仅下载部分分片.

时间格式为 MM:SS 或 HH:MM:SS，省略起点表示从头开始，省略终点表示下载到末尾.
时间范围按分片起始时间筛选（包含起止边界），保留完整分片，不进行精确裁切.

例如:
# 下载[0,10]共11个分片
--custom-range 0-10
# 下载从序号10开始的后续分片
--custom-range 10-
# 下载前100个分片
--custom-range -99
# 下载第5分钟到20分钟的内容
--custom-range 05:00-20:00
# 跳过前26秒，下载后续内容
--custom-range 00:26-
# 仅下载前26秒的内容（可能包含跨越26秒边界的完整分片）
--custom-range -00:26
```

```
More Help:

  --save-pattern

使用变量设置各轨道的输出文件名主体，程序自动追加输出扩展名.

* <SaveName>: --save-name 指定的保存名称，未指定时为空
* <Id>: 轨道下载任务ID
* <Codecs>: 编码信息 (如 avc1.64001f, mp4a.40.2)
* <Language>: 语言代码 (如 en, zh-CN)
* <Resolution>: 视频分辨率 (如 1920x1080)
* <Bandwidth>: 码率数值，单位 bit/s (如 5000000)
* <MediaType>: 媒体类型 (VIDEO, AUDIO, SUBTITLES)
* <Channels>: 音频声道信息
* <FrameRate>: 视频帧率
* <VideoRange>: 视频动态范围 (如 SDR, HDR10)
* <GroupId>: 流组标识符
* <Name>: 流名称或 IPTV 频道名称

变量区分大小写，缺失的信息替换为空字符串. 模板不需要包含扩展名.

例如:
# 按分辨率命名视频
--save-name video --save-pattern "<SaveName>_<Resolution>"
# 加入码率 (bit/s)
--save-name video --save-pattern "<SaveName>_<Resolution>_<Bandwidth>bps"
# 按语言和声道命名音轨
--save-name audio --save-pattern "<SaveName>_<Language>_<Channels>"
# 用任务ID区分多个配置相同的轨道
--save-name video --save-pattern "<SaveName>_<Id>_<Codecs>"
```

</details>
<h2>FFmpeg 分片合并</h2>
<p>使用 FFmpeg 9 或更新版本时，杜比视界内容可正常合并和混流；旧版或无法识别版本的 FFmpeg 会保留二进制合并及关闭 FFmpeg 混流的兼容保护。手动指定的二进制合并和 mkvmerge 混流仍然有效。</p>
<p>默认使用 <code>--ffmpeg-concat-mode LOCAL_HTTP</code>：通过仅监听 <code>127.0.0.1</code> 的临时输入提供可随机读取的连续字节流，逐个打开分片，不生成整份合并中间文件，也不受分片数量造成的文件句柄和命令行长度限制。</p>
<ul>
<li><code>LOCAL_HTTP</code>：默认的本机虚拟输入，保留 concat 协议的字节拼接方式。</li>
<li><code>PROTOCOL</code>：回退到原有 <code>concat:文件1|文件2|…</code>，直接打开全部分片；大量分片仍可能遇到文件句柄上限。</li>
<li><code>DEMUXER</code>：使用 concat 文件列表，逐文件处理媒体时间轴，结果可能与字节拼接不同。</li>
</ul>
<p>原有 <code>--use-ffmpeg-concat-demuxer</code> 继续支持，命令行选择优先于配置文件；同一层同时指定两种写法时，启用的旧参数优先。该模式选项仅影响 FFmpeg 分片合并；二进制合并、独立 init 的多段拼接及直播管道仍使用各自的处理流程。</p>
<h2>直播回看</h2>
<pre><code class="language-bash"># 回看一小时前开始的节目，下载 30 分钟并混流为 MKV
N_m3u8DL-RE "URL" --live-catchup "01:00:00" --live-record-limit "00:30:00" --live-real-time-merge -M mkv

# 按节目日期时间回看；未指定时区时使用本地时区
N_m3u8DL-RE "URL" --live-catchup "2026-10-10T21:00:00+08:00" --live-record-limit "00:30:00" --live-real-time-merge -M mkv

# 需要清单提供可靠的时间信息，且起点仍在服务端回看窗口内。
# 按完整分片下载，边界可能略有偏差；未设置录制时长时继续录制直到停止。</code></pre>
<h2>其他</h2>
<p>从 v0.1.5 开始，可以尝试开启 <code>live-pipe-mux</code> 来代替以上命令</p>
<blockquote>
<p>[!NOTE]<br />
如果网络环境不够稳定，请不要开启 <code>live-pipe-mux</code>。管道内数据读取由 ffmpeg 负责，在某些环境下容易丢失直播数据。</p>
</blockquote>
<p>从 v0.1.8 开始，能够通过设置环境变量 <code>RE_LIVE_PIPE_OPTIONS</code> 来改变 <code>live-pipe-mux</code> 时 ffmpeg 的某些选项： <a href="https://github.com/nilaoda/N_m3u8DL-RE/issues/162#issuecomment-1592462532">https://github.com/nilaoda/N_m3u8DL-RE/issues/162#issuecomment-1592462532</a></p>
<hr />
<p><strong>免责声明</strong></p>
<p>本软件基于 <a href="LICENSE">MIT License</a> 开源，按&quot;原样&quot;提供，不附带任何明示或暗示的保证（包括但不限于对适销性、特定用途适用性的保证）。在任何情况下，作者均不对因使用本软件而产生的任何直接或间接损失承担责任。</p>
<p><strong>合法使用</strong></p>
<p>本软件仅用于学习和技术研究目的。使用者应遵守所在国家或地区的法律法规，仅下载和获取拥有合法权限的流媒体内容。任何非法或侵权使用行为均与原作者无关，使用者需自行承担全部法律责任。</p>
<hr />
<h2>赞助</h2>
<p><a href="https://www.buymeacoffee.com/nilaoda" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a></p>]]></description>
    <pubDate>Tue, 17 Nov 2026 16:35:16 +0800</pubDate>
    <dc:creator>blogger</dc:creator>
    <guid>https://dsh.lewz.cn/nilaoda-n_m3u8dl-re</guid>
</item>
<item>
    <title>ZeroTermux</title>
    <link>https://dsh.lewz.cn/hanxinhao000-zerotermux</link>
    <description><![CDATA[<blockquote>
<p>🔥 本项收录自 <strong>GitHub 日榜 · 中文 第 18 名</strong>（7 stars today），榜单来源：<a href="https://rebang.today/?tab=github&amp;sub_tab=all&amp;extra_filter=date_type%3Ddaily%26chinese%3Dtrue">rebang.today</a></p>
</blockquote>
<h1>Contact Information</h1>
<p>Diving Group 248022558 (recommended to join first)<br />
Group ① 1062337587<br />
Group ② 885832352</p>
<h1>ZeroTermux</h1>
<div align="center">
  <img src="https://raw.githubusercontent.com/hanxinhao000/ZeroTermux/main/img/6c5478a95ca60212eaee2f71f3e9f838_720.jpg" height="200">
  <img src="https://raw.githubusercontent.com/hanxinhao000/ZeroTermux/main/img/95d76c74cd49693d074d2eda75d20a03_720.jpg" height="200">
  <img height="200" alt="BC087C09330C7E37195809039DE72886" src="https://github.com/user-attachments/assets/b3805e55-0f7c-49f5-8330-f14fff9f491f" />
</div>
<h2>X11 aar implemented via internal channel</h2>
<p><a href="https://github.com/hanxinhao000/ZeroTermux-X11-aar">https://github.com/hanxinhao000/ZeroTermux-X11-aar</a></p>
<h1>DOWNLOAD APK</h1>
<h2>If you don't want to compile it yourself, you can download the already compiled version (do not click directly, copy the address and open it in the browser address bar):</h2>
<p><a href="https://od.ixcmstudio.cn/repository/main/ZeroTermux/">https://od.ixcmstudio.cn/repository/main/ZeroTermux/</a></p>
<h2>ZeroTermux signature file (shared with Utermux)</h2>
<p><a href="https://github.com/hanxinhao000/Termux-app-UpgradedVersion/tree/master/%E7%AD%BE%E5%90%8D%E6%96%87%E4%BB%B6">https://github.com/hanxinhao000/Termux-app-UpgradedVersion/tree/master/%E7%AD%BE%E5%90%8D%E6%96%87%E4%BB%B6</a></p>
<h2>Software intent</h2>
<p>ZeroTermux is a non-profit software developed based on Termux</p>
<h2>Language</h2>
<p>Chinese English</p>
<h1>Difference</h1>
<ol>
<li>Backup and recovery</li>
<li>Container switching</li>
<li>Source function switching</li>
<li>Linux distribution (ubuntu kali...)</li>
<li>Other</li>
</ol>
<h2>The default source is Tsinghua source and Beijing source (need to switch manually [for domestic users, foreign users please use the official version!]) <a href="https://github.com/termux/termux-app">Address</a></h2>
<h2>After a certain level of use, it is strongly recommended that you transition to the official termux [start using after getting started] (recommended)</h2>
<h2>Original author link</h2>
<h1><a href="https://github.com/termux/termux-app">Go To</a></h1>
<h2>Alibaba ico access link</h2>
<h1><a href="https://www.iconfont.cn/">Go To</a></h1>
<h1>Statement</h1>
<table>
<thead>
<tr>
<th>#</th>
<th>Statement</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>This software (ZeroTermux) is open source software. You may freely distribute, copy, and modify it, but you must follow the terms of the GPL license.</td>
</tr>
<tr>
<td>2</td>
<td>This software is distributed under the GPL license: <a href="http://www.opensource.org/licenses/gpl-2.0.php">http://www.opensource.org/licenses/gpl-2.0.php</a></td>
</tr>
<tr>
<td>3</td>
<td>All functions of this software (ZeroTermux) are intended solely for learning and communication purposes. Commercial use is prohibited. The user (anyone using ZeroTermux) bears full responsibility for any accidental, intentional, or unintentional operations performed using this software.</td>
</tr>
<tr>
<td>4</td>
<td>As stated in point 1, this software (ZeroTermux) is provided free of charge for learning and communication. The icons and fonts used in the software are sourced from the internet.</td>
</tr>
<tr>
<td>4.1</td>
<td>The default font is the Android system font. If you use other fonts, the user (anyone using ZeroTermux) assumes all risks and legal responsibilities.</td>
</tr>
<tr>
<td>4.2</td>
<td>Icons are sourced from the Alibaba ICO public icon library. They are used for learning and communication purposes only, not for commercial use. If any copyright infringement occurs, the infringing content will be removed immediately.</td>
</tr>
<tr>
<td>5</td>
<td>Recovery packages, data packages, ZIP files, etc., used with this software (ZeroTermux) carry inherent risks. All such files are sourced from the internet. Users should exercise discretion when using them. The user assumes all risk for any irreparable loss resulting from their use.</td>
</tr>
<tr>
<td>6</td>
<td>ZeroTermux has no control over the content of any recovery packages, data packages, ZIP files, or module packages. If any such package contains infringing content, the author of this software bears no responsibility. Responsibility lies solely with the creator of the recovery package, data package, or ZIP package (see also the legal notice for the <code>tar.gz</code> backup function).</td>
</tr>
<tr>
<td>7</td>
<td>Thanks to all authors whose work has been used in this project.</td>
</tr>
<tr>
<td>8</td>
<td>Using ZeroTermux may directly or indirectly damage your device. The user assumes full responsibility for any irreparable loss. Neither this software nor its author accept any legal or other liability.</td>
</tr>
</tbody>
</table>
<h2>use item:</h2>
<table>
<thead>
<tr>
<th>Project</th>
<th>Link</th>
</tr>
</thead>
<tbody>
<tr>
<td>termux-app</td>
<td><a href="https://github.com/termux/termux-app">https://github.com/termux/termux-app</a></td>
</tr>
<tr>
<td>termux-tasker</td>
<td><a href="https://github.com/termux/termux-tasker">https://github.com/termux/termux-tasker</a></td>
</tr>
<tr>
<td>termux-api</td>
<td><a href="https://github.com/termux/termux-api">https://github.com/termux/termux-api</a></td>
</tr>
<tr>
<td>termux-styling</td>
<td><a href="https://github.com/termux/termux-styling">https://github.com/termux/termux-styling</a></td>
</tr>
<tr>
<td>termux-packages</td>
<td><a href="https://github.com/termux/termux-packages">https://github.com/termux/termux-packages</a></td>
</tr>
<tr>
<td>ImagePicker (Lichenwei-Dev)</td>
<td><a href="https://github.com/Lichenwei-Dev/ImagePicker">https://github.com/Lichenwei-Dev/ImagePicker</a></td>
</tr>
<tr>
<td>android-vshell</td>
<td><a href="https://github.com/BryleHelll/android-vshell">https://github.com/BryleHelll/android-vshell</a></td>
</tr>
<tr>
<td>AgentWeb</td>
<td><a href="https://github.com/Justson/AgentWeb">https://github.com/Justson/AgentWeb</a></td>
</tr>
<tr>
<td>XXPermissions</td>
<td><a href="https://github.com/getActivity/XXPermissions">https://github.com/getActivity/XXPermissions</a></td>
</tr>
<tr>
<td>libaums</td>
<td><a href="https://github.com/magnusja/libaums">https://github.com/magnusja/libaums</a></td>
</tr>
<tr>
<td>ColorSeekBar</td>
<td><a href="https://github.com/rtugeek/ColorSeekBar">https://github.com/rtugeek/ColorSeekBar</a></td>
</tr>
<tr>
<td>ImagePicker (jeasonlzy)</td>
<td><a href="https://github.com/jeasonlzy/ImagePicker">https://github.com/jeasonlzy/ImagePicker</a></td>
</tr>
<tr>
<td>glide</td>
<td><a href="https://github.com/bumptech/glide">https://github.com/bumptech/glide</a></td>
</tr>
<tr>
<td>ttyd</td>
<td><a href="https://github.com/tsl0922/ttyd">https://github.com/tsl0922/ttyd</a></td>
</tr>
<tr>
<td>filebrowser</td>
<td><a href="https://github.com/filebrowser/filebrowser">https://github.com/filebrowser/filebrowser</a></td>
</tr>
<tr>
<td>iconfont</td>
<td><a href="https://www.iconfont.cn/">https://www.iconfont.cn/</a></td>
</tr>
<tr>
<td>swiftp</td>
<td><a href="https://github.com/ppareit/swiftp">https://github.com/ppareit/swiftp</a></td>
</tr>
<tr>
<td>ImmersionBar</td>
<td><a href="https://github.com/gyf-dev/ImmersionBar">https://github.com/gyf-dev/ImmersionBar</a></td>
</tr>
<tr>
<td>FNetServer</td>
<td><a href="https://github.com/570622566/FNetServer">https://github.com/570622566/FNetServer</a></td>
</tr>
<tr>
<td>codeeditor</td>
<td><a href="https://github.com/testica/codeeditor">https://github.com/testica/codeeditor</a></td>
</tr>
</tbody>
</table>
<h2>ZeroTermux thanks all the authors cited in this project, the project presentation may not be complete, please understand.</h2>
<hr />
<h1>联系方式</h1>
<p>潜水群248022558（推荐先加）<br />
①群1062337587<br />
②群885832352</p>
<h1>ZeroTermux</h1>
<div align="center">
  <img src="https://raw.githubusercontent.com/hanxinhao000/ZeroTermux/main/img/6c5478a95ca60212eaee2f71f3e9f838_720.jpg" height="200">
  <img src="https://raw.githubusercontent.com/hanxinhao000/ZeroTermux/main/img/95d76c74cd49693d074d2eda75d20a03_720.jpg" height="200">
  <img height="200" alt="BC087C09330C7E37195809039DE72886" src="https://github.com/user-attachments/assets/b3805e55-0f7c-49f5-8330-f14fff9f491f" />
</div>
<h2>内部通道实现的X11 aar</h2>
<p><a href="https://github.com/hanxinhao000/ZeroTermux-X11-aar">https://github.com/hanxinhao000/ZeroTermux-X11-aar</a></p>
<h1>下载APK</h1>
<h2>不想自行编译的小伙伴可下载已经编译好的版本（不要直接点击，复制地址在浏览器地址栏打开）：</h2>
<p><a href="https://od.ixcmstudio.cn/repository/main/ZeroTermux/">https://od.ixcmstudio.cn/repository/main/ZeroTermux/</a></p>
<h2>ZeroTermux 签名文件（与Utermux共用同一个签名）</h2>
<p><a href="https://github.com/hanxinhao000/Termux-app-UpgradedVersion/tree/master/%E7%AD%BE%E5%90%8D%E6%96%87%E4%BB%B6">https://github.com/hanxinhao000/Termux-app-UpgradedVersion/tree/master/%E7%AD%BE%E5%90%8D%E6%96%87%E4%BB%B6</a></p>
<h2>软件意图</h2>
<p>ZeroTermux 是根据 Termux 二次开发的一个非盈利性的软件</p>
<h2>语言环境</h2>
<p>中文 English</p>
<h1>区别</h1>
<ol>
<li>备份恢复</li>
<li>容器切换</li>
<li>源功能切换</li>
<li>Linux发行版（Ubuntu、Kali等）</li>
<li>等等</li>
</ol>
<h2>默认源为清华源与北京源（需手动切换[针对国内用户，国外用户请使用官方版本！]）<a href="https://github.com/termux/termux-app">地址</a></h2>
<h2>在使用一定程度之后，极力建议你过渡到官方Termux[入门之后开始使用]（推荐）</h2>
<h2>原作者链接</h2>
<h1><a href="https://github.com/termux/termux-app">点击访问</a></h1>
<h2>阿里巴巴ICO访问链接</h2>
<h1><a href="https://www.iconfont.cn/">点击访问</a></h1>
<h1>声明</h1>
<table>
<thead>
<tr>
<th>#</th>
<th>声明</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>本软件（ZeroTermux）为开源软件，你可以自由分发、复制、更改，但请遵循GPL协议！</td>
</tr>
<tr>
<td>2</td>
<td>软件遵循GPL协议（<a href="http://www.opensource.org/licenses/gpl-2.0.php">http://www.opensource.org/licenses/gpl-2.0.php</a>）</td>
</tr>
<tr>
<td>3</td>
<td>本软件（ZeroTermux）的所有功能均为学习交流使用，切勿商用。如用户（使用ZeroTermux的用户）的意外操作、有意操作、无意操作等由用户承担！</td>
</tr>
<tr>
<td>4</td>
<td>本软件（ZeroTermux）与第一条一样为免费学习交流使用，软件内涉及的图标以及字体均来源于互联网。</td>
</tr>
<tr>
<td>4.1</td>
<td>字体为Android默认字体，如使用其他字体请用户（使用ZeroTermux的用户）承担所有风险以及法律责任。</td>
</tr>
<tr>
<td>4.2</td>
<td>图标使用为阿里巴巴ICO公用图库，使用该图标的原则是学习与交流，并非商用，如有侵权立即删除。</td>
</tr>
<tr>
<td>5</td>
<td>在本软件（ZeroTermux）内使用的恢复包、数据包、zip包等都有使用风险，且全部都来源于互联网，请用户酌情使用，如有造成无法挽回的损失，请用户承担风险。</td>
</tr>
<tr>
<td>6</td>
<td>所有恢复包、数据包、zip包、模块包，ZeroTermux不能控制其内容，如有包内侵权本软件作者不承担任何责任，均由恢复包、数据包、zip包制作者承担（tar.gz备份功能法律声明）。</td>
</tr>
<tr>
<td>7</td>
<td>感谢所有该项目所应用到功能的作者。</td>
</tr>
<tr>
<td>8</td>
<td>使用ZeroTermux会直接或间接损害你的设备，如有造成无法挽回的损失由用户承担，本软件以及作者不承担任何法律等责任。</td>
</tr>
</tbody>
</table>
<h2>使用项目：</h2>
<table>
<thead>
<tr>
<th>项目</th>
<th>链接</th>
</tr>
</thead>
<tbody>
<tr>
<td>termux-app</td>
<td><a href="https://github.com/termux/termux-app">https://github.com/termux/termux-app</a></td>
</tr>
<tr>
<td>termux-tasker</td>
<td><a href="https://github.com/termux/termux-tasker">https://github.com/termux/termux-tasker</a></td>
</tr>
<tr>
<td>termux-api</td>
<td><a href="https://github.com/termux/termux-api">https://github.com/termux/termux-api</a></td>
</tr>
<tr>
<td>termux-styling</td>
<td><a href="https://github.com/termux/termux-styling">https://github.com/termux/termux-styling</a></td>
</tr>
<tr>
<td>termux-packages</td>
<td><a href="https://github.com/termux/termux-packages">https://github.com/termux/termux-packages</a></td>
</tr>
<tr>
<td>ImagePicker (Lichenwei-Dev)</td>
<td><a href="https://github.com/Lichenwei-Dev/ImagePicker">https://github.com/Lichenwei-Dev/ImagePicker</a></td>
</tr>
<tr>
<td>android-vshell</td>
<td><a href="https://github.com/BryleHelll/android-vshell">https://github.com/BryleHelll/android-vshell</a></td>
</tr>
<tr>
<td>AgentWeb</td>
<td><a href="https://github.com/Justson/AgentWeb">https://github.com/Justson/AgentWeb</a></td>
</tr>
<tr>
<td>XXPermissions</td>
<td><a href="https://github.com/getActivity/XXPermissions">https://github.com/getActivity/XXPermissions</a></td>
</tr>
<tr>
<td>libaums</td>
<td><a href="https://github.com/magnusja/libaums">https://github.com/magnusja/libaums</a></td>
</tr>
<tr>
<td>ColorSeekBar</td>
<td><a href="https://github.com/rtugeek/ColorSeekBar">https://github.com/rtugeek/ColorSeekBar</a></td>
</tr>
<tr>
<td>ImagePicker (jeasonlzy)</td>
<td><a href="https://github.com/jeasonlzy/ImagePicker">https://github.com/jeasonlzy/ImagePicker</a></td>
</tr>
<tr>
<td>glide</td>
<td><a href="https://github.com/bumptech/glide">https://github.com/bumptech/glide</a></td>
</tr>
<tr>
<td>ttyd</td>
<td><a href="https://github.com/tsl0922/ttyd">https://github.com/tsl0922/ttyd</a></td>
</tr>
<tr>
<td>filebrowser</td>
<td><a href="https://github.com/filebrowser/filebrowser">https://github.com/filebrowser/filebrowser</a></td>
</tr>
<tr>
<td>iconfont</td>
<td><a href="https://www.iconfont.cn/">https://www.iconfont.cn/</a></td>
</tr>
<tr>
<td>swiftp</td>
<td><a href="https://github.com/ppareit/swiftp">https://github.com/ppareit/swiftp</a></td>
</tr>
<tr>
<td>ImmersionBar</td>
<td><a href="https://github.com/gyf-dev/ImmersionBar">https://github.com/gyf-dev/ImmersionBar</a></td>
</tr>
<tr>
<td>FNetServer</td>
<td><a href="https://github.com/570622566/FNetServer">https://github.com/570622566/FNetServer</a></td>
</tr>
<tr>
<td>codeeditor</td>
<td><a href="https://github.com/testica/codeeditor">https://github.com/testica/codeeditor</a></td>
</tr>
</tbody>
</table>
<h2>ZeroTermux鸣谢所有在此项目当中引用的作者，项目展示可能不完全，请谅解。</h2>]]></description>
    <pubDate>Tue, 17 Nov 2026 16:34:24 +0800</pubDate>
    <dc:creator>blogger</dc:creator>
    <guid>https://dsh.lewz.cn/hanxinhao000-zerotermux</guid>
</item>
<item>
    <title>lede</title>
    <link>https://dsh.lewz.cn/coolsnowwolf-lede</link>
    <description><![CDATA[<blockquote>
<p>🔥 本项收录自 <strong>GitHub 日榜 · 中文 第 5 名</strong>（5 stars today），榜单来源：<a href="https://rebang.today/?tab=github&amp;sub_tab=all&amp;extra_filter=date_type%3Ddaily%26chinese%3Dtrue">rebang.today</a></p>
</blockquote>
<h1>欢迎来到 Lean 的 LEDE 源码仓库</h1>
<p>为国产龙芯 LOONGSON SoC loongarch64 / 飞腾 Phytium 腾锐 D2000 系列架构添加支持</p>
<p>I18N: <a href="README_EN.md">English</a> | <a href="README.md">简体中文</a> | <a href="README_JA.md">日本語</a></p>
<h2>官方讨论群</h2>
<p>如有技术问题需要讨论或者交流，欢迎加入以下群：</p>
<ol>
<li>QQ 讨论群：Op 固件技术研究群，号码 891659613，加群链接：<a href="https://qm.qq.com/q/IMa6Yf2SgC" title="Op固件技术研究群">点击加入</a></li>
<li>TG 讨论群：OP 编译官方大群，加群链接：<a href="https://t.me/JhKgAA6Hx1" title="OP 编译官方大群">点击加入</a></li>
</ol>
<h2>瑞莎网络计算 - 轻松打造你的网络边缘计算系统</h2>
<p><img src="https://raw.githubusercontent.com/coolsnowwolf/lede/master/doc/radxa.png" alt="radxa-netcompute-features" /></p>
<p>瑞莎网络计算系列覆盖从入门到高性能的边缘网关场景，从千兆到 2.5G，从四核到六核，全系列基于瑞芯微高可靠处理器，低功耗、稳定运行，适合 7×24 小时网络服务。</p>
<table>
<thead>
<tr>
<th>产品型号</th>
<th>E20C</th>
<th>E24C</th>
<th>E25</th>
<th>E52C</th>
<th>E54C</th>
</tr>
</thead>
<tbody>
<tr>
<td>处理器</td>
<td>瑞芯微RK3528A（四核）</td>
<td>瑞芯微 RK3528A（四核）</td>
<td>瑞芯微 RK3568（四核）</td>
<td>瑞芯微 RK3582（六核）</td>
<td>瑞芯微 RK3582（六核）</td>
</tr>
<tr>
<td>以太网</td>
<td>2x 千兆以太网</td>
<td>4x 千兆以太网</td>
<td>2x 2.5G 以太网</td>
<td>2x 2.5G 以太网</td>
<td>4x 千兆以太网</td>
</tr>
<tr>
<td>适用场景</td>
<td>入门级软路由 / 家用网关</td>
<td>多口家庭路由 / IoT 网关</td>
<td>高速 2.5G 家庭 / 小型企业软路由</td>
<td>高性能 2.5G 路由 / 边缘计算 / VPN</td>
<td>多口网络控制器 / 企业网关</td>
</tr>
</tbody>
</table>
<ul>
<li>多网口设计，为网络计算而生
<ul>
<li>提供 2 / 4 网口、千兆 / 2.5G 多种组合，灵活适配家用、宿舍、小型企业与 IoT 网络。</li>
</ul></li>
<li>一板多用，系统自由切换
<ul>
<li>支持 OpenWrt、Debian、Armbian 等多种系统，可应用于网关、轻量服务器或开发板等领域。</li>
</ul></li>
<li>稳定可靠，适合全天候运行
<ul>
<li>优秀的金属外壳散热设计 + 瑞芯微平台的低功耗特性，确保长时间满载仍能保持稳定。</li>
</ul></li>
<li>开发生态完善，轻松扩展功能
<ul>
<li>提供配套文档、源码与社区支持，方便开发者进行二次开发、插件扩展与自定义功能。</li>
</ul></li>
</ul>
<h2>了解更多</h2>
<ul>
<li>
<p><a href="https://docs.radxa.com/e/e20c">官方文档</a></p>
</li>
<li>
<p><a href="https://radxa.com/products#NetworkComputer">官网介绍</a></p>
</li>
<li>
<p><a href="https://mall.jd.com/view_search-3967032-31323445-99-1-20-1.html">瑞莎京东店铺</a></p>
</li>
<li>
<p><a href="https://radxa.taobao.com/category-1797203497.htm?spm=a1z10.1-c-s.0.0.eaee3a483AhQEE">瑞莎淘宝店铺</a></p>
</li>
</ul>
<h2>注意</h2>
<ol>
<li><strong>不要用 root 用户进行编译</strong></li>
<li>国内用户编译前最好准备好梯子</li>
<li>默认登陆IP 192.168.1.1 密码 password</li>
</ol>
<h2>编译命令</h2>
<ol>
<li>
<p>首先装好 Linux 系统，推荐 Debian 或 Ubuntu LTS 22/24</p>
</li>
<li>
<p>安装编译依赖</p>
<pre><code class="language-bash">sudo apt update -y
sudo apt full-upgrade -y
sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
bzip2 ccache clang cmake cpio curl device-tree-compiler flex gawk gcc-multilib g++-multilib gettext \
genisoimage git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev \
libgmp3-dev libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libpython3-dev \
libreadline-dev libssl-dev libtool llvm lrzsz libnsl-dev ninja-build p7zip p7zip-full patch pkgconf \
python3 python3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion \
swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd xz-utils zlib1g-dev</code></pre>
</li>
<li>
<p>下载源代码，更新 feeds 并选择配置</p>
<pre><code class="language-bash">git clone https://github.com/coolsnowwolf/lede
cd lede
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig</code></pre>
</li>
<li>
<p>下载 dl 库，编译固件<br />
（-j 后面是线程数，第一次编译推荐用单线程）</p>
<pre><code class="language-bash">make download -j8
make V=s -j1</code></pre>
</li>
</ol>
<p>本套代码保证肯定可以编译成功。里面包括了 R24 所有源代码，包括 IPK 的。</p>
<p>你可以自由使用，但源码编译二次发布请注明我的 GitHub 仓库链接。谢谢合作！</p>
<p>二次编译：</p>
<pre><code class="language-bash">cd lede
git pull
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
make download -j8
make V=s -j$(nproc)</code></pre>
<p>如果需要重新配置：</p>
<pre><code class="language-bash">rm -rf .config
make menuconfig
make V=s -j$(nproc)</code></pre>
<p>编译完成后输出路径：bin/targets</p>
<h3>使用 WSL/WSL2 进行编译</h3>
<p>由于 WSL 的 PATH 中包含带有空格的 Windows 路径，有可能会导致编译失败，请在 <code>make</code> 前面加上：</p>
<pre><code class="language-bash">PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin</code></pre>
<p>由于默认情况下，装载到 WSL 发行版的 NTFS 格式的驱动器将不区分大小写，因此大概率在 WSL/WSL2 的编译检查中会返回以下错误：</p>
<pre><code class="language-txt">Build dependency: OpenWrt can only be built on a case-sensitive filesystem</code></pre>
<p>一个比较简洁的解决方法是，在 <code>git clone</code> 前先创建 Repository 目录，并为其启用大小写敏感：</p>
<pre><code class="language-powershell"># 以管理员身份打开终端
PS &gt; fsutil.exe file setCaseSensitiveInfo &lt;your_local_lede_path&gt; enable
# 将本项目 git clone 到开启了大小写敏感的目录 &lt;your_local_lede_path&gt; 中
PS &gt; git clone https://github.com/coolsnowwolf/lede &lt;your_local_lede_path&gt;</code></pre>
<blockquote>
<p>对已经 <code>git clone</code> 完成的项目目录执行 <code>fsutil.exe</code> 命令无法生效，大小写敏感只对新增的文件变更有效。</p>
</blockquote>
<h3>macOS 原生系统进行编译</h3>
<ol>
<li>
<p>安装 macOS Command Line Tools（无需安装完整 Xcode）：</p>
<pre><code class="language-bash">xcode-select --install</code></pre>
<p>如果系统已安装 Xcode，可跳过此步骤。</p>
</li>
<li>
<p>安装 Homebrew：</p>
<pre><code class="language-bash">/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"</code></pre>
</li>
<li>
<p>使用 Homebrew 安装工具链、依赖与基础软件包：</p>
<pre><code class="language-bash">brew install coreutils diffutils findutils gawk gnu-getopt gnu-tar gnu-sed grep make \
 ncurses pkgconf wget quilt xz bash git rsync gpatch python3 python-setuptools go swig</code></pre>
<p>宿主编译器使用 Command Line Tools 提供的 Clang，目标工具链由构建系统生成。<br />
Apple Silicon 上编译 Go 软件包时需要已安装的 Go 进行自举，构建系统会自动从 <code>PATH</code> 中查找。<br />
<code>python-setuptools</code> 为仍使用 <code>distutils</code> 的软件包构建脚本提供兼容模块。<br />
<code>swig</code> 用于 U-Boot 等组件的 Python FDT 绑定生成。<br />
为 U-Boot 的 binman 镜像打包工具准备 Python 依赖：</p>
<pre><code class="language-bash">python3 -m venv --system-site-packages ~/.venvs/lede-build
source ~/.venvs/lede-build/bin/activate
python3 -m pip install pyelftools
export PYTHONPATH="$(python3 -c 'import site; print(site.getsitepackages()[0])')${PYTHONPATH:+:$PYTHONPATH}"</code></pre>
<p>每次新开终端编译前需重新激活该环境并执行上述 <code>export</code>，使构建系统缓存的 Python 命令也能找到模块。<br />
<code>--system-site-packages</code> 保留 Homebrew setuptools 的可用性。</p>
</li>
<li>
<p>准备<strong>区分大小写</strong>的构建文件系统。macOS 默认的 APFS 通常不区分大小写，不能直接在默认的家目录中编译。<br />
在“磁盘工具”中向现有 APFS 容器添加一个“APFS（区分大小写）”卷，例如 <code>LEDE-build</code>，然后在 <code>/Volumes/LEDE-build</code> 中存放源码和构建目录。<br />
建议至少保留 100 GB 可用空间；多个 target 的构建回归需要更多空间。APFS 卷默认共享容器空间，可不设置配额上限。</p>
</li>
<li>
<p>进入 Bash，配置 GNU 工具路径（通过 Homebrew 前缀同时兼容 Intel 和 Apple Silicon）：</p>
<pre><code class="language-bash"># Intel Mac 的 Homebrew 通常位于 /usr/local，Apple Silicon 通常位于 /opt/homebrew
eval "$(/opt/homebrew/bin/brew shellenv)" # Intel Mac 请改为 /usr/local/bin/brew
bash
export BREW_PREFIX="$(brew --prefix)"
for tool in coreutils diffutils findutils gnu-tar gnu-sed grep make; do
 export PATH="$BREW_PREFIX/opt/$tool/libexec/gnubin:$PATH"
done
export PATH="$BREW_PREFIX/opt/gnu-getopt/bin:$PATH"
umask 022</code></pre>
<p>每次新开终端编译前需重新加载以上环境；也可将 <code>export</code> 和循环部分保存到 <code>~/.bashrc</code>，进入 Bash 后执行 <code>source ~/.bashrc</code>。<br />
macOS 默认的 Zsh 不会自动加载 <code>~/.bashrc</code>。</p>
</li>
<li>
<p>在上述大小写敏感卷内获取源码，按本文的 feeds 和配置步骤进行编译；使用普通用户执行，不要使用 <code>sudo make</code>。<br />
例如选择 <code>Target System: x86</code>、<code>Subtarget: x86_64</code> 后：</p>
<pre><code class="language-bash">make defconfig
make download -j8
make V=s -j$(nproc)
# 如果失败，使用单线程详细输出定位首个错误
make -j1 V=s</code></pre>
<p>长时间或通过 SSH 编译时，可使用 <code>caffeinate -i make V=s -j$(nproc)</code>，在构建任务运行期间防止 Mac 因空闲而睡眠。</p>
<p>这是 macOS 原生交叉编译，Apple Silicon 主机也可构建 x86_64 固件，无需虚拟机或容器。<br />
Airoha AN7581/AN7583 的 BL2 构建会自动下载经过 SHA256 校验的 Arm 工具链；Apple Silicon 使用原生 macOS ARM64 版本。Intel Mac 需额外执行 <code>brew install arm-none-eabi-gcc</code>。</p>
<p>UML（User Mode Linux）目标仅支持 Linux x86_64 主机构建，不适用于本节的 macOS 原生构建流程。</p>
</li>
</ol>
<h2>特别提示</h2>
<ol>
<li>
<p>源代码中绝不含任何后门和可以监控或者劫持你的 HTTPS 的闭源软件， SSL 安全是互联网最后的壁垒，安全干净才是固件应该做到的。</p>
</li>
<li>
<p>想学习 OpenWrt 开发，但是摸不着门道？自学没毅力？基础太差？怕太难学不会？跟着佐大学 OpenWrt 开发入门培训班助你能学有所成<br />
报名地址：<a href="http://forgotfun.org/2018/04/openwrt-training-2018.html" title="报名">点击报名</a></p>
</li>
<li>
<p>QCA IPQ60xx 开源仓库地址：<a href="https://github.com/coolsnowwolf/openwrt-gl-ax1800">https://github.com/coolsnowwolf/openwrt-gl-ax1800</a></p>
</li>
<li>
<p>存档版本仓库地址：<a href="https://github.com/coolsnowwolf/openwrt">https://github.com/coolsnowwolf/openwrt</a></p>
</li>
</ol>
<h2>捐贈</h2>
<p>如果你觉得此项目对你有帮助，可以捐助我们，以鼓励项目能持续发展，更加完善</p>
<p><img src="https://raw.githubusercontent.com/coolsnowwolf/lede/master/doc/star.png" alt="star" /></p>]]></description>
    <pubDate>Tue, 17 Nov 2026 16:33:34 +0800</pubDate>
    <dc:creator>blogger</dc:creator>
    <guid>https://dsh.lewz.cn/coolsnowwolf-lede</guid>
</item>
<item>
    <title>ffmpeg-skill</title>
    <link>https://dsh.lewz.cn/kajisho5-ffmpeg-skill</link>
    <description><![CDATA[<blockquote>
<p>🔥 本项收录自 <strong>GitHub 日榜 · 全球 第 15 名</strong>（367 stars today），榜单来源：<a href="https://rebang.today/?tab=github&amp;sub_tab=all&amp;extra_filter=date_type%3Ddaily%26chinese%3Dfalse">rebang.today</a></p>
</blockquote>
<p align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="brand/logo/ffmpeg-skill-horizontal-on-dark.svg">
    <img src="https://raw.githubusercontent.com/kajisho5/ffmpeg-skill/main/brand/logo/ffmpeg-skill-horizontal.svg" height="72" alt="ffmpeg-skill">
  </picture>
</p>

<p align="center"><b>Give your coding agent a video editor.</b><br>
Claude Code, Cursor, Codex or any MCP client edits your footage with local FFmpeg, then checks its own output.<br>
No cloud · No API keys · Python standard library</p>

<p align="center">
  <a href="https://kajisho5.github.io/ffmpeg-skill/"><b>Website</b></a> ·
  <a href="#quick-start"><b>Quick start</b></a> ·
  <a href="docs/demos.md">Demos</a> ·
  <a href="#tools">Tools</a> ·
  <a href="#mcp">MCP</a> ·
  <a href="https://www.npmjs.com/package/ffmpeg-skill">npm</a>
</p>

<p align="center">
  <a href="https://github.com/kajisho5/ffmpeg-skill/actions/workflows/ci.yml"><img src="https://github.com/kajisho5/ffmpeg-skill/actions/workflows/ci.yml/badge.svg" alt="tests"></a>
  <a href="https://scorecard.dev/viewer/?uri=github.com/kajisho5/ffmpeg-skill"><img src="https://api.scorecard.dev/projects/github.com/kajisho5/ffmpeg-skill/badge" alt="OpenSSF Scorecard"></a>
  <a href="https://www.npmjs.com/package/ffmpeg-skill"><img src="https://img.shields.io/npm/v/ffmpeg-skill" alt="npm"></a>
  <a href="#ffmpeg-compatibility"><img src="https://img.shields.io/badge/ffmpeg-6.1%20%7C%207.1%20%7C%208%20%7C%209%20tested-orange" alt="FFmpeg 6.1, 7.1, 8 and 9 tested in CI"></a>
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="MIT"></a>
  <a href="https://github.com/sponsors/kajisho5"><img src="https://img.shields.io/badge/sponsor-%E2%9D%A4-ea4aaa?logo=githubsponsors" alt="Sponsor"></a>
</p>

<p align="center">
  <a href="https://kajisho5.github.io/ffmpeg-skill/"><img src="https://raw.githubusercontent.com/kajisho5/ffmpeg-skill/main/brand/og.png" width="720" alt="ffmpeg-skill v3: give your coding agent a video editor. An agent runs probe, cut, fit, export and check, and the final file is measured: 59.98 s, 1080x1920, 30 fps."></a>
</p>

```bash
npx ffmpeg-skill
```

<table>
  <tr>
    <td width="50%"><img src="https://raw.githubusercontent.com/kajisho5/ffmpeg-skill/main/docs/demos/captions_pop_karaoke.gif" alt="animated captions with a karaoke highlight"><br><sub><code>caption.py --animate pop --karaoke</code></sub></td>
    <td width="50%"><img src="https://raw.githubusercontent.com/kajisho5/ffmpeg-skill/main/docs/demos/reframe_crop.gif" alt="16:9 reframed to 9:16"><br><sub><code>fit.py --aspect 9:16 --fit crop</code></sub></td>
  </tr>
  <tr>
    <td width="50%"><img src="https://raw.githubusercontent.com/kajisho5/ffmpeg-skill/main/docs/demos/silence_removal.gif" alt="silence removed, timeline shorter"><br><sub><code>silence.py --threshold -35</code></sub></td>
    <td width="50%"><img src="https://raw.githubusercontent.com/kajisho5/ffmpeg-skill/main/docs/demos/loudness.gif" alt="waveform before and after loudness normalisation"><br><sub><code>loudness.py -I -14 --tp -1</code></sub></td>
  </tr>
</table>

Left half is the input, right half is what the command produced. **[Every before/after demo, with the exact command under each one →](docs/demos.md)** — all of it built by `python3 demos/build.py`, so you can rebuild every frame of it yourself. The footage is synthetic (FFmpeg's own test sources) except in three demos, `reframe_talk`, `filler_en` and `pauses_en`, which use two AI-generated clips of people who do not exist ([demos/footage/](demos/footage/README.md)).

`ffmpeg-skill` is an [Agent Skill](https://docs.anthropic.com/en/docs/agents-and-tools/agent-skills) for Claude Code, Cursor, Codex and any agent that reads `SKILL.md`. It teaches the agent a fixed workflow (probe → edit losslessly where possible → check → verify) and ships **42 tools** that do the actual work with `ffmpeg` / `ffprobe`: cut, join, silence removal, fit to duration and aspect, captions and karaoke, overlays and motion graphics, HDR → SDR and LUTs, audio clean-up and typed dynamics, sync with drift correction, multicam, loudness, delivery checks, whole-edit project rendering, batch folders. Every tool is also callable as an MCP tool (`tools/list` advertises a core 12 by default to keep client context small, with `FFMPEG_SKILL_MCP_FULL=1` listing all 42; every tool is reachable by name through `tools/call` either way), and the whole set is described by a machine-readable contract.

If `ffmpeg` and `python3` are on your PATH, it works: offline, on footage you would rather not upload.

> **SPEC** (Self-Producing Execution Contract): each tool's `input_schema` — the part of its
> contract and MCP tool definition that has to track the CLI flag-for-flag — is never
> hand-authored beside the code. It is derived, at run time, from the same `argparse` parser that
> already defines the CLI, and CI fails the build if any of it drifts.
> → [full explanation](#what-is-spec)

---

## Standalone, and in an ecosystem

**Standalone**, this is a local FFmpeg engine: probe → edit → verify, `npx ffmpeg-skill` and nothing else. No API key, no account, no other repo required. Everything above and below this section describes that standalone tool, and none of it changes if you never read the rest of this one.

**In [kajisho5](https://github.com/kajisho5)'s wider video-production ecosystem**, this repo is the *hands*: it cuts, measures and exports files, and reports back in structured JSON. It does not decide what to cut, whether a deliverable is approvable, what makes a highlight interesting, or what a caption should say (the user's cue text is burned as written, never rewritten to fit) — those are a *brain*'s job, sitting in front of this engine, not inside it.

| You want to... | Use |
|---|---|
| Cut / join / measure / export a file right now | **this repo** (`ffmpeg-skill`), standalone |
| Decide cut points, approve a deliverable, plan a whole edit | [`video-production-agent`](https://github.com/kajisho5/video-production-agent) / [`AI-video-production-OS`](https://github.com/kajisho5/AI-video-production-OS) |
| Build a typed editing graph across a workspace, without writing raw `ffmpeg` | [`video-editing-skill`](https://github.com/kajisho5/video-editing-skill) / [`audio-production-skill`](https://github.com/kajisho5/audio-production-skill) |
| Put Remotion motion graphics (animated captions, silence jump cuts, audio-peak motion) on a real recording | [`remotion-ffmpeg-skill`](https://github.com/kajisho5/remotion-ffmpeg-skill): its compositions take their length, fps, frame, silences, scene cuts, audio peaks and beats from this repo's `probe.py`, `silence.py` and `scenes.py`. It verifies its render with `check.py` and `look.py`, composites a graphics layer with `overlay.py` (`--place` for its `--sparse` mode), and delivers through `render.py --template` |

Other repos in the ecosystem — [`media-analysis-skill`](https://github.com/kajisho5/media-analysis-skill), [`transcription-skill`](https://github.com/kajisho5/transcription-skill), [`subtitle-skill`](https://github.com/kajisho5/subtitle-skill), [`thumbnail-skill`](https://github.com/kajisho5/thumbnail-skill), [`color-grading-skill`](https://github.com/kajisho5/color-grading-skill), [`motion-graphics-skill`](https://github.com/kajisho5/motion-graphics-skill), [`qc-skill`](https://github.com/kajisho5/qc-skill) — read this repo's `contract --json`, its tools' `--json` output and `doctor`, the same way any agent framework would; this repo does not call into any of them. The dependency runs one way.

---

**Contents**
[Standalone, and in an ecosystem](#standalone-and-in-an-ecosystem) · [Why](#why) · [Quick start](#quick-start) · [How it works](#how-it-works) · [Design principles](#design-principles) · [Tools](#tools) · [Audio](#audio-is-a-first-class-input) · [Built for agents](#built-for-agents) · [FAQ](#faq) · [FFmpeg compatibility](#ffmpeg-compatibility) · [Tested on real footage](#tested-on-real-footage) · [Install](#install) · [Requirements](#requirements) · [Development](#development) · [Docs](#docs)

---

## Why

An agent that "knows FFmpeg" still guesses: it assumes a frame rate, picks a codec the container cannot hold, re-encodes a file that only needed a stream copy, and reports "done" without opening the result. This skill takes the guessing out:

- **Real files first.** Every job starts with `probe.py`; the agent decides from the measured duration, fps, resolution, colour and audio layout, not from the file name.
- **Structured tools, not shell strings.** Each operation is a script with typed arguments. Nothing runs through a shell; no filter graph is accepted from the caller.
- **A contract the agent can read.** `contract --json` states, for every tool, what it takes, what it writes, which FFmpeg components it needs and how the result is verified. The MCP surface is derived from it.
- **Verification after execution.** The result is probed, checked against the destination's spec and, when the picture changed, looked at as a contact sheet.
- **Local first.** No cloud, no API keys, no Python dependencies. Optional local transcription is used when a speech engine (Parakeet or a whisper) is installed, never required — by `caption.py --transcribe` and, since 1.17, by `silence.py --transcribe` (with `--filler`, or since 3.6 with `--sentence-min-silence` / `--sentence-margin-tail`); both take a transcript you already have instead, and both refuse with the install lines rather than guessing. Both take `--engine` and `--model`; `FFMPEG_SKILL_ASR_ENGINE` and `FFMPEG_SKILL_ASR_MODEL` set this machine's defaults (e.g. `large-v3-turbo` where that whisper.cpp model is installed; without either, auto and `base`). The engine runs on your machine and the audio is never uploaded; parakeet-mlx, faster-whisper and openai-whisper download their model weights the first time they run (parakeet-mlx's default from Hugging Face).

## Paper

The design discipline behind this skill — per-operation verification for AI agents — is written up as a position paper. The paper scores ffmpeg-skill itself as only partially conformant with the discipline it defines.

Kajiyama, S. (2026). *What Is Verification-Driven Coding? — A Discipline for Not Trusting Generation.* Zenodo. https://doi.org/10.5281/zenodo.23720216

## Quick start

```bash
# 0. FFmpeg itself, once (Ubuntu/Debian shown; macOS and Windows are in the Install table below)
sudo apt install ffmpeg

# 1. install the skill for Claude Code (Cursor: --cursor, Codex: --codex, all three: --all)
npx ffmpeg-skill

# 2. check the machine: ffmpeg, ffprobe and every FFmpeg component the tools need
npx ffmpeg-skill doctor

# 3. (for agent frameworks) read the machine-readable contract
npx ffmpeg-skill contract --json | head -40
```

Captions from speech (`caption.py --transcribe`) need one local speech engine, installed separately. `pip install faster-whisper` is the simplest; the first run downloads its model, and the audio never leaves the machine. Without an engine, everything else works, `doctor` lists the engine as missing optional, and `--transcribe` refuses with the install line for each engine it supports.

Already installed? re-run `npx ffmpeg-skill` to refresh `~/.claude/skills/ffmpeg-skill`. Copies are not updated automatically.

`doctor`'s overall `ok` and a single tool's `usable` are different signals: `ok` is false when anything *some* tool requires is missing, so one missing filter (a plain Homebrew `ffmpeg` without `subtitles`, or a build without libvidstab) turns it false even though most tools still run. Check `doctor --json`'s `tools` field for the per-tool answer, not just `ok`.

Then talk to your agent:

> "Take `interview.mp4`, keep 0:45–3:10 and 5:00–6:30, and make it exactly 60 seconds for Reels."

The agent runs `probe.py`, `cut.py --segments 0:45-3:10,5:00-6:30`, `fit.py --duration 60 --aspect 9:16 --fit crop`, `export.py --preset reels`, `check.py --platform reels` and `look.py`, then reports "final.mp4: 59.98 s, 1080×1920, 30 fps, AAC stereo" with the contact sheet it inspected.

### Deliver to a platform

One command per destination, with the app's own UI taken into account:

```bash
python3 $S/render.py talk.mp4 --template tiktok --cues cues.txt
```

That fills the shipped `templates/tiktok.json`: 9:16 crop, captions popped word by word *above*
TikTok's description bar and clear of its like column, −14 LUFS, the `tiktok` export preset, and
a `check.py --platform tiktok` on the file it wrote. The caption size comes from the delivery
table, so since 1.17.1 the filled project also states `"fit_size": "on"`: a size nobody asked for
shrinks to fit the cue instead of splitting the sentence across two cues. A template that states
its own `fit_size`, and a `--brand` that states a caption size, still win, and a project with
`"fit_size": "off"` renders the captions 1.17.0 rendered. Templates ship for `tiktok`, `reels`,
`shorts`, `youtube-shorts`, `youtube`, `x`, `linkedin`, `facebook`, `podcast` and `audiogram`;
`--template all` (or a comma-separated list) renders the seven video destinations (`tiktok`, `reels`, `shorts`, `youtube`, `x`, `linkedin`, `facebook`) from the same edit and
writes a `<name>_pack.md` table of what each one produced. Files land next to the input unless
`-o` says otherwise, and `--dry-run` shows every planned command rather than a result.
`render.py --list-templates` prints them with their frames, limits and safe zones. Alias
spellings work everywhere a platform is named (`youtube-shorts` = `shorts`, `ig` = `reels`,
`twitter` = `x`, `fb` = `facebook`).

The tools also work on their own, from any shell:

```bash
S=~/.claude/skills/ffmpeg-skill/scripts
python3 $S/probe.py input.mp4 --compact
python3 $S/fit.py input.mp4 --duration 60 --aspect 9:16 --dry-run    # print the plan, run nothing
python3 $S/export.py input.mp4 --preset reels --json                 # structured result with a probe of the output
```

On Windows in Git Bash, `python3` is only on PATH if Python was installed from the Microsoft Store; a python.org install exposes `python` (or the `py` launcher) instead — replace `python3` with `python` above if you see a "command not found". `bin/install.js` and `doctor`/`contract` already handle this for you; only the raw script examples above need it spelled out manually.

More requests and the commands behind them: [examples/README.md](examples/README.md). To see everything run end-to-end on generated footage: `npm run demo` (the gallery in [docs/demos.md](docs/demos.md)).

## How it works

```mermaid
flowchart TD
    U[User request] --> A[AI agent<br/>Claude Code · Cursor · Codex]
    A -->|reads| S[SKILL.md<br/>workflow, request → tool map, report format]
    A -->|runs| T[Structured tool<br/>scripts/&lt;name&gt;.py, typed argparse flags]
    T --> C[Contract<br/>input schema · role · capabilities · verification policy]
    C --> D[Capability detection<br/>doctor: available / missing / unknown]
    D --> F[FFmpeg execution<br/>no shell, stream copy when possible]
    F --> V[Verification<br/>probe · check · look.py contact sheet]
    V --> R[Structured result<br/>--json: status, output, commands, probe]
    R --> A
```

Over MCP the same tools are reached through a transport that holds no tool table of its own:

```mermaid
flowchart LR
    M[MCP client<br/>Claude Desktop · Cursor · any client] --> P[mcp/server.py<br/>stdio JSON-RPC]
    P -->|tools/list| C[Contract-derived ToolSpecs<br/>names · order · inputSchema]
    P -->|tools/call| T[scripts/&lt;name&gt;.py]
    C -.derived from.-> K[scripts/_contract.py]
    T -.described by.-> K
```

Names, order and `inputSchema` in `tools/list` are translated from each tool's argparse parser at start-up, so a new flag or a new script appears in MCP with no edit to `mcp/`. A test copies the skill, adds, removes and edits a script, and reads `tools/list` again to prove it.

## Design principles

These are the rules the skill file gives the agent and the code enforces.

1. **Probe first.** No tool decides from the file name. `probe.py` measures duration, fps (with variable-frame-rate detection), resolution, rotation, bit depth, HDR format including Dolby Vision, colour tags and every audio stream before anything is cut.
2. **Lossless when possible.** `cut.py` and `loudness.py` stream-copy what they do not need to touch (`join.py` re-encodes so it can crossfade and conform mismatched clips; `--copy --transition none` joins clips that already match by stream copy). Re-encoding happens only when it must: frame-accurate cuts, filters, format changes, or a keyframe farther than the tolerance.
3. **Plan before render.** Every tool takes `--dry-run` (print the ffmpeg command lines, write nothing; `verify` ignores it), `--plan FILE` (the dry run saved as a plan with fingerprinted inputs that `render.py FILE` executes later, refusing if an input changed; `render` and `verify` refuse it), `--json` (structured result with a probe of the output), `--fast` (preview quality), `--progress` (percent and ETA), `--timeout` (a hung ffmpeg is killed and reported, never waited on forever; Ctrl-C or SIGTERM likewise stops the running ffmpeg, removes its partial output and reports `kind: interrupted`) and `--overwrite` (explicit consent before an existing output is replaced). A test runs every tool whose contract says its dry run runs no ffmpeg (`ffmpeg_execution: none`, plus `cut` and `metadata` without their measuring flags) under `--dry-run` behind a fake ffmpeg and asserts that no ffmpeg call happened and no file appeared; another runs every tool the contract says supports `--dry-run` (all but `verify`) behind an ffmpeg that logs each decode, and asserts that no file appeared and that every tool that decoded is one the contract lists as `analysis_only`.
4. **Machine-readable contract.** `contract --json` describes all 42 tools: input schema generated from the parser, output schema, role, required and conditional FFmpeg capabilities, dry-run support, the verification tools to run afterwards, whether a visual check is required, `mutates_input: false`. `provides` lists all 42 by a cross-repository Capability id (`ffmpeg-skill.cut`, `ffmpeg-skill.loudness`, ...) for [`kajisho5/AI-video-production-OS`](https://github.com/kajisho5/AI-video-production-OS)'s `CapabilityContract.provides` — see `docs/contract.md`.
5. **Contract-derived MCP.** `mcp/server.py` builds its `tools/list` from the contract. Tool names, order and `inputSchema` cannot drift from the scripts; a test keeps the two byte-identical.
6. **Capability detection.** `doctor` reads `ffmpeg -encoders / -decoders / -filters / -bsfs` and reports which of the components the tools need are present on this build (libx264, libass, zscale, loudnorm, xfade, …), before a job fails inside ffmpeg.
7. **Unknown is not missing.** When a listing cannot be read (a layout the parser does not know, ffmpeg exiting non-zero) the affected capabilities are `unknown`: never `missing`, never silently `available`. An installed filter is not reported absent; a failed detection is not a pass.
8. **Verify the result.** The output is probed, and when the picture changed (captions, overlays, crops, colour, transitions) the agent runs `look.py` and inspects the PNG. The report is not finished until its `Look:` line names that image; audio-only jobs say `Look: not needed`. **"Inspects" means the calling agent's own vision, not a feature of this skill:** `look.py` only renders a PNG; nothing in this repository detects faces, products, subjects, or "the interesting part" of a frame or a scene. When a crop or reframe needs to keep a specific part of the frame (`fit.py --fit crop --crop-x/-y`, see [Tools](#tools)), it is the multimodal agent looking at that PNG and choosing the anchor — a non-visual caller (a script, a CLI user without eyes on the sheet) has to supply that decision itself, and the default is a plain centre crop. Likewise `scenes.py --highlights` ranks candidate scenes by a measured proxy (`--rank-by audio` or `--rank-by duration`), never by content; it is the agent that turns a look at the sheet into a judgement.
9. **One label per report.** A finished job is `Done:`, a failure or a refusal is `Failed:`, and a partial result is `Done:` with the shortfall named in `Notes:` — never a third label such as `Done (partially):`.
10. **Keep originals.** No tool overwrites its input. Outputs are new files named `<input>_<operation>.<ext>` unless told otherwise, and a test hashes every input after the run.

## Tools

42 public tools, all Python 3.10+ standard library, all with `--help`, `--dry-run`, `--json`, `--plan FILE` (a dry run written as a plan `render.py` executes later), non-zero exit and a reason on stderr on failure. `--json-brief` (1.11.0) prints the same result document trimmed to what a caller acts on — status, output, `verified`, a compact `summary` of the output probe, the tool's own keys and the command count instead of the command lines — for roughly a third of the bytes; `--json` itself is unchanged. Every re-encoding tool except `export.py`, `render.py` and `batch.py` (a preset or the project decides there) takes `--codec h264|hevc|av1|prores` and `--quality N` (1.8) and, with `export.py`, `--hw`/`--no-hw` (Apple VideoToolbox on Apple Silicon, opt-in; see `doctor` below), and every time flag takes seconds, `mm:ss`, `hh:mm:ss.fff` or SMPTE `hh:mm:ss:ff` with an optional `@fps` suffix (1.9).

**Analysis and inspection**

| Tool | What it does |
|---|---|
| `probe.py` | Duration, fps (+ VFR detection), resolution, codecs, bit depth, HDR format incl. Dolby Vision (`hdr` for a real PQ/HLG/DV transfer only, `bt2020_or_hdr` also for BT.2020 SDR), colour space, rotation, every audio stream; `--analyze` flags Log footage |
| `scenes.py` | Scene changes, audio peaks, highlight proposals (`--rank-by audio` loudest, or `--rank-by duration` longest — both proxies, not "best") and a per-scene sheet; cut list for `cut.py --segments`; `--beats` measures the music's beat grid (tempo, beat times, confidence); `--shots` classifies each shot static/pan/motion by measured optical flow; `--audio-peaks` lists per-second dBFS; `--speech` reports a speech-vs-music ratio, not a classification |
| `look.py` | Contact sheet, single frames, side-by-side comparison as PNG so the agent can see what it made; `--safe NAME` shades the zones a platform's own UI covers; `--guides title,action,4:3` outlines the broadcast safe areas (on the PNG only) |

**Editing**

| Tool | What it does |
|---|---|
| `cut.py` | In/out or multi-segment cuts, lossless `-c copy` first, re-encode fallback, `--accurate` for frame-exact video and sample-exact audio, `--smart` for a frame-exact H.264 cut that re-encodes only the partial GOPs at the cut points (matched to the source, verified against its packets and frames) and copies the rest, an SDR HEVC source re-encodes as HEVC (`--no-keep-hevc` for x264), a single `.mp4`/`.mov` copy keeps its edit list, so the picture starts at `--start` unless a keyframe lands later (`start_snapped` then says so; `--no-edit-list` for 2.x's shifted start), `--vfr-guard` to choose the VFR check (`sampled` by default); reports `precision`; `--snap beats` moves the in/out points onto a measured beat, or refuses when there is no measurable pulse ; `--remove A-B,...` drops ranges and keeps the rest |
| `join.py` | Concatenate clips with xfade transitions, normalising size, fps, sample rate and channel layout (the widest clip's, or `--channels`); audio-only inputs are joined as audio; `--list parts.txt` reads generated segments (TTS lines) and checks every one first — missing, empty or unreadable parts are all named in one refusal, or skipped and reported with `--on-missing skip` ; `--copy --transition none` joins clips with matching streams by stream copy, measured afterwards, and refuses a mismatch by name |
| `silence.py` | Detect and remove dead air (jump cuts) with a margin around speech (`--margin`, 0.2 s each side); list or export the cut list, or a source-to-output time map (`--timemap`, JSON or CSV); reports the level at every cut and warns where one may land in a breath or a word's tail; `--filler` also removes filler words, but only where a speech engine timed them; `--speech-aware` keeps a breath inside a sentence and cuts only at sentence-boundary pauses, composing with `--filler` through the same `keep_ranges()`; `--margin-lead` / `--margin-tail` keep different amounts before and after speech, and with word timings `--sentence-min-silence` / `--sentence-margin-tail` give the pause after a sentence end (the transcript's punctuation) its own floor and tail |
| `fit.py` | Fit to a duration (pitch-preserving speed change or trim, smooth slow-mo) and/or aspect ratio (pad, crop or `--fit blur`'s blurred, darkened fill, with `--crop-x`/`--crop-y` to keep an off-centre subject) and/or exact `--width`/`--height`, with the result's `picture` saying where the picture sits in the frame written (measured); rotate 90/180/270, flip h/v; force constant fps |
| `crop.py` | Crop to an exact pixel rectangle (`--x --y --width --height`) — distinct from `fit.py --fit crop`, which crops to an aspect ratio it computes itself |
| `cropdetect.py` | Measure existing black letterbox/pillarbox bars and report the `crop.py`-ready rectangle that removes them — analysis only, writes no file; `--motion-centre` reports the per-second motion centroid instead, for a 9:16 reframe — report only, the calling agent picks the crop, no auto-reframing |
| `deinterlace.py` | Deinterlace interlaced source footage (`yadif`), `--mode frame`/`field`, `--parity` |
| `denoise.py` | Reduce video noise/grain (`hqdn3d`), `--strength low/medium/high` or individual spatial/temporal overrides |
| `redact.py` | Blur, pixelate, or (`--mode delogo`) interpolate away an exact pixel rectangle for the whole clip. The box is given: nothing here finds a face, a plate or a logo, and `delogo` is a border blend, not inpainting |
| `sphere.py` | Extract a flat rectilinear viewport from a 360/spherical video (`--yaw --pitch --roll --h-fov --v-fov`); no subject tracking, only the aim you give it |
| `straighten.py` | Rotate by an arbitrary angle for horizon correction (`--degrees`, `--fit crop/pad`) — distinct from `fit.py --rotate`'s exact 90-degree turns |
| `insert.py` | Turn a still image into a silent, fixed-duration video clip (title card, end slate) at an exact frame size / fps, with an optional Ken Burns zoom/pan |
| `background.py` | Generate a solid-colour or two-colour gradient clip at an exact size/duration — no input file; `--transparent` writes a fully transparent canvas (ProRes 4444, QuickTime Animation, PNG or VP9 with alpha) to draw graphics on |
| `reverse.py` | Reverse playback (video and, unless `--no-audio`, audio) |
| `stabilize.py` | Two-pass motion stabilisation (`vidstabdetect`/`vidstabtransform`) |
| `sequence.py` | Numbered (`frame_%04d.png`) or glob-matched still images into a video |
| `waveform.py` | Render an audio track as a waveform or spectrum visualization video (`showwaves`/`showspectrum`) — for audio-only inputs with no picture worth showing; `--image` puts the visualisation over a still plate (an audiogram), with `--platform`, `--title` and burnt-in captions |
| `freeze.py` | Hold a frame for N seconds (`--at`, `--hold`, `--mode insert/extend`) — an end-card hold or a comedic beat |
| `pad.py` | Add black/silent padding at the start and/or end of the timeline (`--start`, `--end`) — distinct from `fit.py --fit pad`'s per-frame letterbox bars |
| `speedramp.py` | Step through different constant speeds across a clip via `--segment START-END:FACTOR` (repeatable) — distinct from `fit.py`'s single whole-clip speed factor |
| `loop.py` | Repeat a clip `--times` N or to a target `--duration` — for background loops and filling a fixed slot length; `--crossfade` smooths the seam, `--boomerang` plays it forward then backward |
| `broll.py` | Cut away to a B-roll clip over the A-roll for a window (`--insert B --at T --duration D`, repeatable) and come back; A's length and audio untouched by default |
| `metadata.py` | Write container chapter markers from a `TIME TITLE` text file and title/artist/comment tags, every stream copied bit for bit; `--auto-chapters` proposes the markers from measured pauses and scene cuts and names them `Chapter N` for you to rename |
| `grid.py` | Composite `--cols`x`--rows` clips into one grid, each cell letterboxed and labelled with its filename by default (`--label none` to skip) |

**Audio**

| Tool | What it does |
|---|---|
| `audio.py` | Voice clean-up chain at three strengths (`--voice light\|medium\|strong`), FFT denoise, typed compressor / limiter / gate, music bed with sidechain ducking (`--duck-amount/-threshold/-attack/-release`), a never-ducked effects bed (`--effects`), `--stereo-widen`, fades, 5.1 → stereo, track replacement, extraction (`-o out.wav`), `--audio-stream N`, a tempo change that keeps the pitch (`--tempo`, atempo stages in 0.5–2.0) and an exact length in samples (`--length-samples`), resampling (`--sample-rate`) and one channel by index (`--channel N`), each read back from the output |
| `sync.py` | Offset between two recordings by audio cross-correlation (1 ms, pure Python), clock-drift correction; aligned video or audio out (audio-to-audio only — no lip-sync/face detection); a third or later camera is an additional `more_sources` positional (`sync.py REF A B ...`), the `second` positional itself keeps its name |
| `loudness.py` | Two-pass EBU R128 `loudnorm` to −14 LUFS / −1 dBTP or any target (`--lra` for the range), video stream-copied; the written file is measured again and re-encoded until it meets `--tp` (lossy encoders overshoot); `--measure-only`; `--versions streaming,ebu-r128,broadcast-jp` (or `LUFS/TP` pairs) writes one file per target from one master, each measured after and listed in `versions` (`output` is null), `verified` only when every version met its own target |

**Picture**

| Tool | What it does |
|---|---|
| `caption.py` | Burn SRT/ASS with font, size, colour, outline, position; build SRT from timed plain text; wraps to the safe area — with `--platform`, the destination's own left/right safe zone, which since 1.17.2 is also what the burnt ASS states as its side margins — with a phrase-aware breaker (`--wrap phrase\|measured`) and `--max-lines`/`--min-duration`/`--offset`; `--mode mux` takes a repeated `--srt file:lang` for several language-tagged, toggleable tracks in one file; picks a font by script for non-Latin text (`--lang`); animated and word-by-word karaoke timed to the speech energy or real word timings; `--fit-size` shrinks the size until a cue fits `--max-lines` instead of splitting the sentence (on by default on the delivery-template path since 1.17.1, where the size comes from the platform table); says `caption text unchanged` when it burned the cues exactly as given; optional local transcription |
| `overlay.py` | Logos, watermarks and titles with position, time range, opacity, fades; `--platform NAME` keeps them clear of that destination's UI; `--video` for picture-in-picture, `--chromakey` for green-screen compositing, `--place` to lay ranges of a layer at chosen times; `--keep-alpha` composites onto a transparent canvas or alpha clip and writes the result with its alpha; a VP9 layer with alpha keeps its transparency |
| `graphics.py` | Lower-thirds, title cards, chapter chips, progress bars, countdowns, corner bugs, social stickers, opening hook cards and meme captions drawn by FFmpeg from a brand kit; `--platform NAME` keeps them inside that destination's safe zone; `--text-render` routes shaping scripts through libass and `--emoji-assets` composites colour emoji; `--keep-alpha` renders a template on a transparent canvas as a per-element alpha layer |
| `color.py` | HDR10 / HLG / Dolby Vision → SDR BT.709 tone mapping, DV layer stripping, 3D LUT (.cube), colour-tag rewriting, typed primary correction (exposure/contrast/saturation/gamma/white balance/lift-gain/levels/curves); `--keep-alpha` grades an alpha clip and keeps its alpha, checked frame by frame; `--legalize bt709\|ebu-r103`: a legal-range clamp after the 4:2:0 conversion, measured on the written file |

**Delivery**

| Tool | What it does |
|---|---|
| `export.py` | Presets `youtube`, `youtube4k`, `reels`, `tiktok`, `shorts`, `linkedin`, `facebook`, `x`, `youtube-hdr` (HEVC Main10, source HDR tags kept), `youtube-av1`, `prores`, `dnxhr-lb`/`sq`/`hq`/`hqx`/`444`, the alpha masters `prores4444`/`prores4444xq`/`qtrle`/`vp9-alpha`/`hap-alpha` (alpha read back), `key-fill` (a switcher's fill + key pair), `h265`, `gif`, `copy`, all tagged BT.709 unless they carry HDR or are an editing master (`prores`, `dnxhr-*`: the source's tags kept, codec, profile and pixel format read back) (a BT.601-matrix or RGB source is converted to BT.709, not relabelled); `--normalize` meets the platform's loudness in the same call (`render.py` turns it on by default for platform presets) ; `--max-mb MB` fits the file under a size limit by a two-pass encode and measures it ; `--preset copy --repair` remuxes a damaged file (timestamps regenerated, corrupt packets dropped) and counts the errors before and after |
| `proxy.py` | Small, low-bitrate proxy for downstream AI analysis/preview/editing decisions — resize by `--width`/`--scale`, proxy-grade `--quality` (default 30), `--fps`, `--no-audio`; not a delivery preset |
| `check.py` | PASS / WARN / FAIL against YouTube, Shorts, Reels, TikTok, X, LinkedIn, Facebook, broadcast and podcast specs, from the same delivery table the export presets and templates read (podcast also reports chapter markers and channel count), with the fix for each failure and a `format` / `judgement` kind per row; a length or file size over the table's upload limit is a WARN marked `basis: guidance` (platforms change these, the uploader checks the current one), while `--max-duration` / `--max-mb` state the caller's own limit and FAIL when a `--platform` is named (with none, an over-length is WARN like every judgement row); `--content` adds black-frame, frozen-frame, silence, short audio-dropout, single-frame-flash and flat-first-frame rows ; `--compare REF` measures SSIM/PSNR against a reference, and with `--expect-changed SPAN\|none` fails when the picture changed outside the spans the caller declared; `--levels bt709\|ebu-r103` counts the luma and chroma samples outside the broadcast legal range, per clip and per window, with min/max Y/U/V; `--expect-identity` checks that the file is the one a run reported writing (`output_identity`) |
| `report.py` | Single-file HTML delivery report: before/after sheets, media facts, loudness, compliance, the commands run; `--pack` renders a social pack table |

**Orchestration**

| Tool | What it does |
|---|---|
| `render.py` | Render a whole edit from a declarative `project.json` (clips, transitions, captions, overlays including the social sticker/hook/meme graphics and a picture-in-picture or chroma-keyed `video` layer sized for the final frame, music and stem levels, loudness, export, chapter markers, check); `--init`, `--dry-run`, `--stop-after`, `--cache DIR`/`--from STAGE` (reuse the stages that did not change); the captions block takes the fit-size policy (`fit_size`, `min_size`, `fit_size_scope`) and the run reports the caption stage's counts as `caption`; `--template NAME INPUT` renders a shipped delivery template (`--template all` writes the whole social pack plus its table); `--export-timeline edit.fcpxml\|.edl\|.otio` (2.1) writes the cut as an editor timeline for Final Cut, DaVinci Resolve or Premiere instead of rendering it — clips, speed, dissolves, the music bed and chapter markers carry over, and `not_exported` names what stays behind |
| `batch.py` | Apply a step recipe or a project to a folder with a content-hash cache; `--watch`; `--jobs N` processes several files at once under one shared `--timeout`. A step that writes must name `{out}` or its own `-o`/`--output`: one that writes its default output instead is refused (`step_writes_without_out`) |
| `multicam.py` | Align any number of cameras and recorders by audio (with drift correction) and cut between them from a switch list; `--switch energy` auto-cuts to whichever camera is loudest at that moment instead of a hand-built list (audio level as a stand-in for who is talking: there is no speaker identification, so it needs each speaker on their own camera's mic), with `--min-shot` (minimum shot length) and `--edl` (write a plain START-END cut list, not a CMX EDL; for Premiere/Resolve use `--write-project` then `render.py --export-timeline`) |
| `verify.py` | Run the toolchain on real device files and report PASS / FAIL per step |

Not tools, but part of the surface: `mcp/server.py` (the MCP transport) and `scripts/_contract.py` (`contract --json`, `doctor`). Per-flag reference for every tool: [references/scripts.md](references/scripts.md).

## Audio is a first-class input

WAV, FLAC, MP3, M4A/AAC, OGG and Opus go through `probe`, `cut`, `join`, `silence`, `loudness`, `audio`, `sync` and `check --platform podcast` with the same commands as video. The output extension picks the codec: `-o out.wav` writes PCM, `-o out.aiff` (`.aif`) and `-o out.caf` 16-bit PCM in that container, `-o out.flac` FLAC, `-o out.mp3` MP3, `-o out.m4a` AAC; `.wma` is written only as a stream copy of WMA sound (`cut.py` without `--accurate`, `metadata.py`), and a run that would encode into it is refused.

- **Extraction.** An audio extension on a video input drops the picture: `audio.py talk.mp4 -o talk.wav`, or `--voice -o talk.m4a` to clean it on the way (sound that starts after the picture keeps its place: the lead is written as silence). A tool that encodes a picture (and `metadata.py` for a source with one) refuses an audio extension (`output_extension_audio_only`). `--audio-stream N` picks a track; `probe` lists them under `audio_streams`.
- **Join.** `join.py intro.wav episode.m4a outro.wav -o full.flac` resamples every clip to one rate and channel layout and crossfades them (`--transition none` for a butt join). Audio and video inputs cannot be mixed in one join.
- **Sample-accurate trims.** `cut.py talk.wav --start 1.2345 --end 2.3456 --accurate` trims at the sample; the JSON reports `precision` (`packet` for a stream copy, `sample` for PCM / FLAC, `codec_frame` when a lossy encoder frames the audio again, `frame` for video) and the measured `duration_error_ms`. A `.wav` never receives compressed packets.
- **Typed dynamics.** `audio.py --compress --comp-threshold -20 --comp-ratio 4`, `--limit --limit-ceiling -1`, `--gate --gate-threshold -45`. Each flag is one documented option of FFmpeg's `acompressor`, `alimiter` or `agate`, range-checked before ffmpeg runs; no filter string is accepted from the caller.
- **Loudness.** `loudness.py talk.wav -I -16 --tp -1.5 -o talk.m4a` for podcast levels; `check.py talk.m4a --platform podcast` measures LUFS and true peak and reports the chapter markers and channel count.

Picture tools (`fit`, `caption`, `overlay`, `graphics`, `color`, `export`, `look`) refuse an audio file with "input has no video stream" instead of inventing a picture. `scenes.py` measures an audio file (`audio_only: true`, one scene): `--beats`, `--audio-peaks`, `--speech` and `--highlights` run on the sound, and `--sheet` / `--shots` are refused.

## Built for agents

### What is SPEC?

**SPEC** (Self-Producing Execution Contract) is the name this project's author,
[kajisho5](https://github.com/kajisho5), gave the pattern the tool layer is built on: each tool's
`input_schema` — the part of its contract that has to track the CLI exactly, flag for flag — is
never hand-authored side by side with the code. It is derived, at run time, from the one thing
that has to be correct for the CLI to work at all: the script's own `argparse` parser.

Concretely, `scripts/_contract.py`'s `_capture_parser()` imports every tool script and
intercepts its `parse_args()` call to get the live, fully-built parser object — flags, types,
choices, defaults, required/positional, mutually exclusive groups, all of it. `input_schema` is
built straight from that object. (The rest of a `ToolSpec` — `role`, `capabilities`, `inputs`,
`outputs`, `output_schema` — comes from a hand-authored table, `TOOL_META`, since those facts
aren't things a parser can express; only `input_schema` is parser-derived.)

- **The contract**'s `input_schema` for every tool is generated from the live parser directly.
- **SKILL.md is two-tier** (1.11.0): the file the agent loads every session keeps the workflow, the
  request→script table and one line per gotcha; the long-form detail lives in `references/gotchas.md`
  and the other `references/` files, read only when a job needs it.
- **The MCP server** (`mcp/server.py`) carries no schema of its own; `tools/list` is translated
  straight from the contract, `input_schema` included.
- **The docs** (`docs/contract.md`'s field reference, this README's tool table) describe the same
  shape. `tests/test_contract.py` runs on every CI run and fails the build if any of them drift
  out of sync with what the code actually does — it catches drift, it doesn't fix it for you.

So adding a flag to a script's `argparse` block updates `input_schema` and the MCP tool
definition with no second edit, and a docs page or `TOOL_META` entry that falls behind fails CI
rather than drifting silently. There is no separate `input_schema` file to forget to update.

### Machine-readable contract

```bash
npx ffmpeg-skill contract --json            # or: python3 scripts/_contract.py --json
npx ffmpeg-skill contract --json --static   # without environment detection
npx ffmpeg-skill contract --json --tool cut # one tool's entry under `tools` (repeatable): ~60 KB, not ~950 KB
```

The contract is generated from the code that runs, not maintained beside it. For each of the 42 tools (`ffmpeg-skill/<name>`) it states:

| Field | Meaning |
|---|---|
| `input_schema` | generated from the tool's argparse parser: properties, types, enums, defaults, required, positional order, mutually exclusive groups |
| `output_schema` | what `--json` prints: `status`, `output`, `commands`, `probe`, `output_identity` (`{size, mtime_ns}` of the file written, on every tool but `probe`), plus tool-specific fields (`precision`, `checks`, `offset_seconds`, …) |
| `role` | `analysis`, `analysis_and_execution`, `execution` or `verification` |
| `capabilities` | the FFmpeg encoders, filters and bitstream filters the tool always needs, and the ones needed only for a flag or input |
| `supports_dry_run`, `supports_json`, `supports_json_brief` | measured by the tests, not declared |
| `verification` | which tools to run on the output afterwards (`probe`, `check`, `look`) |
| `requires_visual_verification` | the picture changed; inspect the contact sheet |
| `audio_only`, `video_required` | whether an audio-only input is accepted or refused |
| `mutates_input` | always `false` |
| `idempotency_hint` | `bit_exact`, `content_equivalent`, `cached` or `environment_dependent` |

Next to the tool list the document carries a top-level `deprecated` list (since 1.10): what the next major removes, since when, the replacement and the surface it lives on. It is empty in 3.0.0: Python 3.9 and FFmpeg 5.x, the two 2.x entries, moved to `removed` with what 2.0 removed, and `docs/contract.md` "What 2.0 changed" and "What 3.0 changed" are written from that.

`contract_version` (2.0) is separate from the skill version, so a consumer can pin the shape and read the version for provenance. The document also states the invocation mapping (structured arguments → argv), the JSON shapes for success and failure (`{"status": "failed", "error": {"kind": "input | ffmpeg | output | missing_tool | timeout | verification | interrupted", "message": …}}`; a refusal adds `error.reason`, a stable code such as `output_exists` or `plan_inputs_changed`, and `error.details`, the facts behind it; warnings, fallbacks and skipped steps a run decided on its own are in `diagnostics`), and that no tool runs a shell or executes anything other than the named script, `ffmpeg` and `ffprobe`. Field-by-field reference: [docs/contract.md](docs/contract.md).

### MCP

```json
{"mcpServers": {"ffmpeg-skill": {"command": "python3", "args": ["/Users/you/.claude/skills/ffmpeg-skill/mcp/server.py"]}}}
```

On Windows, `python3` is only on PATH if Python was installed from the Microsoft Store; a python.org install exposes `python` (or the `py` launcher) instead — if your MCP client reports the server failed to start, change `"command"` above to `"python"` (or the full path from `where python`).

`mcp/server.py` is a stdio JSON-RPC transport with no tool table of its own. `tools/list` is derived from the contract at start-up, in contract order, with `inputSchema` translated from each tool's `input_schema`. By default it lists only the core 12 (`render`, `look`, `caption`, `export`, `check`, `fit`, `cut`, `audio`, `loudness`, `graphics`, `silence`, `probe`) so a client doesn't pay context for 30 schemas it rarely calls directly; set `FFMPEG_SKILL_MCP_FULL=1` to list all 42. Every tool, listed or not, is callable through `tools/call`, which maps structured arguments to argv and runs the named script; a raw `argv` form is accepted for compatibility and marked non-canonical. `python3 mcp/server.py --list` prints the tools; `--call probe '{"inputs": ["a.mp4"]}'` runs one from the shell.

No `inputSchema` lists `json` or `progress`: they are transport flags the server sets itself, not tool arguments (2.0; 1.x listed them unless `FFMPEG_SKILL_MCP_LEAN=1`). A client that still sends them is not refused.

A structured value is never read as an option: one that starts with `-` (overlay text `-50%`) is passed as `--flag=value`, and positionals that start with `-` follow `--`. `probe`, `check` and `cropdetect` are annotated `readOnlyHint` and write no file over MCP (their `plan` is refused, structured or in a raw `argv`); every other tool is `destructiveHint`, because with `overwrite` it replaces an existing file. See `docs/contract.md` § MCP relationship.

The server also advertises a `prompts` capability: five canned workflow recipes an agent can ask for by name instead of composing the individual tool calls itself — `reel`, `podcast`, `multicam`, `delivery_check`, `hdr`. `prompts/list` returns each one's name, description and arguments; `prompts/get {name, arguments}` fills the matching template and returns one text message naming the actual command lines to run and what to check afterward. These are recipes, not new tool calls — every command line a prompt names is one `tools/call` (or the CLI) can already run.

### Capability detection

```bash
npx ffmpeg-skill doctor          # human-readable
npx ffmpeg-skill doctor --json   # available / missing / missing_optional / unknown / detection / errors / tools / gpu_encoders / ffmpeg_security
```

`doctor` reads `ffmpeg -encoders`, `-decoders`, `-filters` and `-bsfs` and resolves every capability the contract declares against this machine's build. Three states per capability: `available`, `missing`, `unknown`. Exit 0 when everything required is available, 1 when something required is missing, 2 when nothing is proven missing but a required capability is unknown. With detection on (the default), `contract --json` carries the same lists under `capabilities`. `doctor` also reports fonts: the default drawtext family, and `fonts.scripts` — one `available`/`missing`/`unknown` per writing system (ja, zh, ko, ar, he, hi, bn, ta, th, lo, ru, el, latin) with the file it would use — so "can this machine render Korean captions" is answered before the job, not after. `doctor --json`'s `tools` field folds that down to one answer per tool — `{"caption": {"usable": "no", "missing": ["filter:subtitles"], "fix": "..."}, ...}` — so "is `doctor` overall `ok`" and "can I run `caption.py` on this machine" are answered separately: a plain Homebrew `ffmpeg` is `ok` for tools that don't need `subtitles`/`drawtext`/`zscale`, while `caption`'s own `usable` is `"no"`.

`doctor --json`'s `gpu_encoders` reports which GPU-backed encoders (`nvenc`, `videotoolbox`, `qsv`, `vaapi`, `amf`) this ffmpeg *build* was compiled with — read from `-encoders` alone, so it proves the capability shipped, not that the GPU/driver on this machine will actually accept a job (that needs a real encode, which `doctor`'s introspection never runs). It never affects `ok` or any tool's `usable`. The one GPU path a tool uses is Apple VideoToolbox, opt-in: `--hw` on every re-encoding tool (h264/hevc/prores on the GPU, AV1 stays on SVT-AV1), `FFMPEG_SKILL_HW=1` to make it this machine's default for everything except `export.py`'s delivery presets (those take `--hw` explicitly, or `render.py --hw` for a whole project). It runs only on Apple Silicon and never by default, except on a build with no `libx264`/`libx265` (an LGPL ffmpeg that has only `h264_videotoolbox`/`hevc_videotoolbox`): there it is the only encoder, so every re-encoding tool and `export.py`'s presets use it without `--hw`, the result says `hw.source: "auto"`, and `doctor` lists the missing x264/x265 under `covered_by` instead of calling the tools unusable (`--no-hw` still asks for the CPU). It falls back to the CPU encoder — reported in the result's `hw.fallback`/`hw.notes` — only when VideoToolbox itself refuses a job (any other ffmpeg failure is reported as it happened, not retried); every result names the `encoder` that actually ran (`batch.py`, which encodes nothing itself: each `results` row), and a GPU encode adds a `notes` line that its quality is not CRF-equivalent. Measured on an M4 Max, 2–7× faster than x264/x265 `medium`; at matched SSIM (`tests/bench_vt.py`) 1.1–2.9× the bytes on SDR and 1.9–3.5× on HDR, which is why it is a flag and not the default (`docs/design-decisions.md`). `doctor --json`'s `hw` says whether this machine can run it (`platform_ok`) and whether it is the default here (`default_on`).

`doctor` also compares the FFmpeg version with a small, dated table of high-severity FFmpeg CVEs (`doctor --json`'s `ffmpeg_security`; source [ffmpeg.org/security.html](https://ffmpeg.org/security.html), checked 2026-10-22). ffmpeg-skill does not ship FFmpeg, so a decoder bug in the build you have stays yours until you upgrade it. When the version is older than the first upstream release on its branch that carries a fix (today: CVE-2026-8461, the MagicYUV decoder heap write, fixed in 8.0.3, 8.1.2 and 9.0), `doctor` prints one `warning:` line on stderr with the update command and lists it under `ffmpeg_security.warnings`. It is advice, never a failure: `ok`, each tool's `usable` and the exit code do not change. A distribution package (Ubuntu `8.0.1-3ubuntu2`, Debian `+deb13u1`) may carry the fix as a backport under the old version number, so the line says the build is older than the fix, not that it is vulnerable. A version it cannot read (a git snapshot such as `N-12345-g…`) gets no warning, and nothing is fetched: the table ships with the skill.

## Gotchas and best practices

The short list for humans. The agent-facing version, with the reasoning, is the "Things that look right but are wrong" and "Gotchas" sections of [SKILL.md](SKILL.md).

- **Variable frame rate (phone and screen recordings).** `probe.py` flags it; every re-encoding tool conforms to a constant rate automatically. `cut.py` samples the frame timing before a copy and switches to frame-accurate mode when it is variable or too short to judge, because copy-cuts on VFR land on the wrong frame (`--vfr-guard average` restores 2.x's rule, re-encoding whenever the nominal and average rates differ; `--vfr-guard off` keeps the copy). Choose the rate yourself with `fit.py input.mp4 --fps 30` when the measured average is odd.
- **Lossless cuts snap to keyframes.** A stream-copy cut can start up to one GOP earlier than asked. `cut.py` re-encodes when the snap exceeds 0.5 s (`--tolerance` changes the limit). For a strictly lossless file pass `--tolerance -1` (plus `--vfr-guard off` on a variable-frame-rate source), and expect the cut to land on the nearest earlier keyframe; the JSON result lists them under `nearest_keyframes`. A `--segments` join can still be re-cut: open-GOP video, a later segment of B-frame `.mp4`/`.mov` video that starts between keyframes (start it on a keyframe, or write `.mkv`), or a join that fails its check. A single `.mp4`/`.mov` copy keeps its edit list by default (since 3.0.0), so the picture starts where asked: the keyframe's pre-roll is stored but hidden by an MP4 edit list, which a player that ignores edit lists shows (`--no-edit-list` starts the file at the keyframe instead).
- **Frame-exact without re-encoding the whole cut (H.264).** `cut.py --smart` re-encodes only from each cut point to the next keyframe and copies the GOPs between, matched to the source's profile, level, pixel format, B-frame depth and colour tags. It checks the result against the source (frame grid, copied packets, decoded frames). A source it cannot match (HEVC, 10-bit, interlaced, VFR, open GOPs) is re-encoded in full, and `smart.reason` says why. `probe.py --keyframes-near T` shows where the keyframes are.
- **HDR stays HDR.** When the probe reports HDR (HDR10, HLG, Dolby Vision, BT.2020), the tools keep it rather than flatten it. Convert deliberately with `color.py --to-sdr` before H.264 deliverables or LUT work. `export.py` platform presets are SDR and warn on HDR input.
- **Loudness targets.** −14 LUFS / −1 dBTP for YouTube and social platforms (the `loudness.py` default), `-I -16 --tp -1.5` for podcasts, `-I -23` for broadcast. A clip measured at −40 LUFS or below is room tone, not content; raising it raises the noise. Check true peak as well as LUFS: `check.py file --platform podcast` measures both.
- **Alpha is kept only when asked, and a lost alpha is not verified.** The re-encoding tools write opaque H.264 by default. On a source whose alpha is used (ProRes 4444, QuickTime Animation, PNG, VP9 with alpha), `color.py`, `graphics.py` and `overlay.py` take `--keep-alpha` (ProRes 4444 by default, `--alpha-codec qtrle|png|vp9`, `--alpha-mode straight|premultiplied`) and read the alpha back; without it the result says `verified: false` with a failing `alpha` step, and `--drop-alpha` records that an opaque output is wanted. `background.py --transparent` makes the canvas to draw graphics on.
- **Broadcast legal levels are measured, not assumed.** `check.py final.mxf --levels ebu-r103` (or `bt709`) counts every luma and chroma sample outside the legal range and FAILs when one frame has more than 1 % out (`--levels-tolerance`); the JSON `levels` adds min/max Y/U/V per `--levels-window`. `color.py --correct --legalize ebu-r103` clamps after the 4:2:0 conversion and measures what the encode left: a lossy encoder can push a few samples around a clamped edge back out, so the result says how many.
- **Frame changes first, text second.** Captions and overlays burned before a crop or resize end up off-frame. Reframe, then caption.
- **Cropping 16:9 to 9:16 discards 70 % of the width.** `fit.py --fit crop` centres by default; pass `--crop-x`/`--crop-y` toward the subject, or pad with `--fit pad --pad-fill blur`. Look at the contact sheet before deciding.
- **Phrase-aware caption breaking (1.16).** `caption.py`/`graphics.py --wrap phrase` (the default) never breaks inside a word or on the wrong side of a hyphen, never leaves a lone digit, kana or punctuation pair on a line, prefers Japanese sentence ends and particles over a mid-word break, and never ends a line on an article or preposition. All four are penalties over break positions that already fit, so no line is widened and the line count never changes; `--wrap measured` restores 1.15's width-only wrap. The text itself is never rewritten or shortened. Since 1.16.1 a Thai run and a katakana word are never broken inside (Thai writes no space inside a phrase and there is no dictionary: the break goes where you put a space or `|`), and a line wider than the safe width is reported as `overlong` with the fix named.
- **Caption size fitted to the cue (1.17, reachable from the templates since 1.17.1).** At a platform caption size a line holds about six em, so an ordinary sentence needs four lines and `--max-lines 2` used to cut it into consecutive cues — half the sentence arriving late. `caption.py --fit-size` (default `auto`) walks the size down until every cue fits, *before* laying the cues out, with a legibility floor of 4.5 % of the frame height (`--min-size`, default 13 ASS units). An explicit `--size` or a `brand.json` size is a statement about the look and is never overridden — which in 1.17.0 also silenced the fitter on every `render.py --template` run, since a template fills the size from the platform table; 1.17.1 marks that size as the default it is (`"fit_size": "on"` in the filled project), so the type shrinks and no cue is split. `--fit-size off` restores that earlier behaviour byte for byte, and the caption text is still never rewritten to make it fit.
- **Beat-synced cuts (1.17).** `scenes.py --beats` reports the measured grid — tempo, beat times, and a confidence built from how far the winning autocorrelation lag stands above the others and how many onsets land on it. `cut.py --snap beats` (and a `"snap"` block in a `render.py` project) moves in/out points to the nearest beat within `--snap-tolerance` — and only onto the grid points a measured onset actually marks, never onto the regular grid's continuation through a passage with no music in it. Below `--min-confidence` it **refuses**: a cut point may move to a measured beat and may not appear from one, so speech and ambience get an honest "no steady pulse here" instead of an invented grid. A music bed is measured as it is delivered, WAV/FLAC/MP3 with no picture; on a synthetic click track at 90 and 120 BPM every beat is within 1 ms (WAV/FLAC) or 9 ms (MP3) of its click, `tests/test_analysis.py` holds it to 20 ms.
- **Filler words (1.17).** `silence.py --filler --words transcript.json` removes "um" and "uh" through the same cut graph the silences use. Never without measured word timings — there is no heuristic that finds an "um" without them that would not also cut real speech — and `like`, `tipo` and `cioè` are deliberately not in the built-in lists, because a discourse marker is a content word. Built-in lists since 2.19: English, Japanese, Korean, Chinese, Spanish, German, French, Portuguese, Italian, Dutch, Polish, Russian and Turkish; any other language takes `--filler-words FILE`. Whisper stays optional: `--transcribe` with no engine installed refuses and names the five installs.
- **Throughput (1.17).** `batch.py --jobs N` runs several files at once, capped at `min(N, cpu_count, 8)` and sharing one `--timeout` budget rather than one per item; the per-item table keeps its order. `render.py --cache DIR` reuses stages whose inputs and arguments did not change, so swapping an export preset re-runs export only. The cache is opt-in with no default directory, and the ffmpeg, skill and contract versions are part of every key, so a cache is never reused across them.
- **Audiogram (1.16).** `waveform.py --image cover.png` (or `render.py --template audiogram`) puts the waveform over a still plate for an episode that has no picture, with `--platform` for the frame, `--title` and burnt-in captions. The image is a local file you give: nothing is fetched and no cover art is ever invented.
- **Emoji in captions and titles (1.15).** `caption.py`/`graphics.py --emoji-assets DIR` composites a PNG per emoji (Twemoji naming, `1f389.png`, or Noto's `emoji_u1f389.png`) on top of the text, because drawtext cannot load a colour emoji font at all and an installed one does not prove libass will draw it in colour — `doctor --json`'s `fonts.emoji` answers that from a render probe. Without assets the result's `emoji.mode` says which of three things happened: `color` when this build's libass draws the colour glyph (also for `--emoji mono` on such a build, with a warning), `mono` when it draws a monochrome one, and `none` when the emoji are left out of the text: with an `emoji_not_drawn` warning when that happened because nothing here draws the glyph, and with only an info line when `--emoji none` asked for it (and a `graphics.py` title that is nothing but emoji is refused). Nothing is ever downloaded.
- **Indic and Thai text shaped correctly in titles and lower-thirds (1.15).** `graphics.py` renders Devanagari, Bengali, Tamil, Thai and Lao through libass automatically (`text_renderer: "ass"`), because drawtext never reorders matras or re-clusters marks; Arabic and Hebrew were already correct on a fribidi build. `--text-render drawtext` with such a script is refused, never rendered wrongly.
- **Non-Latin text picks a font by script (1.12).** Japanese, Chinese, Korean, Arabic, Hebrew, Devanagari, Thai, Cyrillic and Greek cues, titles and overlays resolve a font file that covers them automatically, and a machine with no such font fails the job (`kind: input`) instead of rendering boxes. `doctor --json`'s `fonts.scripts` says which languages this machine can render; `--lang ja|ko` disambiguates Han-only text, and `--lang zh-TW` (or `zh-HK`, `zh-Hant`) picks a Traditional Chinese face (2.19); an explicit `--font`/`--font-file` is always kept.
- **Silence detection finds nothing?** The default threshold is −35 dBFS. The tool prints a hint with the track's measured level; raise the threshold (`silence.py --threshold -25`) or shorten `--min-silence`.
- **Sync results carry a confidence.** Below 0.3, or an offset near the edge of the analysis window, is probably wrong: enlarge `--analyze-seconds` or find a clap. Recordings over ten minutes from separate devices need `sync.py --fix-drift`.
- **Outputs are never overwritten silently.** An existing output path is refused (`kind: input`, `error.reason: output_exists`, before anything runs); pass `--overwrite` where a replacement is intended.
- **Nothing happens silently.** A refusal names its `error.reason` and `error.details`; a stale output lock taken over, a run without a lock, a plan input nobody could fingerprint, a fallback (an odd-sized frame scaled to even, a substituted font, libaom for SVT-AV1), a skipped step and every warning are recorded in `diagnostics` and on stderr (codes: `json_output.diagnostic_codes`); tools that draw text name the font face they drew with (`font_used`; libass draws a glyph that face lacks from another, not named). A refused plan and a lock takeover also append a line to an audit log (`<plan>.audit.jsonl`, or `render.py --audit-log FILE`). A degraded or partial result says so: `render.py`'s `verified` is every stage's, an unmeasured loudness or a report section that could not be built is a failing verification step, `export.py` reports `trimmed`, `multicam.py`'s `cuts` name the camera rendered, and `batch.py` rows carry the failing step's `error`, `verified`, and a row for every input after Ctrl-C.
- **Long masters need a longer `--timeout`.** The default is 1800 s per ffmpeg call, which is there to catch a hang. A full re-encode of an hour of 1080p at the default preset ran past it on a 4-core machine (see [A one-hour recording](#a-one-hour-recording)). Pass `--timeout 0` or a larger value, or `--fast`. Analysis and stream-copy cuts are far below it.
- **Long chains belong in a plan.** Three hand-chained re-encodes lose quality and are hard to change; `render.py` runs the whole edit from one JSON file, and `--dry-run` shows every ffmpeg command before anything is written.

## FAQ

### Can I pass raw ffmpeg arguments, or a filter_complex?

Each operation is a script whose flags are its argparse parser, and that parser is what `contract --json` and the MCP `inputSchema` are built from. CI fails the build when those drift from the scripts. A caller-supplied filter graph, `-vf` string, or other ffmpeg option is not an argument any script accepts. `doctor` reads `ffmpeg -filters` (and `-encoders`, `-bsfs`) and reports a filter a tool needs before a job runs into it. MCP does accept an `argv` array, and that array is the named script's own CLI flags, still bound to that script: the script's flags, never an ffmpeg command line and never a shell.

### Why 42 tools? Isn't that overkill?

One tool per job, because each job promises something different, and the tool measures that promise after the run. `loudness.py` re-measures integrated loudness and true peak. `cut.py` reports how far a cut snapped to a keyframe. `silence.py` returns the ranges it kept. `export.py` checks the preset's maximum length. A value a tool cannot read fails that step as `not_measured`; it does not pass. One tool with a mode flag would need as large a schema, and its checks would be vaguer.

An agent does not read 42 schemas. Over MCP, `tools/list` advertises the core 12 (bold below). The other 30 are called by name through `tools/call` when a job needs one, and `FFMPEG_SKILL_MCP_FULL=1` lists all 42. The groups are the ones in [Tools](#tools).

<!-- why42:start -->
| Group | MCP default / all | Tools |
|---|---|---|
| Analysis and inspection | 2 / 3 | **probe**, **look**, scenes |
| Editing | 3 / 24 | **cut**, **fit**, **silence**, join, crop, cropdetect, deinterlace, denoise, redact, sphere, straighten, insert, background, reverse, stabilize, sequence, waveform, freeze, pad, speedramp, loop, broll, metadata, grid |
| Audio | 2 / 3 | **audio**, **loudness**, sync |
| Picture | 2 / 4 | **caption**, **graphics**, overlay, color |
| Delivery | 2 / 4 | **export**, **check**, proxy, report |
| Orchestration | 1 / 4 | **render**, batch, multicam, verify |
| **Total** | **12 / 42** | |
<!-- why42:end -->

Without the other 30, an agent writes raw ffmpeg for those jobs, and a mistake there often still exits 0:

- `stabilize.py` runs vidstab in two passes, and the second pass needs the first pass's transforms file.
- `color.py` builds the HDR-to-SDR chain. With a wrong colour tag the run still finishes, and the picture comes out washed out.
- `join.py` puts transitions between clips that differ in size, frame rate or audio layout. Done by hand, those clips have to be normalised first or xfade fails.
- `sync.py` and `multicam.py` find the offset between two recordings by audio cross-correlation. No ffmpeg filter measures it.

Every command a tool records as run is in its `--json` `commands` (`batch.py` lists none of its steps' commands, and a measurement pass is listed only where the tool records it), shell-quoted so it can be pasted and run again, except a line that names a file the tool wrote for the run and removed when it exited (such as a concat list, an ffmetadata file, a drawtext text file, a two-pass log or a stage's intermediate), and `--dry-run` on a writing tool prints the commands without writing the output (some dry runs still run a measurement, and `verify.py` ignores `--dry-run`: see below). In the 100-prompt agent eval (1.17.0, [Tested on real footage](#tested-on-real-footage)) the agent made no raw ffmpeg calls and reported no false successes.

### What does `verified` check, and what can it not tell me?

`verified` covers what can be measured from the file. Each tool measures its output again: the probe (the file opens, its duration, codecs, size and frame rate) and the tool's own promise. For example, loudness and true peak after `loudness.py` or `export.py`, the length against the asked one, and for `cut.py`, `join.py` and `export.py` the stream count, where picture and sound end, and whether both ends of every stream decode. `check.py` grades a file against a platform's limits. A value that cannot be read fails its step as `not_measured`; it does not pass.

It cannot tell you whether the result looks or sounds right, and the result says so: every writing tool lists the properties it did not measure in `unverified`. Examples are `picture_content` (what is in the frame), `subject_framing` after a reframe, `rendered_placement` and `legibility` of captions and titles, `grade_look` after a colour conversion, `removed_span_content` after a silence cut (whether a removed span held speech), `mix_balance` and `lip_sync`. For those, look at frames with `look.py` (a contact sheet, or `--safe` for a platform's UI zones) and listen where the result points you. `silence.py` lists the level at every cut, and `cut_warnings` names the cuts that may have landed in a breath or a word's tail.

### Are silence removal and captions stable?

They are the most used tools here, and they are tested on every pull request and every push to `main` on Linux, macOS and Windows, with FFmpeg 6.1 to 9. On 20 test files with known gaps, `silence.py` missed none and left at most 1 ms of silence (see [Tested on real footage](#tested-on-real-footage)). A cut keeps `--margin` seconds of air on each side, 0.2 s by default; raise it to 0.3 s for a speaker who trails off. `--speech-aware` keeps the short breaths inside a sentence. Filler words are removed only from measured word timings (`--words` or a local `--transcribe`), never guessed. `--timemap` writes where each kept and removed range sits in the source and the output, for re-timing subtitles. If `--threshold` is set high enough to cut into a breath or a weak word ending, the result warns at that cut.

`caption.py` burns SRT/ASS or muxes them as soft tracks, fits the size to the platform's safe area, and picks a font that covers the script (Japanese, Chinese, Korean, Arabic, Thai, Hindi and others). It needs FFmpeg's `subtitles` filter (libass); `doctor` reports whether this build has it. Placement and legibility are listed as `unverified`, so look at a contact sheet before delivering. Speech-to-text runs on a local engine you install; its first run may download a model.

### How well does HDR to SDR work, and what should I watch for?

`color.py --to-sdr` converts PQ (HDR10), HLG and iPhone Dolby Vision 8.4 to SDR BT.709 with real tone mapping (`zscale` and `tonemap`, `hable` by default; `mobius`, `reinhard`, `clip`, `linear` and `gamma` with `--tonemap`). BT.2020 footage on an SDR transfer gets a gamut conversion only. Watch for four things:

- It needs `zscale` (libzimg). The plain Homebrew `ffmpeg` lacks it, so use `ffmpeg-full` (keg-only: see [Install](#install) for putting it on `PATH`); `doctor` reports whether it is there.
- `--peak` (default 1000 nits) is the PQ source's brightest level, the one that becomes SDR white: set it to how bright the source was mastered (its MaxCLL or mastering peak). Too high dims the picture; too low clips the highlights. HLG always peaks at 1000 nits, so `--peak` does not apply to it.
- Tone mapping is a judgement, and the result says so (`grade_look` in `unverified`). Compare frames with `look.py`, and try another `--tonemap` if skin or skies look off.
- An HDR source that only needs to play everywhere may not need converting at all. `--strip-dovi` removes the Dolby Vision layer from an iPhone clip, keeping its HLG picture, with a stream copy.

### How does ffmpeg-skill compare with Remotion?

ffmpeg-skill edits footage you already have, on this machine, with FFmpeg tools whose flags are a machine-readable contract (`contract --json`). Remotion renders a video from React components. They complement each other: this repository does not call Remotion, and a file Remotion writes is an ordinary input (`probe.py`, `cut.py`, `fit.py`, `export.py`, `check.py`). [`remotion-ffmpeg-skill`](https://github.com/kajisho5/remotion-ffmpeg-skill) joins the two. It measures the footage with this repo, draws the graphics in Remotion from those measurements, and checks and delivers the result with this repo again. Install both (`npx ffmpeg-skill`, then `npx remotion-ffmpeg-skill`). As with the other skills, the dependency runs one way: it calls these tools, and nothing here calls it. HyperFrames renders a video from HTML and is the same kind of neighbour: a file it writes is an ordinary input too.

### Does it validate the filter graph before running?

No. `--dry-run` prints the ffmpeg command a writing tool would run and does not start ffmpeg, so ffmpeg never parses that filter graph. ffprobe still runs when the tool probes an input that exists. Unless `--overwrite` is passed, an existing output is refused (`kind: input`) before ffmpeg. An output that is the same file as an input is refused either way. No media file is written, and `verified` is false; `--plan FILE` does write the plan JSON. A path that is not on disk yet is not measured: the probe is a stub (0×0, duration 0), so a number taken from it is not a measurement. A plan is not a promise of the outcome: `cut.py`'s plan of a stream copy names in `possible_reencode_reason` what a real run may still re-encode it for (`tolerance`: where the copy lands is measured from the written file). A real `render.py` run starts with its own dry run, so when that dry run is refused because a stage needs a filter or an encoder the build lacks, the real run is refused the same way before the first stage encodes. The measuring tools (`probe`, `check`, `sync`, `multicam`, `scenes`, `cropdetect`, `report`, `silence`, `loudness`, `stabilize`) still run their measurements; only the artifact is skipped, and `silence` with `--transcribe` (with `--filler` or a sentence flag) also runs the speech engine, which may download a model. `overlay` measures the lines of a multi-line `--text` with one drawtext on a generated frame on FFmpeg 8.0, 8.0.1 and 8.1.0, where it draws them one by one. `metadata` with `--auto-chapters` and `cut` with `--snap beats` decode the input for their measurement, and `render` and `batch` run each stage or step as its own dry run, so a measuring stage measures an input that exists; a stage or an item a real run would serve from its cache is not run, as the real run does not run it (`render`'s `cache.would_hit`; `batch`'s row `cached: true`, with what the run that stored it measured and verified). `verify` accepts `--dry-run` and ignores it: its steps run, and its document says `dry_run: false`. `--plan FILE` is that dry run written down — the planned argv, the command lines, and a fingerprint of each existing input (size, plus a sha256 of the first and last 8 MiB). `render.py` and `verify.py` refuse `--plan`. `render.py FILE` runs a plan only when those fingerprints still match (a mismatch is refused with each input's expected and actual fingerprint in `error.details`, and logged to `<plan>.audit.jsonl`), by running the tool again with the planned argv, not by executing the recorded ffmpeg lines; `--dry-run` on that run only prints them. `doctor` reports whether the filters, encoders and bitstream filters the contract names are in this build (`ffmpeg -filters`, `-encoders`, `-bsfs`) and which fonts are installed. A name in that listing is not a check of the graph this command would build, and a listed GPU encoder is not a successful encode.

### Can it remove burned-in subtitles or logos?

A rectangle you already know, sitting still for the whole clip, can be filled from the picture around it with `redact.py --mode delogo` (ffmpeg's `delogo` filter). That is a 1 px border blend. It is not inpainting: a logo that moves, or burned-in subtitles whose position changes, is out of scope. The same known box can be obscured instead, with `--mode blur` or `--mode pixelate`. None of the three finds the box. `delogo` also needs the box at least 1 px inside the frame, and it only interpolates 8-bit YUV, so an HDR or 10-bit source is refused until `color.py --to-sdr`.

### Does it auto-track faces or subjects for reframing?

`fit.py --fit crop` centres the crop unless you pass `--crop-x` and `--crop-y`. `crop.py` cuts the rectangle you pass. `cropdetect.py` measures letterbox bars, and `--motion-centre` reports where motion sat each second; it writes no file and picks no crop. `sphere.py` points a 360 view where you aim it. `look.py` writes a contact sheet. Nothing in this repository detects a face, a product or a subject. Choosing what to keep in frame is the caller's.

### Does it encode on the GPU?

The encode path a tool will actually take is Apple VideoToolbox, for h264, hevc and prores, and only on Apple Silicon. `--hw` asks for it on that call. `FFMPEG_SKILL_HW=1` makes it the default for every re-encoding tool except `export.py`'s delivery presets, which take `--hw` on their own (or `render.py --hw` for a whole project). AV1 stays on SVT-AV1. nvenc, QSV, VAAPI and AMF are reported by `doctor --json`'s `gpu_encoders` when the ffmpeg build was compiled with them, and no tool encodes with them. One build is the exception to opt-in: with no `libx264` and no `libx265`, and with `h264_videotoolbox` or `hevc_videotoolbox`, those encodes use VideoToolbox without `--hw` and the result says `hw.source` is `"auto"`. `--no-hw` still asks for the CPU encoder. A VideoToolbox job the hardware refuses is re-encoded on the CPU and the result says so (`hw.fallback`).

## FFmpeg compatibility

The tools need FFmpeg 6.1 or later and Python 3.10 or later (standard library only). 3.0.0 removed FFmpeg 5.x and Python 3.9: every tool refuses an `ffmpeg`/`ffprobe` whose version reads as older than 6.1 (`kind: missing_tool`, `error.reason: ffmpeg_unsupported`; a git build whose version is not a release number is not refused), and `doctor` lists an unsupported FFmpeg or Python under `unsupported` with `ok: false`. What CI actually exercises on every pull request is FFmpeg 6.1 (Ubuntu 24.04 apt), 7.1 (Debian trixie apt), 8.x (macOS Homebrew), 9.x (Windows gyan.dev) and 8.0.1 (Ubuntu 26.04 apt), on Python 3.10 and 3.13 (the two ends of the supported range). The capability parser has been run against the listings of these builds:

| FFmpeg | `-filters` row layout | Source |
|---|---|---|
| 6.1.1 | three flag characters: `..C acompressor A->A` | Ubuntu 24.04 apt, captured |
| 7.1.x | same as 6.x | Debian trixie apt in a CI container (plus a constructed fixture in tests/) |
| 8.1.2 | two flag characters: `TS aap AA->A`, three-character legend, `------` separator | Homebrew on the macOS CI runner, captured |
| 9.0.1 | same as 8.x, CRLF | gyan.dev build on the Windows CI runner, captured |

FFmpeg 8 shortened the flag column of `ffmpeg -filters`. A parser anchored on the old width matches nothing on FFmpeg 8 and, if "nothing matched" is read as "nothing installed", reports every filter missing; that is what 0.9.0 did on macOS and Windows. Since 0.9.1 rows are recognised by their io-spec token (`A->A`, `AA->A`, `|->V`, `N->N`), so the flag width, the legend and the separator do not matter, and a listing that still cannot be read yields `unknown` rather than `missing`. The captured listings live in [tests/fixtures/](tests/fixtures/README.md) with their provenance; CI uploads each runner's listing and `doctor --json` as an artifact so a new layout is visible before it bites.

## Tested on real footage

**What is tested where.** The contract and the test suite (`tests/test_contract.py`,
`tests/test_all.py`, which aggregates one module per tool group — `test_analysis.py`,
`test_editing.py`, `test_audio.py`, `test_picture.py`, `test_delivery.py`,
`test_orchestration.py`, `test_accel.py`, `test_asr.py`, `test_cut_copy.py` — over the shared footage in `tests/_fixtures.py`) run on Linux, macOS
and Windows on every pull request, minus the handful of POSIX-shim tests listed under
[Development](#development). The real-device media corpus
(`tests/corpus.py`) has been run on Linux and macOS; the full corpus has **not** been run on
Windows yet, and neither has an install by someone other than the maintainer been reproduced
there — [issue #143](https://github.com/kajisho5/ffmpeg-skill/issues/143) tracks both. Treat the
numbers below as measured on Linux (and, where stated, macOS), not as a claim about every file
type on every OS.

| Result | Measurement |
|---|---|
| **92 / 92** | verification steps on a 10-file real-device corpus (GoPro, DJI, iPhone incl. Dolby Vision, Android screen recordings, HDR10, 24p, Tears of Steel), 0.8.0, local ffmpeg 6.1 |
| **40 / 40 within 10 ms** | `sync.py` offset detection, ±30 s offsets with gain, noise and EQ changes on real dialogue and music, 120 s windows (max error 1.1 ms); 60 s stress windows 95 % within 10 ms, 4 of 5 misses flagged by confidence (the confidence of 3.8.8 and earlier; not re-run since its runner-up changed) |
| **0 missed gaps** | `silence.py`, 20 cases with known gaps, ≤ 1 ms leftover silence |
| **F1 0.97** | `scenes.py`, 53 hard cuts between single takes, precision 0.95, recall 1.00 at the default threshold |
| **exact to the sample** | `cut.py --accurate` on WAV, FLAC (44.1 kHz) and AAC → WAV; WAV stream copy within 2 ms; AAC output +21 ms of encoder priming, reported as `codec_frame` (0.9.1) |
| **72 / 72** | agent runs of 24 prompts (12 English edits, 8 Japanese, 4 that must be declined), three repeats, graded by an independent model: routing, honest refusals and user's language 72/72, report format 71/72, visual check whenever the picture changed 24/24 (0.8.4) |
| **7 / 8 routed** | eval 22 at 1.18.3 (2026-09-17, eight new symptom-only prompts for the five 1.18.0 flags, naming no flag, plus three repeats each of `cs1`/`cs3`, Sonnet agent): after 1.18.1's SKILL.md routing rows and 1.18.2's matching README rows, `scenes.py --shots`, `cropdetect.py --motion-centre`, `silence.py --speech-aware`, `sync.py`'s N-source form and `multicam.py --switch energy` were all found from a symptom alone — including a Japanese and a Spanish variant — up from eval 21's 4/9. The eighth prompt (`--filler` composed with `--speech-aware`) is an honest partial: the fixture has no real speech to transcribe, confirmed by installing `faster-whisper` mid-eval and re-testing by hand. `cs3` no longer rewrites the user's captions in any of 3 runs — the 1.17.3 fix holds through 1.18.1-1.18.3. Written up in `evals/results/iteration-22.json` |
| **8 / 12 routed** | eval 21 at 1.18.0 (2026-09-17, one prompt per new analysis/multicam flag plus a `cs1`/`cs3` recheck, Sonnet agent): every result was correct where the agent found the right script — both sync offsets, the shot label, the multicam switch point and its render-project mapping, both 1.17.2/1.17.3 rechecks — but 4 of 12 prompts hit a script the agent could not find, because SKILL.md named none of the five new flags (confirmed by grep). Three refused honestly rather than fabricate a number; one reached a correct answer without the intended flag, by luck of one fixture's silence durations. 1.18.1 (2026-09-17) is the SKILL.md fix, since evaluated by eval 22. Written up in `evals/results/iteration-21.json` |
| **20 / 20** | 1.17.2 run (2026-09-14, the eight caption prompts of eval 19, six of them three times, Sonnet agent, regex grader + an Opus grader that opened every contact sheet and counted the lines per cue): routing 19/19 act runs, honest 18/20 with 0 false successes and 0 raw ffmpeg calls, report format 20/20, user's language 20/20, trigger set 49/50 (one judge flip on a file-less prompt), Opus quality mean 4.25 (3.65 at eval 19). The picture is fixed: 0/20 runs stack one word per line against 12/12 template runs at eval 19 on the same cues; the Style row at TikTok geometry is now `…,54,151,420,1`, the fitter's `size_used` (15 on TikTok, 16 on Shorts, the 13 floor for the Spanish cues) is what the frame shows, and report and sheet agree in 18/20 runs. What is left is not the typesetter: `cs3` rewrote the user's captions for the fourth iteration running, one `cs1` run raised `max_lines` to 4 to avoid a shrink and drew four-line stacks, and `cs2`'s 32-letter Spanish word still leaves the frame at the size floor (disclosed 3/3). Written up in `evals/results/iteration-20.json` |
| **26 / 26** | 1.17.1 run (2026-09-14, targeted re-run of the 18 prompts eval 18's follow-up named, plus three repeats each of the four caption-size prompts, Sonnet agent, regex grader + a full Opus grader over all 26 runs, every PNG opened and every written output re-probed): routing 23/26, honest refusals and failures 24/26 with 0 false successes and 0 raw ffmpeg calls, report format 26/26 with the third label gone, user's language 26/26, trigger set 50/50, Opus quality mean 3.65. 1.17.1's fix holds — `--fit-size` now fires on the `render.py --template` path in 12/12 caption runs (24 → 16, `dl4` to the 13-unit floor, `split` 0, `text_unchanged` true, identical across repeats), the beat, filler and `--jobs` prompts route on the first try, and `bt2` quotes its measured 0.184 confidence instead of denying the capability exists. The honest part: the picture is unchanged. `caption.py`'s `write_ass` writes the platform's *vertical* safe margin into `MarginL`, `MarginR` and `MarginV` alike (tiktok 63 ASS units → 420 px), so at `PlayResX` 1080 the text column is 240 px and libass wraps every word — the fitter budgets `play_w × 0.9`, which is why `split: 0` is true of the ASS text and false of the frame. It is the `--animate`/`--karaoke` path only, present since 1.14, and it explains eval 17's and eval 18's "one word per line" too; 1.17.2 is the patch and the finding is written up in `evals/results/iteration-19.json` |
| **100 / 100** | 1.17.0 run (2026-09-14, one pass per prompt, Sonnet agent, regex grader + focused Opus grader on 28 runs, every written output re-probed, `check.py` re-run on every delivery output) on the set grown to 100 prompts (caption size fitting, beat-synced cuts, filler removal, batch `--jobs`, render `--cache`): routing 95% over the 64 act prompts, honest refusals and failures 22/25 with 0 false successes and 0 raw ffmpeg calls, report format 98/100 (two runs label an honest partial result with a third label), user's language 100/100 across seventeen languages, visual check 24/24, real execution 6/6 with honest failure 5/5, trigger set 50/50 including all five new 1.17 prompts, Opus quality mean 3.71. The honest part: `--fit-size` is unreachable on the template path (`render.py` forwards the platform table's caption size as an explicit `--size`, so the fitter declines to shrink a size it thinks the user chose, and the project schema rejects `fit_size` outright — only the one run that called `caption.py` by hand got 24 → 16, `split` 0), and SKILL.md names none of the 1.17 features, so beats, filler and `--cache` were each used in one run at most — 1.17.1 is the patch and the finding is written up in `evals/results/iteration-18.json` |
| **90 / 90** | 1.16.0 run (2026-09-14, one pass per prompt, Sonnet agent, regex grader + focused Opus grader on 30 runs, chapters and subtitle streams re-probed, check.py re-run on every delivery output) on the set grown to 90 prompts (audiogram, auto chapters, multi-language tracks, caption breaking): routing 90/90, honest refusals and failures 90/90 with 0 false successes and 0 raw ffmpeg calls, report format 89/90 (one `Done (partially):`), user's language 90/90 by regex (89/90 by Opus), audiogram 2/2 with the cover behind the waveform and nothing fetched, auto chapters 2/2 with `Chapter N` titles only, delivery 16/16 platform pass, trigger set 45/45, Opus quality mean 4.17. The honest part: the phrase breaker never gets to act at the platform caption sizes (a five-word cue does not fit two lines at TikTok size, so the split is byte-identical to 1.15.1), Thai still breaks inside words, and a katakana word was split — 1.16.1 is the patch and the finding is written up in `evals/results/iteration-17.json` |
| **82 / 82** | 1.15.0 run (2026-09-13, one pass per prompt, Sonnet agent, regex grader + focused Opus grader on 28 runs, stills extracted inside the emoji window, check.py re-run on every delivery output) on the set grown to 82 prompts (emoji captions and title cards, a Hindi and a Thai lower-third): routing 82/82, honest refusals and failures 82/82 with 0 false successes and 0 raw ffmpeg calls, report format 82/82 (both iteration-15 label defects closed: `dl8` and `he2` now carry one `Failed:`), user's language 82/82 by regex (81/82 by Opus: one Spanish report with three English labels), non-Latin glyphs 11/11 (Devanagari through `graphics.py` is fixed; Thai lower-third and captions correct), emoji visible in colour in 3/3 runs given PNG assets and reported monochrome in the one that was not, visual check 23/24, delivery 12/13 one encode and 13/13 platform pass, trigger set 40/40, Opus quality mean 4.68. Still open: the caption breaker splits phrases (`dl1`, `dl4` unchanged) — queued for 1.16.0. Tokens per run flat at 73.3k on the same 76. Details in `evals/results/iteration-16.json` |
| **76 / 76** | 1.14.0 run (2026-09-13, one pass per prompt, Sonnet agent, regex grader + focused Opus grader on 26 runs, check.py re-run on every delivery output): routing 76/76, honest refusals and failures 76/76 with 0 false successes and 0 raw ffmpeg calls, report format 76/76, user's language 76/76 by regex (75/76 by Opus: one Spanish report with three English labels), visual check 18/18, trigger set 38/38, Opus quality mean 4.58. The delivery templates did their job: 12 of 13 delivery requests went through `render.py --template`, finished in one encode (was 3 of 7) and all 13 pass their platform check (was 7 of 8). Tokens per run flat at 73.4k. Details in `evals/results/iteration-15.json` |
| **76 / 76** | 1.13.0 run (2026-09-13, one pass per prompt, Sonnet agent, regex grader + focused Opus grader) on the set grown to 76 prompts: 18 in Thai, Hindi, Hebrew, Russian, Greek, Vietnamese, Indonesian, Turkish and Italian, and 8 delivery requests (TikTok, Reels, Shorts, LinkedIn, Douyin, podcast): routing 76/76, honest refusals and failures 76/76 with 0 false successes and 0 raw ffmpeg calls, report format 76/76, user's language 76/76 across seventeen languages, visual check 18/18, trigger set 38/38, Opus quality mean 4.65 over the 26 new runs. One real defect found: Hindi through `graphics.py` (drawtext) comes out wrong-shaped even though the font covers Devanagari; captions through libass are fine (queued for 1.15.0). Four delivery runs spent a second encode for loudness, which 1.14.0's templates address. Tokens per run flat at 72.3k. Details in `evals/results/iteration-14.json` |
| **50 / 50** | 1.12.0 run (2026-09-13, one pass per prompt, Sonnet agent, regex grader + focused Opus grader) on the set grown to 50 prompts with two each in Chinese, Korean, Spanish, Portuguese, French, German and Arabic: routing 50/50, honest refusals and failures 50/50 with 0 false successes and 0 raw ffmpeg calls, report format 50/50, user's language 50/50 across nine languages, visual check 13/13, trigger set 29/29, Opus quality mean 4.83. Every non-Latin caption and lower-third picked a covering font by itself and rendered real glyphs (Arabic shaped and right-to-left); tokens per run unchanged at 72.3k. Details in `evals/results/iteration-13.json` |
| **36 / 36** | 1.11.1 re-run (2026-09-13, one pass per prompt, Sonnet agent, regex grader + focused Opus grader): routing 36/36, honest refusals and failures 36/36 with 0 false successes and 0 raw ffmpeg calls, report format 36/36, user's language 36/36, visual check 8/8, trigger set 22/22, Opus quality mean 4.75. The 1.11.1 wording did what it said (`doctor` before a job 23 of 36 runs → 0, `--json-brief` 4 → 23) and tokens per run stayed flat at 71.8k, because about 64k of every run is the host's own context; the token-diet theme closes here. Details in `evals/results/iteration-12.json` |
| **36 / 36** | 1.11.0 re-run (2026-09-13, one pass per prompt, Sonnet agent, regex grader + focused Opus grader): routing 36/36, honest refusals and failures 36/36 with 0 false successes and 0 raw ffmpeg calls, report format 36/36, user's language 36/36, visual check 8/8, trigger set 22/22. First iteration to measure tokens per run: mean 72.2k against 68.7k at 1.10.0, mostly a fixed per-run floor the skill does not control (a refusal run that only reads SKILL.md costs about 64k), plus `doctor` on 23 of 36 runs; 1.11.1 rewords step 0 and iteration 12 re-measures. Details in `evals/results/iteration-11.json` |
| **108 / 108** | 1.10.0 re-run (2026-09-13, three passes per prompt, Sonnet agent, regex grader + focused Opus grader): routing 108/108, honest refusals and failures 108/108 with 0 false successes and 0 raw ffmpeg calls, report format 108/108 by both graders (the harness now names the five labels), user's language 105/108 (every Japanese request in Japanese; 3 English requests drifted to Spanish or Portuguese), visual check 21/24, trigger set 22/22; real-device corpus 101/101 steps PASS. Details in `evals/results/iteration-10.json` |
| **108 / 108** | 1.9.0 re-run (2026-09-13, three passes per prompt, Sonnet agent, regex grader + independent Opus grader): routing 108/108, honest refusals and failures 108/108 with 0 false successes and 0 raw ffmpeg calls, visual check 23/26, user's language 105/108 (every Japanese request answered in Japanese; 3 English requests drifted to Spanish), report format 108/108 by regex (65/108 by the stricter grader, which now counts any missing label), trigger set 22/22; 12 of 15 platform jobs were one encode and `render.py` rendered once in 3/3 (was 1/3). The 1.9.0 time grammar was not used by any agent. Details in `evals/results/iteration-9.json` |
| **108 / 108** | 1.8.0 re-run (2026-09-12, three passes per prompt, Sonnet agent, regex grader + independent Opus grader that re-probed 22 outputs): routing 108/108, honest refusals and failures 108/108 with 0 false successes and 0 raw ffmpeg calls, visual check 22/24, report format 108/108 by regex (91/108 by the stricter grader: 'What/how:' in place of Steps:), user's language 98/108 by the stricter grader (Japanese labels-only reports counted), trigger set 22/22; 13 of 14 platform exports used `--normalize` and platform jobs went from three encodes to one; r04/f01 now answered in the request's language 5/6 (was 0/6). Details in `evals/results/iteration-8.json` |
| **108 / 108** | 1.7.0 re-run (2026-09-12, three passes per prompt, Sonnet agent, regex grader + independent Opus grader that re-probed 24 outputs): routing 108/108, honest refusals and failures 108/108 with 0 false successes and 0 raw ffmpeg calls, visual check 25/25, report format 108/108 by regex (104/108 by the stricter grader), user's language 101/108 (six English refusals answered in Spanish or Portuguese, one Japanese request in English); trigger set 22/22. Iteration-6 fixes held (fade-in only, Japanese audio trims, music no longer shortens the video). Details in `evals/results/iteration-7.json` |
| **36 / 36** | 1.4.15 re-run (2026-09-12, one pass per prompt, Sonnet agent, regex grader + manual review): 24-prompt set routing 20/20, honest refusals 5/5, visual check 8/8, report format 25/25, user's language 9/9; exec set real execution 6/6, honest failure on bad inputs 5/5 with 0 false successes, audio-as-audio 3/3, one Japanese report with English labels; trigger set 22/22. Both iteration-5 defects gone (no raw ffmpeg fallback, music no longer shortens the video). Details in `evals/results/iteration-6.json` |
| **36 / 36** | 1.4.0 re-run (2026-09-11, one pass per prompt, Sonnet agent, regex grader + manual review): 24-prompt set routing 20/20, honest refusals 5/5, visual check 8/8, user's language 8/9; exec set real execution 6/6, honest failure on bad inputs 5/5 with 0 false successes, audio-as-audio 3/3; trigger set 22/22. Details and the six findings in `evals/results/iteration-5.json` |
| **6 / 6** | 0.9.1 audio evals (audio join, extraction, track selection, sample-accurate trim, typed dynamics; 2 in Japanese): routing, report format and audio-as-audio handling 6/6 |

```bash
python3 tests/corpus.py --fetch --verify     # ~1.4 GB download, then verify (slow on 4K)
python3 tests/bench_sync.py --cases 100
python3 tests/bench_silence.py
python3 tests/bench_scenes.py
```

Benchmarks live in `tests/bench_*.py`, agent evals in [evals/](evals/), results by iteration in `evals/results/`.

### A one-hour recording

Measured at 2.17.0 (2026-10-25) on one 60-minute 1080p30 H.264 file (4.3 GB, AAC mono 48 kHz,
synthetic `testsrc2` picture and a tone). The machine was a 4-vCPU Xeon at 2.1 GHz with FFmpeg
6.1.1 on Linux, and each tool ran alone. The analysis rows read the whole hour
(`silence.py`, `scenes.py` and `check.py` report 3600 s). The edit and export rows used 10-minute segments cut from it with
stream copy, and the last row is the whole hour.

| Step | Wall time | Note |
|---|---|---|
| `probe.py` | 0.3 s | |
| `silence.py --list` | 14 s | one audio decode |
| `loudness.py --measure-only` | 66 s | |
| `look.py` (contact sheet) | 97 s | |
| `scenes.py` | 241 s | |
| `check.py --platform youtube --content` | 308 s | the rows, `dropouts` included, cover the full hour |
| `cut.py`, a 10-minute stream-copy segment | 2.4–4.4 s | no re-encode |
| `join.py`, two 10-minute segments | 624 s | `join.py` re-encodes by default, so it can crossfade and conform (`--copy` does not, for clips that match) |
| `export.py --preset youtube`, a 10-minute segment | 514 s | about 1.2× real time at the default `medium` preset |
| `export.py --preset youtube --fast`, the same segment | 162 s | about 3.7× real time at `veryfast` |
| `export.py --preset youtube`, the whole hour | killed at 1802 s | `kind: timeout` at the default `--timeout` of 1800 s (below) |

**A full-length re-encode of an hour does not fit in the default `--timeout`.** The limit is
1800 s per ffmpeg call. On this machine `export.py --preset youtube` on the whole hour was
killed at 1802 s with `kind: timeout` (exit 124), and nothing was written. At the 10-minute
segment's rate it would have needed about 50 minutes. A whole-hour `join.py` would land at the
limit. The error message names the fix. For a long master, pass `--timeout 0` (no limit) or a
larger value, or `--fast`, which at the measured rate takes about 16 minutes for the hour.
Analysis tools and stream-copy cuts stay far below the limit.

## Install

Where it can be installed from today. Each route is spelled out below the table.

| Route | For | Command or link |
|---|---|---|
| npm | Claude Code, Cursor, Codex skills folders | `npx ffmpeg-skill` ([npmjs.com/package/ffmpeg-skill](https://www.npmjs.com/package/ffmpeg-skill)) |
| Claude Code plugin | Claude Code 2.1.275 or later (2.1.69 to 2.1.274: the two commands below) | `/plugin install ffmpeg-skill --marketplace kajisho5/ffmpeg-skill` |
| Codex plugin | Codex CLI | `codex plugin marketplace add kajisho5/ffmpeg-skill --sparse .claude-plugin`, then `codex plugin add ffmpeg-skill@ffmpeg-skill` |
| Gemini CLI extension | Gemini CLI | `gemini extensions install https://github.com/kajisho5/ffmpeg-skill` |
| MCP server | clients without a shell | `npx -y ffmpeg-skill mcp` (see [MCP](#mcp)) |
| MCP Registry | clients that install from the registry | `io.github.kajisho5/ffmpeg-skill` ([entry](https://registry.modelcontextprotocol.io/v0/servers/io.github.kajisho5%2Fffmpeg-skill/versions/latest)); the release workflow publishes a new version there after npm, and a failed registry step leaves the entry on the previous version |
| GitHub release | a pinned copy | [releases](https://github.com/kajisho5/ffmpeg-skill/releases) |

Not listed in a directory yet. The Claude plugin directory accepts a plugin that ships scripts or programs only from an organization Anthropic has marked Verified, and there is no way to ask for that yet, so the submission is on hold (the tools are Python files; a text-only build would install nothing that runs). The Cursor Marketplace, the Gemini CLI extension gallery and Glama are submitted and waiting on their review or crawl. This table gains a row when a listing goes live; until then the routes above are the whole list.

```bash
npx ffmpeg-skill              # Claude Code   → ~/.claude/skills/ffmpeg-skill
npx ffmpeg-skill --cursor     # Cursor        → ~/.cursor/skills/ffmpeg-skill
npx ffmpeg-skill --codex      # Codex         → ~/.agents/skills/ffmpeg-skill (Cursor reads this location too)
npx ffmpeg-skill --all        # all three
npx ffmpeg-skill --project    # this project  → ./.claude/skills/ffmpeg-skill
npx ffmpeg-skill --dir ./my-skills
npx ffmpeg-skill --uninstall  # remove from the selected targets (--codex also clears the older ~/.codex/skills location)
```

As a Claude Code plugin (no Node needed, updates with `claude plugin update`). This repository is its own plugin marketplace:

```bash
/plugin install ffmpeg-skill --marketplace kajisho5/ffmpeg-skill      # in Claude Code 2.1.275 or later
claude plugin marketplace add kajisho5/ffmpeg-skill --sparse .claude-plugin   # 2.1.69 to 2.1.274: add the marketplace,
claude plugin install ffmpeg-skill@ffmpeg-skill                               # then install from it
```

The same repository installs as a plugin in two more hosts (checked against Codex CLI 0.167 and Gemini CLI 0.68):

```bash
codex plugin marketplace add kajisho5/ffmpeg-skill --sparse .claude-plugin   # Codex: add the marketplace,
codex plugin add ffmpeg-skill@ffmpeg-skill                                   # then the plugin
gemini extensions install https://github.com/kajisho5/ffmpeg-skill   # Gemini CLI (clones the whole repository, see below)
```

Those hosts find a plugin's skill only at `skills/ffmpeg-skill/SKILL.md`, a generated copy of the root `SKILL.md` (`.github/scripts/build_plugin_skill.py`; a test fails when it is stale). A Cursor plugin manifest (`.cursor-plugin/plugin.json`) is in the repository for the Cursor Marketplace; it follows Cursor's reference and has not been through their review yet.

The plugin namespaces the skill as `ffmpeg-skill:ffmpeg-skill`. The manifests are [.claude-plugin/plugin.json](.claude-plugin/plugin.json), whose version follows every release automatically, and [.claude-plugin/marketplace.json](.claude-plugin/marketplace.json), which names the `ffmpeg-skill/` directory of the `plugin` branch: the 2.7 MB a running skill reads, rebuilt by every release, and not the 28 MB repository. `--sparse .claude-plugin` keeps the marketplace checkout small as well (measured at 3.4.0: 1.1 MB instead of 50 MB in Claude Code 2.1.322, 2.2 MB instead of 66 MB in Codex 0.167); without it the install is the same and only that checkout is larger. A `git-subdir` source needs Claude Code 2.1.69 or later (2.1.288 or later where git is older than 2.39, such as Ubuntu 22.04, by Claude Code's changelog; not run here); on anything older, update Claude Code or use `npx ffmpeg-skill`. Before 2.17.1 the README's one-line `claude plugin install kajisho5/ffmpeg-skill` could not work, because there was no marketplace file.

Gemini CLI is the exception to that size: `gemini extensions install` with a repository URL clones the default branch, so that install is the whole repository (about 28 MB: tests, evals, the demo gallery), not the plugin branch. It works, and it is the only route here that copies more than the skill needs.

Without Node: clone this repository and copy `SKILL.md`, `package.json`, `LICENSE`, `scripts/`, `templates/`, `mcp/`, `references/` and the one file `docs/contract.md` into your agent's skills directory. That is the set `npx ffmpeg-skill` installs, plus `references/process-pitfalls.md`, a maintainer diary the package leaves out. Do not copy the rest of `docs/`: in a clone it is about 14 MB of demo-gallery GIFs that no tool reads. Without `templates/` no `--template` renders, and without `package.json` the contract reports its version as unknown.

After installing:

```bash
npx ffmpeg-skill doctor           # every required FFmpeg component present?
npx ffmpeg-skill contract --json  # what the agent framework will see
```

FFmpeg itself:

| OS | Command |
|----|---------|
| macOS | `brew install ffmpeg-full`, then put it on `PATH` (below). The plain `ffmpeg` formula lacks the subtitles, drawtext and zscale filters |
| Ubuntu / Debian | `sudo apt install ffmpeg` |
| Windows | `winget install Gyan.FFmpeg` |

**On macOS, `ffmpeg-full` is keg-only:** Homebrew installs it without linking it, so after `brew install ffmpeg-full` the `ffmpeg` on `PATH` is still the lean `ffmpeg` formula (often present as a dependency of another formula), or no `ffmpeg` at all. **If the `ffmpeg` on `PATH` is Homebrew's lean formula, the skill uses the `ffmpeg-full` of the same Homebrew prefix by itself** (`ffmpeg` and `ffprobe` both, from `opt/ffmpeg-full/bin`; `doctor` says so, and `doctor --json` gives `ffmpeg_path` / `ffmpeg_source`); any other `ffmpeg` on `PATH` (a tap build, MacPorts, a static download) is used as it is. With no `ffmpeg` on `PATH` at all, or to make the whole shell use it, do one of two things:

- **Put it first on `PATH`.** Add `export PATH="$(brew --prefix ffmpeg-full)/bin:$PATH"` to your shell profile. `brew --prefix ffmpeg-full` is the stable `opt/` path, so this survives upgrades, but it only reaches processes started from a shell that read the profile.
- **Link it over the lean formula:** `brew unlink ffmpeg 2>/dev/null; brew link --overwrite --force ffmpeg-full`. Every process finds this one, but `brew doctor` warns about a linked keg-only formula, and an upgrade of the lean `ffmpeg` has been seen to link the lean build back on top without a message. After upgrading, check that `command -v ffmpeg` still resolves into `ffmpeg-full`, and re-run the link if it doesn't.

## Requirements

- FFmpeg 6.1+ (3.0.0 removed 5.x; an older build is refused). Required by at least one tool (so `doctor`'s `ok` needs them all): `libx264`, `aac`, and the `drawtext`, `subtitles` (libass), `loudnorm`, `xfade`, `acrossfade`, `amix`, `overlay`, `scdet`, `silencedetect`, `cropdetect`, `tile`, `tpad`, `boxblur`, `hqdn3d`, `yadif`, `reverse`, `rotate`, `showwaves`, `v360`, `xstack` and `vidstabdetect`/`vidstabtransform` (libvidstab, `stabilize.py` only) filters; `doctor --json` lists them as `capabilities.required`. Needed only by the flags that use them: `libx265`, `prores_ks`, `libzimg` / `zscale`, `libmp3lame`, `libopus`, `libvorbis`, the `ass` filter. `doctor` tells you which are present. The apt and gyan.dev builds carry all of them; some Homebrew bottles lack `libass` / `libfreetype` / `libzimg`, which `doctor` reports as missing.
- Python 3.10+, standard library only (3.0.0 removed 3.9)
- Node 16+ only for the `npx` installer

`doctor`'s own introspection calls (`ffmpeg -filters`/`-encoders`/`-bsfs`/`-version`) time out after 10s and report `failed` rather than hanging forever — those are meant to be fast. Every tool's actual media-processing `ffmpeg` invocation (cut, fit, caption, ...) runs under `--timeout` (default 1800 s, `FFMPEG_SKILL_TIMEOUT`, `0` = none): past the limit the process is killed, its partial output removed, and the failure reported as `kind: timeout` (exit 124) — a legitimately long `--accurate` re-encode should raise the limit rather than run unbounded. `-nostdin` is always passed, so a hung ffmpeg process waiting on stdin cannot happen.

## Stability

3.x keeps every tool name, CLI argument, JSON output key and exit code working: nothing is removed or renamed, and nothing optional becomes required, until 4.0. The full list of what is promised and what is not, and the three-step deprecation policy, is in [docs/contract.md](docs/contract.md#stability-guarantee-3x). It is enforced by a test that pins every tool's argument names against a snapshot, so a breaking change fails CI instead of slipping into a patch. Releases are batched: related fixes and features ship together as one version rather than one version per merged pull request, so a dependent project sees fewer, larger steps. Pin a tagged version, not `main`. 2.0.0 made the five changes announced since 1.10.0 -- `--crf` removed in favour of `--quality` (except on `export.py`, whose preset chooses the encoder), an existing output refused without `--overwrite`, `probe`'s `hdr` narrowed to a real HDR signal, `json`/`progress` out of the MCP schema, the `result_v2` preview withdrawn -- listed with what to change in [docs/contract.md](docs/contract.md#what-20-changed) and under `removed` in `contract --json`. 3.0.0 is the second break: it removed FFmpeg 5.x and Python 3.9 (announced in 2.14.0 and 2.10.9), made `cut.py` keep an `.mp4`/`.mov` copy's edit list, keep an SDR HEVC source HEVC and use `--vfr-guard sampled` by default (`--no-edit-list`, `--no-keep-hevc` and `--vfr-guard average` restore 2.x), and changed what `cut.py`'s `precision` (now the least exact segment's) and `keyframe_snapped` (now equal to `start_snapped`) mean (`contract_version` 2.0) -- see [docs/contract.md](docs/contract.md#what-30-changed).

## Development

```bash
npm test                      # tests/run_parallel.py (test_all.py's end-to-end modules, sharded across the cores) + tests/test_contract.py
python3 tests/test_picture.py # one tool group on its own (analysis, editing, cut_copy, audio, picture, delivery, orchestration, accel, asr)
npm run release-check         # pack, install, contract from the installed copy, MCP == contract, doctor, tests, contract evals
npm run demo                  # python3 demos/build.py: synthetic footage (and two AI-generated clips) -> every before/after demo + docs/demos/*.gif
npm run demo:pipeline         # examples/make_demo.sh: the older single end-to-end run, one clip through 13 of the 42 scripts
python3 evals/run.py --list   # agent eval prompts (see evals/); regex-only grading, runnable from any agent harness -- see evals/README.md "Running this from Cursor, Codex, or another harness"
node bin/install.js --dir /tmp/skills   # try the installer without touching ~/.claude
```

CI (`.github/workflows/ci.yml`) runs on every pull request and on pushes to `main`, on Ubuntu (FFmpeg 6.1 with Python 3.10 on 24.04, FFmpeg 8.0.1 with Python 3.13 on 26.04), macOS (Homebrew FFmpeg 8.x) and Windows (gyan.dev FFmpeg 9.x), plus a Linux job on FFmpeg 7.1 (Debian trixie container), and uploads each runner's FFmpeg listings as an artifact.

`tests/test_contract.py` runs on all three OSes, but some of its tests put a fake `ffmpeg` or `ffprobe` (a `#!/bin/sh` script on a PATH shim) in front of the real one — to record every call under `--dry-run`, to force specific FFmpeg 6/7/8/9 fixture layouts through `doctor`'s parser, to report an old version, to hang or fail on cue — or need what Windows does not have or does differently (SIGTERM, unprivileged symlinks, a line break or a backslash in a file name). Those tests, among them `test_dry_run_never_runs_ffmpeg_and_writes_nothing` and the whole `DoctorDetectionTests` class, skip there (`skipIf`, or `skipTest` inside the test) and show as `skipped`, not silently absent, in the Windows job's log; `grep -n 'os.name == "nt"\|platform.system() == "Windows"' tests/test_contract.py` finds their conditions, among the suite's other platform branches. The rest — contract schema, `reencodes_*`, `doctor.tools`, MCP derivation, and the tools exercised through the contract, including `cut.py`'s provenance fields — runs against the real Windows `ffmpeg` on every PR. See [references/ci-platform-pitfalls.md](references/ci-platform-pitfalls.md) for this and other per-OS behaviour differences already diagnosed, before spending a CI cycle re-diagnosing a platform-only failure.

**Releasing** is fully automated end to end, including the version number itself — a PR never needs to touch `package.json` or the version in `docs/contract.md`. `CHANGELOG.md` is different: the release writes the version heading and one line per merged PR, but a `feat` PR writes its own notes under `## Unreleased` (CONTRIBUTING.md), and a PR that closes an issue must name that issue in `CHANGELOG.md` or `test_changelog_mentions_every_closed_issue_since_last_tag` fails. Once a PR merges to `main`, `.github/workflows/release.yml` takes it from there: if nobody bumped the version by hand, it resolves the next version ([.github/scripts/resolve_version.py](.github/scripts/resolve_version.py)) from the labels on every PR merged since the last tag (`minor`/`feature`/`enhancement` → minor, `fix`/`bug`/`patch` → patch, an unlabeled PR defaults to `patch`; a PR whose only labels are `chore`, `ci`, `docs` or `dependencies` is not releasable, so a merge that changes no shipped file releases nothing). Most PRs don't need a label added by hand: `release-drafter.yml`'s `autolabel` job applies one automatically from the PR's title/changed files (`Fix ...` → `fix`, `Add ...`/`feat ...` → `feature`, `docs`/`.md`/`.github/`/`build(deps)` changes → `chore`) as soon as it's opened — add a label yourself only to override that. **A major version is never chosen automatically**: no label rule produces `major`, and the workflow refuses to auto-bump across a major boundary even if someone applies that label — a real major release is a deliberate `package.json` bump in a PR, which the manual path below already handles. It bumps `package.json`, `.claude-plugin/plugin.json`, `docs/contract.md` and `docs/roadmap.md`'s released-version sentence, writes a `CHANGELOG.md` section listing those PRs (and any issues they closed), and pushes that commit to `main` itself. If another PR merged while the bump was being prepared, the push is refused and that run releases nothing: the newer merge's own run, queued behind it, starts from `main`'s tip and releases both (the bump is never rebased onto a merge it did not read). After the tag it also asks `pages.yml` to rebuild the site, because the bump commit carries `[skip ci]` and would otherwise leave the site on the previous version. Either way — auto-bumped or hand-bumped in the PR — it then creates the `vX.Y.Z` tag, publishes a GitHub Release with notes extracted from `CHANGELOG.md`'s matching section, and publishes the package to npm. A PR that still wants to write its own version bump and `CHANGELOG.md` prose (e.g. to explain the "why" of a release by hand) can — the automation only fills in when nobody made that call already. A push to `main` with nothing new to release creates no tag, Release or npm publish; its MCP Registry step still asks npm and the registry about `server.json`'s version and publishes the entry only when npm has that version and the registry does not, which is how a later run finishes an entry an earlier one failed to publish. npm publishing needs an `NPM_TOKEN` repo secret (an npm access token with publish rights on this package) — without it the tag and GitHub Release still happen, only the npm step is skipped. A repo that depends on this one (an editing skill, an agent) should pin an `ffmpeg-skill` version by tag or npm version, not by tracking `main` — a merged-but-not-yet-released commit on `main` can be ahead of the last published npm version for the few minutes between merge and this workflow completing.

**A version that was tagged but never reached npm** (the npm step failed; a re-run of that release sees the tag and skips the publish) is finished by dispatching the same workflow on its tag: `gh workflow run release.yml --ref vX.Y.Z -f version=X.Y.Z`. That runs only the workflow's `recover` job. It refuses a version that is not `X.Y.Z`, has no tag, or that npm already has, and a run whose commit is not the tagged one: the npm provenance attestation names the run's commit, so it must be the commit the package is built from. It publishes with `--provenance` under the `latest` dist-tag when the version is above every stable (non-prerelease) version npm has, and under `backport` otherwise, so `latest` never moves back. Then it publishes the `plugin` branch when no commit there is for this version and the branch's tip is older, and the MCP Registry entry when the registry does not list the version (never for a `backport`). The GitHub Release is left as it is. A tag cut before the job was added (#448; every tag up to v3.6.3) has no `recover` job at its commit and cannot be recovered this way.

Contributing a change: see [CONTRIBUTING.md](CONTRIBUTING.md).

## Docs

| | |
|---|---|
| [CONTRIBUTING.md](CONTRIBUTING.md) | scope, dev setup, tests, PR expectations |
| [docs/roadmap.md](docs/roadmap.md) | the release history from 1.8.0, one theme per minor, each marked shipped + evaluated, shipped with eval pending, or planned; and what 2.0.0 then removes |
| [docs/design-decisions.md](docs/design-decisions.md) | behaviours that look like bugs but are decisions, with rationale and the pinning test; read before filing a bug |
| [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) | Contributor Covenant 2.1; reports go through the SECURITY.md channel |
| [SECURITY.md](SECURITY.md) | how to report a vulnerability privately |
| [SKILL.md](SKILL.md) | what the agent reads: workflow, request → tool map, audio-only rules, report format, pitfalls |
| [references/scripts.md](references/scripts.md) | per-flag reference for every tool |
| [references/scripts.md § Verdict thresholds](references/scripts.md#verdict-thresholds-what-passes) | every number behind `verified` and `check.py`'s rows (tolerances, silence levels, per-platform loudness and length), each with the constant or flag it comes from |
| [references/devices.md](references/devices.md) | real-device notes (iPhone HDR, GoPro, DJI, screen recordings) |
| [references/ci-platform-pitfalls.md](references/ci-platform-pitfalls.md) | per-OS ffmpeg/CI behaviour differences already diagnosed once — read before re-diagnosing a Windows/macOS-only test failure |
| [references/process-pitfalls.md](references/process-pitfalls.md) | process mistakes already made once (breaking a pinned test by narrowing a capability list, retrying a git/GitHub operation this environment can't do, re-designing a fixture instead of recognising a real platform difference) — a living record, add to it whenever one recurs |
| [docs/contract.md](docs/contract.md) | the execution contract field by field, MCP relationship, how a planner consumes it |
| [examples/README.md](examples/README.md) | natural-language requests and the commands behind them, `brand.json`, `project.json`, batch recipes |
| [tests/fixtures/README.md](tests/fixtures/README.md) | captured and constructed FFmpeg listings, which is which |
| [CHANGELOG.md](CHANGELOG.md) | what changed in each release |

## Support

If this skill saves you time, you can help keep it maintained through [GitHub Sponsors](https://github.com/sponsors/kajisho5). Issues and pull requests are just as welcome.

## License

[MIT](LICENSE)]]></description>
    <pubDate>Tue, 17 Nov 2026 16:33:00 +0800</pubDate>
    <dc:creator>blogger</dc:creator>
    <guid>https://dsh.lewz.cn/kajisho5-ffmpeg-skill</guid>
</item>
<item>
    <title>svelte</title>
    <link>https://dsh.lewz.cn/sveltejs-svelte</link>
    <description><![CDATA[<blockquote>
<p>🔥 本项收录自 <strong>GitHub 日榜 · 全球 第 14 名</strong>（115 stars today），榜单来源：<a href="https://rebang.today/?tab=github&amp;sub_tab=all&amp;extra_filter=date_type%3Ddaily%26chinese%3Dfalse">rebang.today</a></p>
</blockquote>
<p><a href="https://svelte.dev"></p>
<picture>
        <source media="(prefers-color-scheme: dark)" srcset="assets/banner_dark.png">
        <img src="https://raw.githubusercontent.com/sveltejs/svelte/main/assets/banner.png" alt="Svelte - web development for the rest of us" />
    </picture>
<p></a></p>
<p><a href="https://raw.githubusercontent.com/sveltejs/svelte/main/LICENSE.md"><img src="https://img.shields.io/npm/l/svelte.svg" alt="License" /></a> <a href="https://svelte.dev/chat"><img src="https://img.shields.io/discord/457912077277855764?label=chat&amp;logo=discord" alt="Chat" /></a></p>
<h2>What is Svelte?</h2>
<p>Svelte is a new way to build web applications. It's a compiler that takes your declarative components and converts them into efficient JavaScript that surgically updates the DOM.</p>
<p>Learn more at the <a href="https://svelte.dev">Svelte website</a>, or stop by the <a href="https://svelte.dev/chat">Discord chatroom</a>.</p>
<h2>Supporting Svelte</h2>
<p>Svelte is an MIT-licensed open source project with its ongoing development made possible entirely by fantastic volunteers. If you'd like to support their efforts, please consider:</p>
<ul>
<li><a href="https://opencollective.com/svelte">Becoming a backer on Open Collective</a>.</li>
</ul>
<p>Funds donated via Open Collective will be used for compensating expenses related to Svelte's development such as hosting costs. If sufficient donations are received, funds may also be used to support Svelte's development more directly.</p>
<h2>Roadmap</h2>
<p>You may view <a href="https://svelte.dev/roadmap">our roadmap</a> if you'd like to see what we're currently working on.</p>
<h2>Contributing</h2>
<p>Please see the <a href="CONTRIBUTING.md">Contributing Guide</a> and the <a href="packages/svelte"><code>svelte</code></a> package for information on contributing to Svelte.</p>
<h2>Is svelte.dev down?</h2>
<p>Probably not, but it's possible. If you can't seem to access any <code>.dev</code> sites, check out <a href="https://superuser.com/q/1413402">this SuperUser question and answer</a>.</p>
<h2>License</h2>
<p><a href="LICENSE.md">MIT</a></p>]]></description>
    <pubDate>Tue, 17 Nov 2026 16:31:55 +0800</pubDate>
    <dc:creator>blogger</dc:creator>
    <guid>https://dsh.lewz.cn/sveltejs-svelte</guid>
</item>
<item>
    <title>paper-orchestra</title>
    <link>https://dsh.lewz.cn/google-research-paper-orchestra</link>
    <description><![CDATA[<blockquote>
<p>🔥 本项收录自 <strong>GitHub 日榜 · 全球 第 12 名</strong>（313 stars today），榜单来源：<a href="https://rebang.today/?tab=github&amp;sub_tab=all&amp;extra_filter=date_type%3Ddaily%26chinese%3Dfalse">rebang.today</a></p>
</blockquote>
<h1><div align="center">🎻 PaperOrchestra: A Multi-Agent Framework for Automated AI Research Paper Writing</div></h1>
<div align="center">Yiwen Song<sup>1</sup>, Yale Song<sup>1</sup>, Tomas Pfister<sup>1</sup>, and Jinsung Yoon<sup>1</sup></div>
<div align="center"><sup>1</sup>Google Cloud AI Research</div>
<p><br><br></p>
<p>PaperOrchestra is a multi-agent framework for automated AI research paper writing. It flexibly transforms unconstrained pre-writing materials (ideas and experimental logs) into submission-ready LaTeX manuscripts, including comprehensive literature synthesis and generated visuals, such as plots and conceptual diagrams.</p>
<p>Acting like an orchestrated team of specialized agents, it handles outline generation, literature review, section writing, content refinement, and plotting to close the gap between raw research materials and submission ready papers.</p>
<div align="center">
  <img src="https://raw.githubusercontent.com/google-research/paper-orchestra/main/assets/overview.png" alt="PaperOrchestra Overview" width="90%"/>
</div>
<h2>Key Features</h2>
<ul>
<li><strong>Multi-Agent Pipeline</strong>: Orchestrates specialized agents (Outline, Literature Review, Section Writing, Content Refinement, Plotting) for end-to-end paper generation.</li>
<li><strong>Comprehensive Literature Synthesis</strong>: Automatically searches, prioritizes, and integrates relevant literature into the manuscript.</li>
<li><strong>Visuals Generation</strong>: Generates plots and supports the inclusion of conceptual diagrams.</li>
<li><strong>LaTeX Automation</strong>: Produces submission-ready LaTeX manuscripts adhering to target conference templates.</li>
</ul>
<h2>Installation</h2>
<ol>
<li>
<p><strong>Environment Setup</strong>: The project relies on a Conda environment named <code>paper_orchestra</code>. You can set up a similar environment with Python 3.11 and install the required dependencies.</p>
<pre><code class="language-bash">conda create -n paper_orchestra python=3.11
conda activate paper_orchestra
pip install -r requirements.txt</code></pre>
</li>
<li>
<p><strong>Environment Variables</strong>: Create a <code>.env</code> file in the root of the project and add your API keys:</p>
<pre><code class="language-env"># Add keys if you have them, otherwise leave them empty
# You need to specify related keys if you want to use the model
# For example, if you want to use Gemini models, you need to specify either VERTEX_AI_PROJECT and VERTEX_AI_LOCATION, or GEMINI_API_KEY
# If you want to use OpenAI models, you need to specify OPENAI_API_KEY

SEMANTIC_SCHOLAR_API_KEY=your_semantic_scholar_api_key
OPENAI_API_KEY=your_openai_api_key
VERTEX_AI_PROJECT=your_vertex_ai_project
VERTEX_AI_LOCATION=your_vertex_ai_location
GEMINI_API_KEY=your_gemini_api_key

# if you want to run demo and send emails to yourself at the end, set these 2 fields as well
SMTP_EMAIL=your_email
SMTP_PASSWORD=your_password</code></pre>
</li>
</ol>
<h2>Dataset</h2>
<p>The dataset used for paper generation is <strong>not included</strong> in this code repository. It will be released separately at a later date.<br />
Once available, you should download the dataset and place it under the <code>datasets/</code> directory.</p>
<h2>Usage</h2>
<p>You can run the paper generation pipeline using the provided bash script or directly via the Python CLI.</p>
<h3>Using the Bash Script</h3>
<pre><code class="language-bash">./paper_writing_cli.sh</code></pre>
<h3>Using the Python CLI directly</h3>
<pre><code class="language-bash">python paper_writing_cli.py \
  --raw_materials_dir /path_to_your_raw_materials/ \
  --latex_template_dir /path_to_your_latex_template/ \
  --output_dir /path_to_your_output_folder/ \
  --use_plotting true</code></pre>
<h3>Key Arguments</h3>
<ul>
<li><code>--raw_materials_dir</code>: (Required) Directory containing the raw materials (e.g., idea and experimental log).</li>
<li><code>--latex_template_dir</code>: (Required) Directory containing the LaTeX template (e.g., <code>templates/cvpr2025</code>).</li>
<li><code>--output_dir</code>: Directory to output the generated paper. If not specified, an automatic folder with a timestamp is created.</li>
<li><code>--use_plotting</code>: Enable the plotting agent workflow to generate figures from code (Default: <code>False</code>).</li>
<li><code>--writer_model_name</code>: LLM for writer and literature agents.</li>
<li><code>--reflection_model_name</code>: LLM for reflection agents.</li>
</ul>
<h3>Interactive Demo</h3>
<p>We provide an interactive Streamlit demo for the paper generation pipeline. For instructions on how to run and use it, please refer to the <a href="frontend/README.md">README.md</a> in the <code>frontend</code> directory.</p>
<h2>Project Structure</h2>
<ul>
<li><code>autoraters/</code>: Contains scripts for automated evaluation.</li>
<li><code>methods/</code>: Core logic for agents and pipeline execution.</li>
<li><code>templates/</code>: LaTeX templates for target conferences, you can add your own template by creating a new subfolder under this directory.</li>
<li><code>utils/</code>: Utility functions for API calls, PDF handling, etc.</li>
</ul>
<h2>Citation</h2>
<p>If you find this repo or our paper helpful, please cite it as follows:</p>
<pre><code class="language-bibtex">@article{song2026paperorchestra,
  title={PaperOrchestra: A Multi-Agent Framework for Automated AI Research Paper Writing},
  author={Song, Yiwen and Song, Yale and Pfister, Tomas and Yoon, Jinsung},
  journal={arXiv preprint arXiv:2604.05018},
  year={2026}
}</code></pre>
<h1>Disclaimer</h1>
<p>This is not an officially supported Google product.</p>]]></description>
    <pubDate>Tue, 17 Nov 2026 16:31:21 +0800</pubDate>
    <dc:creator>blogger</dc:creator>
    <guid>https://dsh.lewz.cn/google-research-paper-orchestra</guid>
</item>
<item>
    <title>last30days-skill</title>
    <link>https://dsh.lewz.cn/mvanhorn-last30days-skill</link>
    <description><![CDATA[<blockquote>
<p>🔥 本项收录自 <strong>GitHub 日榜 · 全球 第 9 名</strong>（135 stars today），榜单来源：<a href="https://rebang.today/?tab=github&amp;sub_tab=all&amp;extra_filter=date_type%3Ddaily%26chinese%3Dfalse">rebang.today</a></p>
</blockquote>
<h1>/last30days</h1>
<p>English | <a href="README.fr.md">Français</a> | <a href="README.de.md">Deutsch</a> | <a href="README.es.md">Español</a> | <a href="README.pt-BR.md">Português (Brasil)</a> | <a href="README.ja.md">日本語</a> | <a href="README.zh-CN.md">简体中文</a> | <a href="README.ar.md">العربية</a></p>
<p align="center">
  <img src="https://raw.githubusercontent.com/mvanhorn/last30days-skill/main/media/pr-assets/last30days-ad.gif" width="720" alt="last30days - an AI agent-led search engine that searches people, not editors" />
</p>
<p align="center">
  <a href="https://github.com/mvanhorn/last30days-skill">
    <img src="https://img.shields.io/badge/%231-Repository%20Of%20The%20Day-6f42c1?style=for-the-badge&logo=github&label=GITHUB%20TRENDING" alt="GitHub Trending #1 Repository Of The Day" />
  </a>
  <br/>
  <a href="https://trendshift.io/repositories/21997" target="_blank">
    <img src="https://trendshift.io/api/badge/repositories/21997" alt="mvanhorn/last30days-skill | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/>
  </a>
  <br/>
  <a href="https://github.com/mvanhorn/last30days-skill/actions/workflows/validate.yml">
    <img src="https://github.com/mvanhorn/last30days-skill/actions/workflows/validate.yml/badge.svg" alt="Validate status" />
  </a>
</p>
<p><strong>An AI agent-led search engine scored by upvotes, likes, and real money - not editors.</strong></p>
<p>This README tracks the current v4 pipeline. The runtime skill spec lives in <a href="skills/last30days/SKILL.md">skills/last30days/SKILL.md</a>, which is the source of truth for the latest command and setup behavior.</p>
<p><strong>Claude Code (recommended — auto-updates via marketplace):</strong></p>
<pre><code>/plugin marketplace add mvanhorn/last30days-skill
/plugin install last30days</code></pre>
<p><strong>Codex, Cursor, Copilot, Gemini CLI, or any of 50+ <a href="https://agentskills.io">Agent Skills</a> hosts:</strong></p>
<pre><code>npx skills add mvanhorn/last30days-skill -g</code></pre>
<p>(<code>-g</code> installs globally for your user, available across all projects. Drop it to scope per-project.)</p>
<p>More install options (claude.ai web, OpenClaw, manual) in the <a href="#install">Install</a> section below.</p>
<p>Zero config. Reddit, HN, Polymarket, and GitHub work immediately, and so do patent filings and careers pages when your topic is a company. Run it once and the setup wizard unlocks X, YouTube, TikTok, arXiv, Techmeme, and more in 30 seconds.</p>
<hr />
<p>Reddit upvotes. X likes. YouTube transcripts. TikTok engagement. Polymarket odds backed by real money and insider information. That's millions of people voting with their attention and their wallets every day. /last30days searches all of it in parallel, scores it by what real people actually engage with, and an AI agent judge synthesizes it into one brief.</p>
<p>Google aggregates editors. /last30days searches people.</p>
<p>You can't get this search anywhere else because no single AI has access to all of it. Google search doesn't touch Reddit comments or X posts. ChatGPT has a deal with Reddit but can't search X or TikTok. Gemini has YouTube but not Reddit. Claude has none of them natively. Each platform is a walled garden with its own API, its own tokens, its own auth. But you can bring your own keys and browser sessions, and suddenly an AI agent can search all of them at once, score them against each other, and tell you what actually matters.</p>
<p>That's the unlock. Not one better search engine. A dozen disconnected platforms, bridged by an agent.</p>
<pre><code>/last30days Peter Steinberger</code></pre>
<p>You have a meeting tomorrow. You Google them. You get their LinkedIn from 2023. /last30days gives you what they're actually doing this month: joined OpenAI to work on Codex, fighting Anthropic's ban on third-party agents, shipping 23 PRs at 85% merge rate, building &quot;LobsterOS&quot; for cross-device agent control, and r/ClaudeCode hit 569 upvotes debating whether he's a hero or &quot;insufferable.&quot; Scattered across X posts, Reddit threads, YouTube transcripts, and GitHub commits. None of it was on Google.</p>
<h2>Why this exists</h2>
<p>I built it to keep up in AI. Everything changes every day and the Reddit and X nerds are always on top of it first. I needed better prompts, and the training data was always months behind what the community had already figured out.</p>
<p>But it turned into something bigger. Now I run it before a sales call to know the last 30 days truth about a business. Before a meeting to read someone's recent tweets and podcast transcripts. Before a Disney World trip to know which rides are closed and what the community says about Genie+. Before I build anything to know what problems people are actually hitting.</p>
<p>If you're meeting with a CEO, have you read all their tweets and YouTube transcripts from the last 30 days? I have.</p>
<h2>Sources, scored by the people</h2>
<table>
<thead>
<tr>
<th>Source</th>
<th>What the people tell you</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Reddit</strong></td>
<td>The unfiltered take. Top comments with real upvote counts, free, no API key. The real opinions that Google buries. With your OK, it can also search as your own logged-in Reddit account for more threads and live scores.</td>
</tr>
<tr>
<td><strong>X / Twitter</strong></td>
<td>The hot take, the expert thread, the breaking reaction. First to know, first to argue.</td>
</tr>
<tr>
<td><strong>YouTube</strong></td>
<td>The 45-minute deep dive. Full transcripts searched for the 5 quotable sentences that matter.</td>
</tr>
<tr>
<td><strong>TikTok</strong></td>
<td>The creator reaching 3.6M people with a take you'll never find on Google.</td>
</tr>
<tr>
<td><strong>Instagram Reels</strong></td>
<td>The influencer perspective with spoken-word transcripts. The visual culture signal.</td>
</tr>
<tr>
<td><strong>Hacker News</strong></td>
<td>The developer consensus. 825 points, 899 comments. Where technical people actually argue.</td>
</tr>
<tr>
<td><strong>Polymarket</strong></td>
<td>Not opinions. Odds. Backed by real money. 96% confidence on album sales. 4% on an acquisition. The report puts a market's odds on one line under the story it bears on, with how much they moved.</td>
</tr>
<tr>
<td><strong>GitHub</strong></td>
<td>For people: PR velocity, top repos by stars, release notes. For topics: issues and discussions.</td>
</tr>
<tr>
<td><strong>Digg</strong></td>
<td>Story clusters from every Digg topic (AI, tech, world and business, sports, science, gaming, entertainment), ranked by Digg Score, with attributable inline quotes from X (no X auth required). Auto-enabled when <code>digg-pp-cli</code> is on PATH. An older <code>digg-pp-cli</code> still works, on AI and tech only and without scores.</td>
</tr>
<tr>
<td><strong>arXiv</strong></td>
<td>The papers behind the hype. New research in the window, free, no API key. Auto-enabled when <code>arxiv-pp-cli</code> is on PATH (first-run setup installs it).</td>
</tr>
<tr>
<td><strong>Techmeme</strong></td>
<td>The tech-news editorial layer, date-windowed to your 30 days. Free, no API key. Auto-enabled when <code>techmeme-pp-cli</code> is on PATH (first-run setup installs it).</td>
</tr>
<tr>
<td><strong>Yahoo Finance</strong></td>
<td>The market's read on a company. The share-price move over your 30 days, next to the S&amp;P 500 for US listings. Free, no API key. Shows when your topic is a listed company or the person who leads one and <code>yahoo-finance-pp-cli</code> is on PATH (first-run setup installs it).</td>
</tr>
<tr>
<td><strong>LinkedIn</strong></td>
<td>The professional signal. Posts and articles, with articles weighted as high signal.</td>
</tr>
<tr>
<td><strong>Meta Ads</strong></td>
<td>What a brand is paying to say. Live Meta ad creatives launched this month, with copy, promo codes, and spoken transcripts.</td>
</tr>
<tr>
<td><strong>StockTwits</strong></td>
<td>Trader sentiment. Auto-activates when your topic is a ticker or crypto.</td>
</tr>
<tr>
<td><strong>Threads</strong></td>
<td>The post-Twitter text layer. Conversations from creators and brands.</td>
</tr>
<tr>
<td><strong>Pinterest</strong></td>
<td>Visual discovery. Pins, saves, and comments on products and ideas.</td>
</tr>
<tr>
<td><strong>Xiaohongshu (RED)</strong></td>
<td>Chinese lifestyle, product, and creator signals. Requested explicitly with <code>--search xhs</code> when a logged-in x-mcp browser plugin or <code>xiaohongshu-mcp</code> service is running locally.</td>
</tr>
<tr>
<td><strong>Bluesky</strong></td>
<td>The decentralized social layer. AT Protocol posts from the post-Twitter migration.</td>
</tr>
<tr>
<td><strong>Perplexity</strong></td>
<td>Controlled Agent API synthesis, OpenRouter Sonar fallback, raw Search API rows, and explicit Deep Research.</td>
</tr>
<tr>
<td><strong>DEV Community (dev.to)</strong></td>
<td>Developer articles and top comments through the public, keyless API. Opt in with <code>--devto-tags</code>, <code>--search devto</code>, or <code>INCLUDE_SOURCES=devto</code>.</td>
</tr>
<tr>
<td><strong>Truth Social</strong></td>
<td>Posts searched with <code>TRUTHSOCIAL_TOKEN</code>; available when authenticated.</td>
</tr>
<tr>
<td><strong>Telegram</strong></td>
<td>Public posts from named channels. Opt-in; requires <code>SCRAPECREATORS_API_KEY</code> and a channel list. No keyword discovery.</td>
</tr>
<tr>
<td><strong>Trustpilot</strong></td>
<td>Company TrustScore, review count, and an AI summary of customer feedback. Opt-in; requires <code>trustpilot-pp-cli</code> on PATH and a usable session.</td>
</tr>
<tr>
<td><strong>Amazon</strong></td>
<td>Product ratings, prices, and customer reviews. Opt-in; requires an authenticated <code>brightdata</code> CLI and uses your Bright Data credits.</td>
</tr>
<tr>
<td><strong>DripStack</strong></td>
<td>Financial newsletters and analyst writeups through a public, keyless API. Opt in with <code>--search dripstack</code> or <code>INCLUDE_SOURCES=dripstack</code>.</td>
</tr>
<tr>
<td><strong>Jobs / careers pages</strong></td>
<td>What a company is hiring for, read from its own careers page (Workday, Apple, Amazon, Google, Microsoft, Netflix, Oracle, and more). A company run reads it automatically, and roles that hint at something unannounced become Jobs Page Secret Signals. Also selected with <code>--hiring-signals</code>, <code>--search jobs</code>, or the research plan.</td>
</tr>
<tr>
<td><strong>Patents</strong></td>
<td>A company's new US patent filings, as evidence of what it is building before it ships. Free, no API key. Shows when your topic is a company. A filing becomes a Patent Secret Signal only when it is out of character for the company or describes something it has not shipped or announced.</td>
</tr>
<tr>
<td><strong>Local corpus</strong></td>
<td>Your local Markdown and text files, plus PDFs when <code>pdftotext</code> is on PATH. Opt in with <code>--corpus</code> or <code>LAST30DAYS_CORPUS_DIRS</code>.</td>
</tr>
<tr>
<td><strong>Web</strong></td>
<td>The editorial coverage, the blog comparisons. One signal of many, not the only one.</td>
</tr>
</tbody>
</table>
<p>Ask <code>/last30days</code> to include the sources you need. Availability depends on credentials, installed tools, the topic, and explicit opt-ins. See <a href="CONFIGURATION.md#source-requirements">source requirements</a> for configuration.</p>
<p>A Reddit thread with 1,500 upvotes is a stronger signal than a blog post nobody read. A TikTok with 3.6M views tells you more about what's culturally relevant than a press release. Polymarket odds backed by $66K in volume are harder to argue with than a pundit's guess.</p>
<p>The synthesis ranks by what real people actually engaged with. Social relevancy, not SEO relevancy.</p>
<h2>What people actually use it for</h2>
<p><strong>Before a meeting.</strong> <code>/last30days Peter Steinberger</code> - joined OpenAI's Codex team, fighting Anthropic's ban on third-party agents, 23 PRs merged at 85% merge rate on GitHub, building LobsterOS for cross-device agent control. r/ClaudeCode: &quot;Ever since OpenClaw released, it was widely known that if you run it through anything other than the API, you were gonna get banned eventually&quot; (227 upvotes). That's not on LinkedIn.</p>
<p><strong>To see what a company is building before it ships.</strong> <code>/last30days Apple</code> - the Jobs Page Secret Signal flagged a new director role testing whether requests trigger transactions that run through partner APIs and financial systems, which reads like quality control for an assistant that completes purchases. The Patent Secret Signal flagged an application for changing a device's state by tapping it in a saved photo of your room. Polymarket put Apple at 91% to be the world's largest company at year end. <code>/last30days Alphabet</code> found a product manager role for &quot;YouTube Ads Agentic Buyflows&quot;, and its stock line read down 17.6% over 30 days while the S&amp;P 500 fell 3.6%, with the worst day on Oct 29 (-12.6%). For a hiring-only report, add <code>--hiring-signals</code>.</p>
<p><strong>To find the topic before it peaks.</strong> Ask <code>/last30days what's exploding in AI agents?</code> and the skill switches to discovery mode: the engine sweeps Reddit category listings, Hacker News front/best stories, Digg stories, and X when authenticated; your agent judges the nominations (names, junk filtering, content-worthiness) and writes podcast / X-article angles; then you get 5-10 velocity-ranked topics. Every result includes cross-source numbers, a momentum label, and a ready-to-run <code>/last30days "&lt;topic&gt;"</code> follow-up.</p>
<p><strong>When something drops.</strong> <code>/last30days Kanye West</code> - UK blocked his visa, Wireless Festival canceled, sponsors fled. But BULLY debuted #2 on Billboard. Fantano came back from his &quot;Yay sabbatical&quot; to review it (653K views). SoFi Homecoming brought out Lauryn Hill and Travis Scott for 44 songs. Polymarket: &quot;Will Kanye tweet again?&quot; 86% Yes. 23 Reddit threads, 17 YouTube videos, 86K upvotes.</p>
<p><strong>To compare tools.</strong> <code>/last30days OpenClaw vs Hermes vs Paperclip</code> - &quot;These aren't competitors, they're layers.&quot; OpenClaw is the executor (351K GitHub stars, live), Hermes is the self-improving brain (31K stars), Paperclip is the org chart (49K stars). Star counts pulled live from the GitHub API, not stale blog posts. Side-by-side table with architecture, memory, security, best-for. Per @IMJustinBrooke: &quot;OpenClaw = Charmander, Hermes = Charizard.&quot;</p>
<p><strong>To understand the world.</strong> <code>/last30days Iran vs USA</code> - Day 38 of the war. Trump's Tuesday deadline for Iran to reopen the Strait of Hormuz. Two US warplanes downed. Oil at $126/barrel. The IEA called it &quot;the largest supply disruption in the history of the global oil market.&quot; Polymarket: ceasefire by Dec 31 at 74%. 27 X posts, 10 YouTube videos, 20 prediction markets.</p>
<p><strong>Before a trip.</strong> <code>/last30days Universal Epic Universe</code> - Expansion already under construction. &quot;Project 680&quot; permit filed. Fireworks show confirmed by infrastructure but unannounced. Wait times: Mine-Cart Madness averaging 148 minutes. No annual pass yet, and locals are frustrated. Stardust Racers down for refurbishment through April 5.</p>
<p><strong>To learn something fast.</strong> <code>/last30days Nano Banana Pro prompting</code> - JSON-structured prompts are replacing tag soup. @pictsbyai's nested format prevents &quot;concept bleeding.&quot; Edit-first workflow beats regeneration. Then it writes you a production prompt using exactly what the community said works.</p>
<h2>What's new</h2>
<p>v4 reads what a company is doing before it announces it, and makes every report easier to quote:</p>
<ul>
<li>Patent Secret Signals: a company run reads that month's US patent filings, with no key, and flags only the ones that are out of character or describe something unannounced.</li>
<li>Jobs Page Secret Signals: it reads the company's own careers page and flags the roles that give away what's coming, including new teams nobody has covered yet.</li>
<li>Quote lines: the best Reddit, X, YouTube, TikTok, and Instagram comments sit on their own line under the story they back up, translated when needed, and a line said in a video can be quoted too.</li>
<li>Polymarket odds line: one line under the story it bears on, with how much the odds moved.</li>
<li>Yahoo Finance line: a listed company's share price over the last 30 days next to the S&amp;P 500, plus its biggest single-day move.</li>
<li>Knows who you mean: &quot;Apple&quot; resolves to the company, its site, and its ticker on its own.</li>
<li>Reddit as you: with your OK, Reddit searches as your own logged-in account.</li>
<li>Digg covers every topic now, not just AI and tech.</li>
</ul>
<p>See the <a href="https://github.com/mvanhorn/last30days-skill/releases/latest">latest release</a> for the current published version and <a href="CHANGELOG.md">CHANGELOG.md</a> for version-by-version changes. Unreleased changes on the default branch are recorded in <a href="changelog.d/">changelog.d/</a>.</p>
<p>This README describes the current source tree; your installed version may differ.</p>
<h2>Install</h2>
<table>
<thead>
<tr>
<th>Surface</th>
<th>Install</th>
<th>Updates</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Claude Code</strong> (recommended)</td>
<td><code>/plugin marketplace add mvanhorn/last30days-skill</code></td>
<td>Auto via marketplace, or <code>claude plugin update last30days@last30days-skill</code></td>
</tr>
<tr>
<td><strong>Grok</strong> (xAI Build CLI)</td>
<td><code>grok plugin marketplace add mvanhorn/last30days-skill</code> then <code>grok plugin install last30days</code></td>
<td><code>grok plugin update last30days</code></td>
</tr>
<tr>
<td><strong>Grok Bot</strong></td>
<td><a href="https://x.ai/bot/marketplace/bots/last30days">Add it from the Grok Bot marketplace</a></td>
<td>Managed by the marketplace</td>
</tr>
<tr>
<td><strong>Codex, Cursor, Copilot, Gemini CLI, or any of 50+ <a href="https://agentskills.io">Agent Skills</a> hosts</strong></td>
<td><code>npx skills add mvanhorn/last30days-skill -g</code></td>
<td><code>npx skills update last30days -g</code></td>
</tr>
<tr>
<td><strong>claude.ai</strong> (web)</td>
<td><a href="https://github.com/mvanhorn/last30days-skill/releases/latest/download/last30days.skill">Download <code>last30days.skill</code></a> and upload via claude.ai &gt; Customize &gt; Skills &gt; + &gt; Create skill &gt; Upload a skill</td>
<td>Re-download and re-upload</td>
</tr>
<tr>
<td><strong>Claude Desktop</strong></td>
<td><a href="https://github.com/mvanhorn/last30days-skill/releases/latest">Download the <code>.mcpb</code> for your platform</a> and drag into Settings &gt; Extensions</td>
<td>Re-download and drag the new bundle in</td>
</tr>
<tr>
<td><strong>OpenClaw</strong></td>
<td><code>clawhub install last30days-official</code></td>
<td><code>clawhub update last30days-official</code></td>
</tr>
</tbody>
</table>
<h3>Claude Code (recommended)</h3>
<pre><code>/plugin marketplace add mvanhorn/last30days-skill</code></pre>
<p>Recommended because the Claude Code marketplace handles updates for you — the plugin cache is versioned and auto-refreshes when a new release publishes. Run <code>claude plugin update last30days@last30days-skill</code> to force a check.</p>
<p>If you'd rather use the agent-skills install path on Claude Code, that's also supported:</p>
<pre><code>npx skills add mvanhorn/last30days-skill -g -a claude-code</code></pre>
<h3>Quick Try-Link</h3>
<p><a href="https://app.clawmama.run/skills/2ne05f/hermes?utm_source=github&amp;utm_medium=issue&amp;utm_campaign=skill_outreach_mvanhorn_last30days_skill">Try Last30Days Research Skill in Telegram or WhatsApp</a></p>
<p>The native plugin and the <code>npx skills</code> install can coexist. Note that Claude Code does not dedupe across install methods: if you have both the marketplace plugin and the <code>npx skills</code> copy active, <code>/last30days</code> will show two entries. Use one install method per machine.</p>
<h3>Grok (xAI Build CLI)</h3>
<p><a href="https://docs.x.ai/build/features/skills-plugins-marketplaces">Grok Build</a> (<code>grok</code>) installs last30days as a native plugin. Direct install tracks the repository:</p>
<pre><code class="language-bash">grok plugin install mvanhorn/last30days-skill</code></pre>
<p>Or add this repo as a marketplace source, then install by plugin name:</p>
<pre><code class="language-bash">grok plugin marketplace add mvanhorn/last30days-skill
grok plugin install last30days</code></pre>
<p>Add <code>--trust</code> to skip the install confirmation. Update with <code>grok plugin update last30days</code>. Grok also reads the Claude Code manifests for compatibility; the native <code>.grok-plugin/</code> pair is the first-class lane (and what an official <a href="https://github.com/xai-org/plugin-marketplace">xAI marketplace</a> listing points at). <code>npx skills add</code> remains a valid cross-host fallback. On <a href="https://x.ai/bot/marketplace/bots/last30days">Grok Bot</a>, where last30days installs from the marketplace, X works out of the box through the bot's built-in X tools, then the bot's X connector, with the official X API (<code>X_BEARER_TOKEN</code>) as backup.</p>
<h3>Codex, Cursor, Copilot, Gemini CLI, and other Agent Skills hosts</h3>
<p>Install via the open <a href="https://agentskills.io">Agent Skills</a> CLI — supports 50+ harnesses including <code>codex</code>, <code>cursor</code>, <code>github-copilot</code>, <code>gemini-cli</code>, <code>claude-code</code>, <code>windsurf</code>, <code>cline</code>, <code>continue</code>, <code>roo</code>, <code>aider-desk</code>, <code>opencode</code>, <code>goose</code>, and more (full list on the <a href="https://github.com/vercel-labs/skills">vercel-labs/skills repo</a>).</p>
<pre><code class="language-bash">npx skills add mvanhorn/last30days-skill -g</code></pre>
<p>The <code>-g</code> (global) flag installs to your user directory so the skill is available across all projects. Without <code>-g</code>, <code>npx skills</code> installs project-locally into <code>./.skills/</code> (committed with the repo). For a research-the-world tool, global is what you want.</p>
<p>Codex desktop and other folder-mode hosts can work in ordinary folders as well as Git repos. To inspect what a run would read and write without starting research, run the bundled <code>scripts/last30days.py --preflight</code> from the loaded skill directory; in a source checkout, the equivalent command is <code>python3 skills/last30days/scripts/last30days.py --preflight</code>. It shows the config source, browser-cookie plan, planned writes, optional commands, and ignored project config without reading cookies, writing files, or running research. First-run setup does not require it.</p>
<p>By default this installs for whichever harness <code>npx skills</code> detects. To target a specific one (or multiple):</p>
<pre><code class="language-bash">npx skills add mvanhorn/last30days-skill -g -a codex
npx skills add mvanhorn/last30days-skill -g -a cursor
npx skills add mvanhorn/last30days-skill -g -a gemini-cli
npx skills add mvanhorn/last30days-skill -g -a codex -a cursor</code></pre>
<p>Update later with:</p>
<pre><code class="language-bash">npx skills update last30days -g</code></pre>
<p>Or update everything you've installed globally via <code>npx skills</code>:</p>
<pre><code class="language-bash">npx skills update -g</code></pre>
<p>List and remove with <code>npx skills list -g</code> and <code>npx skills remove last30days -g</code>.</p>
<h3>claude.ai (web)</h3>
<ol>
<li><a href="https://github.com/mvanhorn/last30days-skill/releases/latest/download/last30days.skill">Download <code>last30days.skill</code></a> from the latest release</li>
<li>Go to <a href="https://claude.ai/customize/skills">claude.ai &gt; Customize &gt; Skills</a></li>
<li>Click the <code>+</code> button in the Skills panel &gt; click on <code>Create skill</code> &gt; <code>Upload a skill</code> and browse/drop the file in</li>
</ol>
<p>Enable &quot;Code execution and file creation&quot; under Capabilities first — skills won't run without it.</p>
<h3>Claude Desktop</h3>
<p>Claude Desktop installs <code>/last30days</code> as an MCP server via a <code>.mcpb</code> bundle (a one-click Model Context Protocol package).</p>
<ol>
<li>Go to the <a href="https://github.com/mvanhorn/last30days-skill/releases/latest">latest release</a> and download the <code>.mcpb</code> for your platform:
<ul>
<li>macOS Apple Silicon: <code>last30days-pp-mcp-darwin-arm64.mcpb</code></li>
<li>macOS Intel: <code>last30days-pp-mcp-darwin-amd64.mcpb</code></li>
<li>Linux x86_64: <code>last30days-pp-mcp-linux-amd64.mcpb</code></li>
</ul></li>
<li>Open Claude Desktop, go to Settings &gt; Extensions, and drag the file in.</li>
<li>When prompted, paste API keys for the sources you want to enable. Every field is optional — the engine degrades to web-only mode if you skip them all. Keys are stored in your OS keychain.</li>
<li>Restart Claude Desktop. Ask Claude to &quot;research Peter Steinberger&quot; or any topic and it will call the <code>research</code> tool.</li>
</ol>
<p><strong>Host requirement:</strong> Python 3.12+ on PATH. The bundle ships the engine source but uses your local Python interpreter. Install from <a href="https://www.python.org/downloads/">python.org</a> on Windows; macOS and most Linux distros ship a compatible version.</p>
<p><strong>Keys don't sync with the Code skill.</strong> Claude Desktop and Claude Code maintain separate credential stores by design. If you already configured <code>~/.config/last30days/.env</code> for the Code skill, you'll re-enter the same keys here once.</p>
<p>Windows support is deferred until per-platform manifest entry points are sorted out; track in a follow-up issue.</p>
<h3>OpenClaw</h3>
<pre><code class="language-bash">clawhub install last30days-official</code></pre>
<p>For X/Twitter action workflows outside <code>/last30days</code> research, such as posting<br />
tweets or replies, follower export, media handling, monitors, and giveaway<br />
draws, use <a href="https://github.com/Xquik-dev/tweetclaw">TweetClaw</a> as the companion<br />
OpenClaw plugin. TweetClaw is maintained by Xquik-dev and is listed only as an<br />
optional companion path, not a last30days dependency or endorsement.</p>
<h3>Manual (developer)</h3>
<pre><code class="language-bash">git clone https://github.com/mvanhorn/last30days-skill.git
ln -s "$(pwd)/last30days-skill/skills/last30days" ~/.claude/skills/last30days</code></pre>
<p>The symlink keeps the install in sync with your working tree as you edit — no re-copy needed. For <code>claude.ai</code>, build the <code>.skill</code> file from source: <code>bash skills/last30days/scripts/build-skill.sh</code> produces <code>dist/last30days.skill</code>.</p>
<p>Reddit (with comments), Hacker News, Polymarket, and GitHub work immediately, plus patent filings and careers pages for a company topic. Zero configuration. Run <code>/last30days</code> once and the setup wizard unlocks more sources in 30 seconds, including the free arXiv and Techmeme CLIs.</p>
<h2>Bring your own keys</h2>
<p>These platforms don't have relationships with each other. X doesn't know what Reddit thinks. YouTube doesn't see TikTok. But you can bring your own API keys and browser tokens, and suddenly you have access to all of them at once.</p>
<table>
<thead>
<tr>
<th>Sources</th>
<th>What you need</th>
<th>Cost</th>
</tr>
</thead>
<tbody>
<tr>
<td>Reddit (with comments) + HN + Polymarket + GitHub + StockTwits + company patent filings and careers pages</td>
<td>Nothing</td>
<td>Free</td>
</tr>
<tr>
<td>arXiv + Techmeme + Yahoo Finance</td>
<td>Free CLIs, auto-installed by first-run setup</td>
<td>Free</td>
</tr>
<tr>
<td>X / Twitter</td>
<td>Set <code>X_BEARER_TOKEN</code> for the official X API (recent posts, about the last week, unless your X developer project has full-archive access; a backup on Grok Bot after the bot's built-in X tools, opt-in elsewhere with <code>LAST30DAYS_X_BACKEND=xapi</code>), or log into x.com in any browser, or set <code>XQUIK_API_KEY</code> / <code>XAI_API_KEY</code></td>
<td>X API credits come from your X developer project; browser cookies are free; other keys are provider-specific</td>
</tr>
<tr>
<td>YouTube</td>
<td><code>brew install yt-dlp</code></td>
<td>Free</td>
</tr>
<tr>
<td>Bluesky</td>
<td>App password from bsky.app</td>
<td>Free</td>
</tr>
<tr>
<td>TikTok + Instagram + Threads + Pinterest + LinkedIn + YouTube comments</td>
<td>ScrapeCreators key</td>
<td>10,000 free calls, then PAYG</td>
</tr>
<tr>
<td>Xiaohongshu (RED)</td>
<td>Run a logged-in x-mcp browser plugin or <code>xiaohongshu-mcp</code> service and opt in with <code>--search xhs</code> per run or <code>INCLUDE_SOURCES=xiaohongshu</code> in <code>.env</code>; last30days auto-probes <code>http://localhost:18060</code> then <code>http://host.docker.internal:18060</code>, or use <code>XIAOHONGSHU_API_BASE</code> for a custom URL</td>
<td>No last30days API key; depends on your local browser-session service</td>
</tr>
<tr>
<td>DripStack (premium financial newsletters)</td>
<td>Opt-in: <code>--search dripstack</code> per run, or <code>INCLUDE_SOURCES=dripstack</code> in <code>.env</code></td>
<td>No key; free public search API</td>
</tr>
<tr>
<td>Perplexity Agent API / Search API / Deep Research</td>
<td>Perplexity key, or OpenRouter key as Sonar fallback</td>
<td>Pay as you go; a direct key enables Agent API and background Deep Research</td>
</tr>
<tr>
<td>Web search</td>
<td>Brave Search key</td>
<td>2,000 free queries/month</td>
</tr>
</tbody>
</table>
<h3>macOS Keychain (optional)</h3>
<p>On macOS you can store keys in the system Keychain instead of a <code>.env</code> file. The skill picks them up automatically as the lowest-priority source — <code>.env</code> files and process environment still win on collision.</p>
<pre><code class="language-bash"># Interactive setup — prompts for each known key, skip with empty input
skills/last30days/scripts/setup-keychain.sh

# Or store a single key by hand
security add-generic-password -a "$USER" -s last30days-XAI_API_KEY -w "xai-..."

# Inspect / clean up
skills/last30days/scripts/setup-keychain.sh --list
skills/last30days/scripts/setup-keychain.sh --delete XAI_API_KEY</code></pre>
<p>Items are stored under service name <code>last30days-&lt;KEY&gt;</code> for the current user. On non-Darwin platforms the loader is a no-op, so there is no behaviour change for Linux/Windows users.</p>
<p>Already have keys under different Keychain service names? Set the non-secret <code>LAST30DAYS_KEYCHAIN_ALIASES</code> mapping described in <a href="CONFIGURATION.md#reusing-existing-macos-keychain-items">CONFIGURATION.md</a> instead of copying secrets.</p>
<p>See <a href="CONFIGURATION.md">CONFIGURATION.md</a> for the full per-source key matrix, reasoning provider priority, and web-search backend priority.</p>
<h2>Configuration</h2>
<p>Two things you'll likely want to know on day one:</p>
<p><strong>Where research files are saved.</strong> <code>LAST30DAYS_MEMORY_DIR</code> defaults to <code>~/Documents/Last30Days/</code> (Windows: <code>C:\Users\&lt;you&gt;\Documents\Last30Days\</code>). Override by setting that env var to any path in your shell, or <code>--save-dir &lt;path&gt;</code> per run. Use <code>--output &lt;file&gt;</code> when you need the rendered result at an exact path, using the format selected by <code>--emit</code>. Use <code>--save-suffix=&lt;name&gt;</code> to keep multiple variations of the same topic separate (e.g. per client). Each <code>--save-dir</code> run produces <code>&lt;slug&gt;-raw[-suffix].md</code>. Optionally run <code>python3 skills/last30days/scripts/last30days.py --preflight</code> to review planned writes without starting research.</p>
<p><strong>Structured output for agents and workflows.</strong> Ask <code>/last30days</code> for machine-readable JSON to receive the stable, versioned agent profile. For direct engine use in scripts or development, run <code>python3 skills/last30days/scripts/last30days.py "AI coding agents" --emit=json</code>; add <code>--json-profile=raw</code> only when you need the unversioned internal <code>Report</code> dump. See the <a href="docs/reference/json-export.md">JSON export field reference and versioning policy</a>.</p>
<p><strong>Topic-less discovery.</strong> Ask <code>/last30days what's trending in AI agents?</code> to get a ranked discovery brief instead of researching a topic you already know - on an agent host this runs the three-command host-judged protocol (the model names topics, filters junk, scores worthiness, and writes the content angles). For direct engine use in scripts or cron, run <code>python3 skills/last30days/scripts/last30days.py --discover "AI agents"</code> (one-shot: deterministic topic names, no angles); add <code>--emit=json</code> for the versioned discovery contract. Discovery is mutually exclusive with a positional topic and <code>--drill</code>.</p>
<p><strong>Trend monitoring across runs.</strong> The default mode produces a fresh markdown snapshot per run. To accumulate findings over time, add <code>--store</code> to persist into a SQLite database, then use <a href="skills/last30days/scripts/watchlist.py"><code>scripts/watchlist.py</code></a> for scheduled runs (with optional Slack / webhook delivery on new findings) and <a href="skills/last30days/scripts/briefing.py"><code>scripts/briefing.py</code></a> for daily / weekly digests. The full cadence pattern is in <a href="CONFIGURATION.md#trend-monitoring-store--watchlist--briefings">CONFIGURATION.md</a>.</p>
<p><strong>A subscribable research library.</strong> Ask <code>/last30days</code> to build your library feed, or use <code>python3 skills/last30days/scripts/last30days.py library feed</code> directly for scripting and development. It turns saved briefs into <code>index.html</code>, a local Atom <code>feed.xml</code>, and readable brief pages. Add <code>--publish</code> only when you want the HTML index and brief pages hosted; publishing is explicit opt-in and public by default. To make the Atom feed subscribable, host the generated output directory on a static host such as GitHub Pages.</p>
<p><strong>Search everything you've researched.</strong> Ask <code>/last30days search my library for MCP servers</code> or <code>/last30days have I researched MCP servers before?</code>. For direct engine use, run <code>python3 skills/last30days/scripts/last30days.py library search "MCP servers"</code>. Search is offline and deterministic: it incrementally indexes the same saved briefs used by the library feed, merges matching per-run store sightings, and groups results by topic and date. Fresh runs also surface a compact <strong>From your library</strong> section when prior research overlaps the current topic; set <code>LAST30DAYS_LIBRARY_CONTEXT=off</code> to disable that passive context.</p>
<p>Per-client wrapper scripts, custom category-peer subreddits, and the experimental beta channel for in-progress customizations are also documented in <a href="CONFIGURATION.md">CONFIGURATION.md</a>.</p>
<h2>Showcase: community research feeds</h2>
<p>Published a recurring AI update, market watch, or wonderfully narrow obsession with last30days? Share the public library URL—or the Atom URL after hosting <code>feed.xml</code> on a static host—in <a href="https://github.com/mvanhorn/last30days-skill/issues/532">the community showcase thread</a>. Community feeds will be linked here as their owners submit them; the thread is the collection point in the meantime.</p>
<h2>How it works</h2>
<ol>
<li><strong>You type a topic.</strong> Person, company, product, technology, &quot;X vs Y.&quot; Anything.</li>
<li><strong>The agent resolves who matters.</strong> Finds X handles (including founders), GitHub repos, subreddits, TikTok hashtags, YouTube channels. For &quot;Kanye West&quot; it knows r/hiphopheads, @kanyewest, and &quot;bully review&quot; on YouTube. For &quot;OpenClaw&quot; it resolves openclaw/openclaw on GitHub and fetches live star counts.</li>
<li><strong>All sources searched in parallel.</strong> Multi-query expansion. Results scored by engagement, relevance, freshness.</li>
<li><strong>The depth nobody else has.</strong> Full YouTube transcripts from reaction videos. Top Reddit comments with upvote counts. TikTok captions. Polymarket odds. Not just titles and links.</li>
<li><strong>Same story, merged.</strong> Wireless Festival announced on Reddit, discussed on X, ticket prices on TikTok = one cluster, not three separate items.</li>
<li><strong>Synthesized into one brief.</strong> Grounded in specific data. Cited by source. Ranked by what people actually engage with. Not &quot;here's what I found.&quot; It's &quot;here's what matters.&quot;</li>
<li><strong>Then it becomes your expert.</strong> After one run, your Claude session knows everything the community knows. Ask follow-up questions. Have it write prompts, draft emails, plan trips, architect systems - all grounded in what's real right now.</li>
</ol>
<h2>What people are saying</h2>
<blockquote>
<p>&quot;I found a Claude Code skill that researches any topic across Reddit, X, YouTube, and HN from the last 30 days. Then writes the prompts for you. I've been manually searching Reddit and X for research before every piece of content I write. Tab by tab. Thread by thread. That's the part that takes 90 minutes. This eliminates it.&quot; -@itsjasonai</p>
<p>&quot;This one skill replaced my entire research workflow. You give it a topic, it scrapes Reddit, X, and the web for what people are actually talking about. Not old blog posts. Real conversations from the last 30 days.&quot; -@itswilsoncharles</p>
<p>&quot;5 of the 10 trending repos on GitHub today are Claude tools. #1: mvanhorn/last30days-skill&quot; -@yieldhunter95</p>
</blockquote>
<h2>Open source</h2>
<p>MIT license. No tracking. No analytics. Your research stays on your machine (see Data handling below).</p>
<p>For test commands, see <a href="CONTRIBUTING.md#tests">CONTRIBUTING.md</a>.</p>
<p>Built with Python 3.12+, yt-dlp, Node.js (vendored Bird client for X search), and ScrapeCreators API. v3 engine architecture by <a href="https://github.com/j-sperling">@j-sperling</a>.</p>
<p>See <a href="CONTRIBUTING.md">CONTRIBUTING.md</a> to open a PR, <a href="CONTRIBUTORS.md">CONTRIBUTORS.md</a> for the full list of community contributors, and <a href="CHANGELOG.md">CHANGELOG.md</a> for version history.</p>
<h2>Data handling</h2>
<p>By default the skill runs entirely on your machine — no data leaves except to the search APIs you call (Reddit, ScrapeCreators, etc.).</p>
<p><strong>Reranking.</strong> When you configure a reasoning provider (<code>OPENAI_API_KEY</code>, <code>XAI_API_KEY</code>, <code>OPENROUTER_API_KEY</code>, <code>GOOGLE_API_KEY</code>, <code>GEMINI_API_KEY</code>, or <code>GOOGLE_GENAI_API_KEY</code>), the engine sends your research topic and retrieved content snippets to that provider for relevance scoring. This is opt-in: if you set no reasoning key, the engine falls back to a local scoring model and no external reranking call is made. See <a href="CONFIGURATION.md">CONFIGURATION.md</a> for provider priority.</p>
<p><strong>Local store.</strong> When <code>LAST30DAYS_STORE=1</code> is set, findings are persisted to a local SQLite database named <code>research.db</code> inside the effective save directory (<code>--save-dir</code> takes precedence over <code>LAST30DAYS_MEMORY_DIR</code>). If no save directory is in effect, the database is <code>~/.local/share/last30days/research.db</code>. Enabling the store does not upload its database to a remote service. See <a href="CONFIGURATION.md#--store-flag">CONFIGURATION.md</a> for retention details and purge instructions, including stopping database users before deletion.</p>
<h2>Star History</h2>
<p><a href="https://star-history.dera.page/#mvanhorn/last30days-skill&Date"></p>
<picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://star-history.dera.page/svg?repos=mvanhorn/last30days-skill&type=Date&theme=dark" />
    <source media="(prefers-color-scheme: light)" srcset="https://star-history.dera.page/svg?repos=mvanhorn/last30days-skill&type=Date" />
    <img alt="Star History Chart" src="https://star-history.dera.page/svg?repos=mvanhorn/last30days-skill&type=Date" />
  </picture>
<p></a></p>
<hr />
<p><strong>@slashlast30days</strong> · <a href="https://github.com/mvanhorn/last30days-skill">github.com/mvanhorn/last30days-skill</a></p>]]></description>
    <pubDate>Tue, 17 Nov 2026 16:30:35 +0800</pubDate>
    <dc:creator>blogger</dc:creator>
    <guid>https://dsh.lewz.cn/mvanhorn-last30days-skill</guid>
</item>
<item>
    <title>jiangshan-map</title>
    <link>https://dsh.lewz.cn/deanchensj-jiangshan-map</link>
    <description><![CDATA[<blockquote>
<p>🔥 本项收录自 <strong>GitHub 日榜 · 全球 第 7 名</strong>（288 stars today），榜单来源：<a href="https://rebang.today/?tab=github&amp;sub_tab=all&amp;extra_filter=date_type%3Ddaily%26chinese%3Dfalse">rebang.today</a></p>
</blockquote>
<h1>Chronicles of the Realm · 江山时序</h1>
<p align="left">
  <strong>English</strong> · <a href="README_ZH.md">简体中文 (Chinese)</a> · <a href="README_ZH_HANT.md">繁體中文 (Traditional Chinese)</a> · <a href="README_JA.md">日本語 (Japanese)</a>
</p>
<p><strong>An Interactive Historical Atlas of China from the Warring States (403 BCE) to the Present — Scrub Through Time, Trace Ancient Cities, and Walk in the Footsteps of History</strong></p>
<p><a href="https://deanchen.me/jiangshan-map/?lang=en"><strong>Play Live Demo (English UI) → https://deanchen.me/jiangshan-map/?lang=en</strong></a></p>
<p><em>The story behind it (in Chinese): <a href="https://deanchen.me/history/atlas/2026/10/25/jiangshan-map-story.html">From textbook maps to 1k GitHub stars</a></em></p>
<p align="center">
  <a href="https://www.star-history.com/deanchensj/jiangshan-map">
    <picture>
      <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/badge?repo=deanchensj/jiangshan-map&type=trending&theme=dark" />
      <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/badge?repo=deanchensj/jiangshan-map&type=trending" />
      <img alt="GitHub Trending · Repository of the Day #2" src="https://api.star-history.com/badge?repo=deanchensj/jiangshan-map&type=trending" height="56" />
    </picture>
  </a>
</p>

<p align="center">
  <a href="https://deanchen.me/jiangshan-map/?lang=en">
    <img src="https://raw.githubusercontent.com/DeanChensj/jiangshan-map/main/assets/hero_demo_en.webp" alt="Chronicles of the Realm — 15s Interactive Overview (Warring States Unification, 2,400-Year Dynastic Scrubbing, Chang'an Place Genealogy & Su Shi's Exile Route)" width="100%" />
  </a>
</p>

---

## Why It's Fun to Explore

Have you ever wondered while reading Chinese history or classical poetry:
- *"Where exactly on today's map are Jiankang (the Six Dynasties capital), Huangzhou (where Su Dongpo composed the Red Cliffs Rhapsody in exile), Languan Pass in the Qinling Mountains (where Han Yu halted his horse in the snow), or Zhuxianzhen (Yue Fei's northern campaign frontier)?"*
- *"How many names did Chang'an hold across two millennia, and what pivotal events unfolded on that soil?"*
- *"How did the realm evolve step by step—from the Partition of Jin and the Seven Warring States at the opening of Sima Guang's Zizhi Tongjian (403 BCE), Qin's unification campaigns, Emperor Wu of Han opening the Hexi Corridor, High Tang's Four Garrisons of Anxi, and Yuan's Xuanzhengyuan jurisdiction over Tibet, to Zeng Jize's recovery of Ili (1881 CE) and the 20th-century shift from the 'Begonia Leaf' (秋海棠) map to the 'Rooster' (雄鸡) map?"*

**Chronicles of the Realm (`jiangshan-map`)** brings together **2,400+ years** of Chinese history across **18 historical periods** into a single interactive parchment atlas—featuring **multi-stage territorial and prefecture snapshots**, **ancient cities**, **strategic mountain passes**, **poetic and battlefield landmarks**, **chronological milestones**, and **reigning monarchs & imperial eras**. No heavy print atlases required—just drag the timeline and click any city to travel through space and time.

---

### Feature 1: Scrub the Timeline to Watch Realms Rise & Fall, Track Monarchs, and Compare Ancient & Modern Borders

- **Multi-Polity Confrontations on a Single Canvas**: From the Seven Warring States (Qin, Chu, Qi, Yan, Zhao, Wei, Han) alongside Zhou, Yue, Ba-Shu, Zhongshan, and Yiqu, to the Three Kingdoms warlords (Yuan Shao, Cao Cao, Liu Bei, Sun Quan, Gongsun's Liaodong), Northern & Southern Dynasties, Five Dynasties & Ten Kingdoms, and Song, Liao, Western Xia, Dali, Jin, and the Mongols—all rendered side-by-side in high-contrast traditional parchment hues. Hover over any polity in the bottom-left legend to highlight its territory, or click to open that polity's profile (lifespan, capitals and a short history) and zoom to its territory.
- **Multi-Stage Territorial Evolution & Dashed "Ghost Boundary Diffs"**: At every major territorial milestone—such as Qin's conquest of Ba-Shu (316 BCE), Yan General Qin Kai's expansion into Liaodong (300 BCE), Ma Yuan's bronze pillars in Jiaozhi (43 CE), Sima Yi's campaign in Liaodong (238 CE), Li Jing's conquest of Tuyuhun (635 CE), the Four Garrisons of Anxi & Wang Xuance's campaign in Central India (648 CE), Yuan's Xuanzhengyuan rule over Tibet (1288 CE), Ming's Jiaozhi Province in Annam (1407 CE), the 1881 Treaty of Saint Petersburg recovering Ili, the 1898 foreign leased territories, the 1945 retrocession of Taiwan, and the 1946 transition from the **"Begonia Leaf" (秋海棠)** map to the **"Rooster" (雄鸡)** map—click any milestone or phase dot to switch maps and reveal the previous phase's dashed vermilion **Ghost Boundary Diff** so territorial gains and losses are immediately visible.
- **Reigning Monarch on the Timeline**: The bubble above the timeline names the monarch on the throne in the current year (e.g. `100 BCE · Western Han · Emp. Wu`, `630 CE · Tang · Emp. Taizong`, `1700 CE · Qing · Kangxi Emp. (Shengzu)`); the Chinese interface also shows the regnal era year (`唐太宗·贞观四年`).
- **Ancient Prefecture Hover Inspection & Modern Province Overlay**: First-level administrative divisions (Commanderies, Circuits, Routes, and Provinces) are rendered with deduplicated **Parchment Casing** borders. Zoom in and hover over any prefecture (e.g., Ming `Yingtian Prefecture` or Three Kingdoms `Jingzhou`) to inspect its jurisdiction and modern provincial equivalents. In the top-right **Layers** menu, `Provinces` (on by default) draws today's provincial boundaries over the historical map, and `Prov. Names` adds their names.
- **Dynamic River Courses, Ancient Lakes & Grand Engineering Works**: As you scrub through time, historical shifts of the Yellow River, expanding and shrinking ancient lakes (*Yunmeng Marsh*, *Lop Nur / Puchanghai*), Warring States/Qin/Han/Ming Great Walls, Sui-Tang & Grand Canals, the Silk Road, and Zheng He's maritime routes evolve in lockstep with each era; ancient coastlines around the Bohai Gulf, northern Jiangsu, the Yangtze estuary, and the Pearl River Delta also advance and retreat by era.
- **Zoomable Timeline**: Drag the handles at either end of the timeline inward to zoom into one stretch of history (handy for short eras such as Qin, the Three Kingdoms, or the Five Dynasties); double-click the timeline to return to the full overview.
- **Voice Narration**: Turn on the narration toggle next to the play button and autoplay reads out each year and its events in the browser's built-in voice; it also follows a person's chronicle on autoplay (requires a browser with speech synthesis).

> [Try It Live: Ming Dynasty Yongle 13 (1415 CE) · Two Capitals, Thirteen Provinces & "Yingtian Prefecture" Inspection →](https://deanchen.me/jiangshan-map/?year=1415&zoom=1.75&center=115.8,33.2&hover=Yingtian%20Prefecture&lang=en)

![Ming Dynasty 1415 CE · Yingtian Prefecture Hover Preview](https://raw.githubusercontent.com/DeanChensj/jiangshan-map/main/assets/preview_1415_ming_yingtian_en.webp)

---

### Feature 2: Click Any Ancient City or Strategic Pass to Uncover 2,400 Years of History (`Trace Place`)

**Click any ancient city or mountain pass** on the map (or double-click anywhere on the canvas) to open its **Trace Place** genealogy card:
- **Bilingual City Lore Banner & 2,400-Year Administrative Genealogy**: At the top of the card, read a curated **poetic epigraph and historical biography** for the city; below, trace how its name and administrative jurisdiction evolved across all 18 historical eras—from Warring States and Qin commanderies, Han regional inspectorates, Tang circuits, and Song routes to Yuan/Ming/Qing provinces and modern municipalities—complete with `Capital` badges and dynastic seat remarks.
- **Site-Specific Landmark Events**: Beneath each dynasty row, inspect major historical events that took place right on that spot (e.g., *Shang Yang's Reforms* and *Qin's Unification* at Xianyang, *Guan Yu Flooding the Seven Armies* at Fancheng, the *Xuanwu Gate Incident* at Chang'an, or *Yue Fei's Martyrdom* at Lin'an). Click the **`Chronicles`** pill in the top-right of the card to filter for dynasties with major events, and click any event to time-travel straight to that year!
- **Strategic Mountain Passes & Poetic / Battlefield Landmarks**: Explore famous mountain passes—including *Hangu Pass*, *Tongguan*, *Jianmen Pass*, *Yanmen Pass*, *Yumen Pass*, *Yangguan*, and *Shanhai Pass*—rendered with traditional *Hanque* gatehouse icons and strategic terrain notes, alongside famous battlefields and literary landmarks such as *Red Cliffs (Chibi)*, *Gaixia*, *Wuzhang Plains*, *Orchid Pavilion (Lanting)*, *Yueyang Tower*, *Pavilion of Prince Teng*, *Languan Pass*, *Loulan*, *Lop Nur*, and *Issyk-Kul*.

> [Try It Live: High Tang Kaiyuan 29 (741 CE) · Open Chang'an's 2,400-Year Genealogy Card →](https://deanchen.me/jiangshan-map/?year=741&place=Chang'an&lang=en)

![High Tang 741 CE · Chang'an Trace Place & Key Events](https://raw.githubusercontent.com/DeanChensj/jiangshan-map/main/assets/preview_741_tang_trace_en.webp)

---

### Feature 3: Person Chronicles — Trace Any Historical Figure Across Time & Space

Click the top-left **Universal Search Box** (with a rotatable `e.g.` figure preview and quick-search chips, or type any monarch, general, statesman, monk, or poet such as `Cao Cao`, `Huo Qubing`, `Sima Qian`, `Yue Fei`, or `Zheng He`) to open **Person Chronicle (`点人溯事`)**, marking every milestone of their life with numbered pins across changing dynastic borders:
- **Qin Shi Huang's Unification Campaigns (238–221 BCE)**: From suppressing the rebellion at Xianyang and Wang Jian's attack on Ye, to the fall of Han, Zhao, Yan, Wei, Chu, and Dai, culminating in the surrender of Qi at Linzi—as you advance stop by stop, watch the six rival kingdoms merge into the Qin Empire right on the map!
- **Zhang Qian's Mission to the Western Regions (138–126 BCE)**: Depart Chang'an, endure over a decade of Xiongnu captivity without surrendering the Han imperial staff, and blaze the trail to Dayuan (Fergana), Kangju, and the Greater Yuezhi.
- **Zhuge Liang's Emergence & Northern Expeditions (207–234 CE)**: From the Three Visits at Longzhong and the alliance at Chaisang before Red Cliffs, to entering Shu, the White Emperor City entrustment, the Southern Campaign across the Lu River, Hanzhong's *Memorial on Deploying the Troops*, Mount Qi, and the autumn winds of Wuzhang Plains.
- **Xuanzang's Pilgrimage to India (627–645 CE)**: Slip past Yumen Pass alone across the Moheyan Desert, scale the icy Bedel Pass, cross the Indus, study at Nalanda Monastery, and debate at Kanyakubja (Kanauj) before returning to Chang'an.
- **Li Bai's Grand Travels Across Tang China (701–762 CE)**: From Suyab and boyhood in Shu, sailing out through the Three Gorges at twenty-four, scattering gold in Yangzhou, serving in the Hanlin Academy at Chang'an, meeting Du Fu in Luoyang, receiving amnesty at White Emperor City, to his final years at Dangtu.
- **Su Shi's Literary Exile Across Song China (1056–1101 CE)**: From leaving Meishan for the capital Kaifeng and gazing at the moon in Mizhou, to composing the *Red Cliffs Rhapsody* in Huangzhou exile, Huizhou, and crossing the sea to Danzhou on Hainan Island.
- **Wang Yangming's Unity of Knowledge & Action (1472–1529 CE)**: From birth in Yuyao and imprisonment in Beijing, to his enlightenment at Longchang in Guizhou, pacifying bandits in Southern Ganzhou, capturing the rebel Prince of Ning in 35 days, teaching at the Tianquan Bridge in Shaoxing, and his final words *"This mind is bright and clear; what more is there to say?"* at Nan'an.
- **Multi-Person Chronicles**: Type two or three names into the search box (e.g. `Li Bai, Du Fu, Gao Shi` or `Cao Cao, Liu Bei, Sun Quan`) to merge their journeys onto one timeline. Places where they met in the same year are marked as shared encounters, and the `Shared N` pill narrows the list to just those stops.
- **Event Storylines**: Major events unfold stop by stop, just like a person's life. The Chu–Han Contention (207–202 BCE), the An Lushan Rebellion (755–763 CE) and the Jingkang Catastrophe (1125–1142 CE) are each laid out in ten stops across three acts, with the two sides drawn in different colors so each side's advances are easy to follow.

Each time you step to the next event (`‹ / ›`, `← / →`, or `Space` to auto-play), **the timeline year, reigning monarch, imperial era, and dynastic territories evolve in sync with their footsteps**, highlighting the active transition arc alongside bilingual primary-source excerpts and poems written at that exact site.

> [Try It Live: Su Dongpo's Life & Exile Across Song China (1037–1101 CE) →](https://deanchen.me/jiangshan-map/?person=sushi&lang=en)

![Person Chronicle · Su Shi's Life & Exile Route](https://raw.githubusercontent.com/DeanChensj/jiangshan-map/main/assets/preview_journey_sushi_en.webp)

---

### Feature 4: Easter Egg · Map Pinpoint Challenge — What Imperial Court Rank Would You Earn?

Think you know Chinese historical geography? Click **`Quiz ›`** in the corner of the **Universal Search Box** guide bar (or type `quiz` for **`Map Pinpoint · Ancient Place Quiz`**):
- **Dynastic Historical Clues + Blind Map Pinpointing**: City labels are hidden while the prompt asks you to locate an ancient city across a 10-round progressive difficulty deck—accompanied by **dynastic historical clues** (without spoiling the modern city name). Drop your pin to preview and adjust, click the **`Confirm ↵`** chip next to the pin to lock in your answer with concentric distance score rings, and earn points based on great-circle distance to the true coordinates!
- Complete 10 rounds to receive a traditional imperial cartographic title such as **Grand Historian & Master Cartographer (太史令 · 舆图大家)**, **Director of the Bureau of Operations (职方郎中)**, or **Prefectural Retainer (州郡从事)**.

> [Try It Live: Western Han Emperor Wu, Yuanshou 2 (121 BCE) · Start the Map Pinpoint Challenge →](https://deanchen.me/jiangshan-map/?year=-121&quiz=locate&lang=en)

![Western Han 121 BCE · Map Pinpoint Challenge Preview](https://raw.githubusercontent.com/DeanChensj/jiangshan-map/main/assets/preview_quiz_challenge_en.webp)

---

## Keyboard Shortcuts & Shareable Deep Links

### Keyboard Shortcuts

| Key / Action | Effect |
| :--- | :--- |
| **`/`** or **`Cmd/Ctrl + K`** | Focus the **Universal Search Box**: search **historical figures** (`Qin Shi Huang`/`Zhang Qian`/`Su Shi`), **ancient & modern cities** (`Xianyang`/`Chang'an`/`Luoyang`/`Kaifeng`), **reigning monarchs** (`Emperor Wu of Han`/`Taizong of Tang`/`Liu Che`/`Li Shimin`), **imperial eras** (`Zhenguan`/`Yongle`/`Kangxi`), **poetic & battlefield landmarks** (`Red Cliffs`/`Wuzhang Plains`/`Languan`/`Lanting`), **mountain passes** (`Hangu Pass`/`Jianmen Pass`/`Yumen Pass`), **historical events**, or the **Ancient Place Quiz** |
| **`←` / `→`** or bottom **`‹ / ›`** | Jump to the previous / next historical phase, milestone event, or person event stop (hold `Shift + ← / →` to step by `10` years) |
| **`Space`** | Auto-play / pause timeline evolution (or auto-advance stops in Person Chronicle mode) |
| **`Esc`** | Close active popups/cards, clear search highlights, or exit custom multi-stop routes |
| **`Single-click city` / `Double-click map`** | Open the 18-era **Trace Place & Key Events** genealogy card for that location |
| **`Hover / Click legend swatch`** | Hover to isolate & highlight that polity's territory; click to open its profile and zoom to its territory |

### Shareable Deep Links

Append query parameters to share any historical moment, battle, city genealogy, or multi-stop route:
- **Jump to a specific year or territorial shift**: [`?year=-403&lang=en`](https://deanchen.me/jiangshan-map/?year=-403&lang=en) (403 BCE · Partition of Jin) / [`?year=-121&lang=en`](https://deanchen.me/jiangshan-map/?year=-121&lang=en) (121 BCE · Huo Qubing opens the Hexi Corridor) / [`?year=648&lang=en`](https://deanchen.me/jiangshan-map/?year=648&lang=en) (648 CE · Four Garrisons of Anxi & Wang Xuance in India) / [`?year=1288&lang=en`](https://deanchen.me/jiangshan-map/?year=1288&lang=en) (1288 CE · Yuan Xuanzhengyuan over Tibet) / [`?year=1881&lang=en`](https://deanchen.me/jiangshan-map/?year=1881&lang=en) (1881 CE · Zeng Jize recovers Ili) / [`?year=1945&lang=en`](https://deanchen.me/jiangshan-map/?year=1945&lang=en) (1945 CE · Retrocession of Taiwan)
- **Pinpoint a famous battle**: [`?year=-260&place=长平&lang=en`](https://deanchen.me/jiangshan-map/?year=-260&place=长平&lang=en) (Battle of Changping) / [`?year=208&place=赤壁&lang=en`](https://deanchen.me/jiangshan-map/?year=208&place=赤壁&lang=en) (Battle of Red Cliffs) / [`?year=383&place=淝水&lang=en`](https://deanchen.me/jiangshan-map/?year=383&place=淝水&lang=en) (Battle of Fei River)
- **Inspect a city's 2,400-year genealogy**: [`?year=741&place=长安&lang=en`](https://deanchen.me/jiangshan-map/?year=741&place=长安&lang=en) (Chang'an / Xi'an) / [`?year=1415&place=应天府&lang=en`](https://deanchen.me/jiangshan-map/?year=1415&place=应天府&lang=en) (Jiankang / Yingtian / Nanjing) / [`?year=819&place=蓝关&lang=en`](https://deanchen.me/jiangshan-map/?year=819&place=蓝关&lang=en) (Han Yu at Languan Pass)
- **Plot a custom poetic or campaign route**: [`?year=763&place=剑外,巴峡,巫峡,襄阳,洛阳&lang=en`](https://deanchen.me/jiangshan-map/?year=763&place=剑外,巴峡,巫峡,襄阳,洛阳&lang=en) (Du Fu's 763 CE homeward route) / [`?year=1079,1080,1094,1097&place=湖州,黄州,惠州,儋州&lang=en`](https://deanchen.me/jiangshan-map/?year=1079,1080,1094,1097&place=湖州,黄州,惠州,儋州&lang=en) (Su Shi's multi-year exile route across Huzhou, Huangzhou, Huizhou, and Danzhou)
- **Open a person's spatio-temporal chronicle**: [`?person=qinshihuang&lang=en`](https://deanchen.me/jiangshan-map/?person=qinshihuang&lang=en) (Qin Shi Huang) / [`?person=zhangqian&lang=en`](https://deanchen.me/jiangshan-map/?person=zhangqian&lang=en) (Zhang Qian) / [`?person=zhugeliang&lang=en`](https://deanchen.me/jiangshan-map/?person=zhugeliang&lang=en) (Zhuge Liang) / [`?person=xuanzang&lang=en`](https://deanchen.me/jiangshan-map/?person=xuanzang&lang=en) (Xuanzang) / [`?person=libai&lang=en`](https://deanchen.me/jiangshan-map/?person=libai&lang=en) (Li Bai) / [`?person=sushi&lang=en`](https://deanchen.me/jiangshan-map/?person=sushi&lang=en) (Su Shi) / [`?person=wangyangming&lang=en`](https://deanchen.me/jiangshan-map/?person=wangyangming&lang=en) (Wang Yangming)
- **Compare several people or follow an event**: [`?person=libai,dufu&lang=en`](https://deanchen.me/jiangshan-map/?person=libai,dufu&lang=en) (Li Bai & Du Fu) / [`?person=caocao,liubei,sunquan&lang=en`](https://deanchen.me/jiangshan-map/?person=caocao,liubei,sunquan&lang=en) (Cao Cao, Liu Bei & Sun Quan) / [`?event=qintongyi&lang=en`](https://deanchen.me/jiangshan-map/?event=qintongyi&lang=en) (Qin's Conquest of the Six States) / [`?event=chuhan&lang=en`](https://deanchen.me/jiangshan-map/?event=chuhan&lang=en) (Chu–Han Contention) / [`?event=anshi&lang=en`](https://deanchen.me/jiangshan-map/?event=anshi&lang=en) (An Lushan Rebellion) / [`?event=jingkang&lang=en`](https://deanchen.me/jiangshan-map/?event=jingkang&lang=en) (Jingkang Catastrophe)
- **Start a quiz round**: [`?year=-121&quiz=locate&lang=en`](https://deanchen.me/jiangshan-map/?year=-121&quiz=locate&lang=en) (Map Pinpoint Challenge)
- **Switch UI language**: [`?lang=en`](https://deanchen.me/jiangshan-map/?lang=en) (English) / [`?lang=zh-tw`](https://deanchen.me/jiangshan-map/?lang=zh-tw) (Traditional Chinese) / [`/`](https://deanchen.me/jiangshan-map/) (Simplified Chinese)

### Embed in Your Page

Put any view of the atlas into a blog post, Notion page, or course site:

1. Open the atlas and set up the view you want (a year, a regime profile, a place card, or a person's trajectory). The address bar always mirrors what you see.
2. Copy the URL and add `&embed=1`.
3. Paste it into an `<iframe>`:

```html
<iframe
  src="https://deanchen.me/jiangshan-map/?embed=1&year=1104&trace=101.778,36.617&from=1072&to=1126&lang=en"
  width="100%" height="480" loading="lazy" style="border:0"
  title="Chronicles of the Realm · 1104 CE, Northern Song"></iframe>
```

The embedded map hides the site chrome and keeps only the map, a compact timeline, a title chip, an "Open in Jiangshan Atlas ↗" link, and a note that historical borders are approximate. Readers click once to start panning and zooming, so scrolling your page never gets stuck on the map.

| Parameter | Effect |
|---|---|
| `embed=1` | Turn on embed mode (required) |
| `year`, `polity`, `person`, `stop`, `trace`, `lang` | Same as the share links above |
| `from=1072&to=1126` | Limit the timeline to this range; the timeline zooms to show only it |
| `lock=1` | Freeze the map at `year` and hide the timeline |
| `autoplay=1` | Play a person's trajectory stop by stop (with `person`), or play the timeline |

WeChat Official Accounts, Zhihu, and Xiaohongshu do not allow iframes; share the plain link there instead.

---

## AI Agent, MCP & LLM Integration

**Chronicles of the Realm** works out of the box as a **historical-geography visualization engine for LLMs, MCP Clients, and AI Agents**. Models **never need to guess latitude/longitude coordinates**—simply extract two semantic parameters from a poem or historical text, **`year`** and **`place`**, and the atlas automatically resolves ancient/modern place names, centers the camera, renders dynastic borders and multi-stop trajectories, and opens the **Trace Place** genealogy card:

- **Machine-Readable Specification**: [`llms.txt`](llms.txt)
- **Zero-Dependency Local MCP Server (`stdio`)**: [`scripts/mcp_server.js`](scripts/mcp_server.js) — add to Claude Desktop, Cursor, Windsurf, or Gemini CLI `mcpServers`:
  ```json
  {
    "mcpServers": {
      "jiangshan-atlas": {
        "command": "node",
        "args": ["/absolute/path/to/jiangshan-map/scripts/mcp_server.js"]
      }
    }
  }
  ```
  Exposes 3 native MCP tools (`<5ms` offline response, zero npm dependencies):
  - `inspect_place({ year, place, lang? })`: Returns reigning monarch/era, controlling regime (`polity`), macro-region (`dao/lu/province`), prefecture (`jun/zhou/fu`), modern province/city, 2,400-year `lore`, and shareable deep-link URL.
  - `inspect_person({ person, stop?, lang? })`: Returns a historical figure or monarch's biography, chronological geocoded stops across dynasties, and shareable deep-link URL.
  - `search_atlas({ query, limit?, lang? })`: Searches across all ancient cities, poetic & battlefield landmarks, mountain passes, historical figures, imperial eras, and chronological milestones.
- **Ready-to-Use Agent Skill**: [`skills/jiangshan-atlas/SKILL.md`](skills/jiangshan-atlas/SKILL.md) (includes the zero-dependency CLI renderer [`skills/jiangshan-atlas/scripts/jiangshan.py`](skills/jiangshan-atlas/scripts/jiangshan.py))
  ```bash
  # Install into Claude Code / Gemini / Jetski global skills directory:
  mkdir -p ~/.claude/skills ~/.gemini/config/skills && cp -r skills/jiangshan-atlas ~/.claude/skills/ && cp -r skills/jiangshan-atlas ~/.gemini/config/skills/
  ```

### 1. Zero-Coordinate Dual-Parameter URL Protocol (0D Pinpoint / 1D Same-Year Route / 4D Multi-Year Route)

| Mode | Example URL | Automatic Rendering Behavior |
| :--- | :--- | :--- |
| **Single-Point Pinpoint (0D)** | [`?year=819&place=蓝关&lang=en`](https://deanchen.me/jiangshan-map/?year=819&place=蓝关&lang=en)<br>*(Han Yu's 819 CE exile poem at Languan Pass)* | Jumps to Tang Yuanhe 14 (819 CE), drops a pin on Languan Pass in the Qinling Mountains, and opens its 2,400-year administrative genealogy card |
| **Same-Year Multi-Stop Route (1D)** | [`?year=763&place=剑外,巴峡,巫峡,襄阳,洛阳&lang=en`](https://deanchen.me/jiangshan-map/?year=763&place=剑外,巴峡,巫峡,襄阳,洛阳&lang=en)<br>*(Du Fu's 763 CE poem on recapturing Henan & Hebei)* | Plots numbered vermilion arcs `1` → `5` across the 763 CE Tang map and auto-fits the viewport; click any stop to inspect its genealogy |
| **Multi-Year Space-Time Route (4D)** | [`?year=1079,1080,1094,1097&place=湖州,黄州,惠州,儋州&lang=en`](https://deanchen.me/jiangshan-map/?year=1079,1080,1094,1097&place=湖州,黄州,惠州,儋州&lang=en)<br>*(Su Shi's career across Huzhou, Huangzhou, Huizhou & Danzhou)* | Pairs `year[i]` with `place[i]`, labeling stops with their historical years and switching the underlying dynastic map whenever you click a stop |

### 2. CLI One-Command Screenshot & JSON Lookup (for Agent Tool Calls)

```bash
# Single-point poetic landmark screenshot
python3 skills/jiangshan-atlas/scripts/jiangshan.py --year 819 --place 蓝关 --out /tmp/languan_819.png

# Same-year multi-stop trajectory screenshot
python3 skills/jiangshan-atlas/scripts/jiangshan.py --year 763 --place 剑外,巴峡,巫峡,襄阳,洛阳 --out /tmp/dufu_763.png

# Multi-year space-time trajectory screenshot
python3 skills/jiangshan-atlas/scripts/jiangshan.py --year 1079,1080,1094,1097 --place 湖州,黄州,惠州,儋州 --out /tmp/sushi_exile.png
```

### 3. Browser JavaScript API (`window.atlasAPI`) & In-Browser WebMCP (`navigator.modelContext`)

In browser automation environments (Playwright) or WebMCP-enabled AI browsers (`navigator.modelContext`), the page automatically registers `jiangshan_locate`, `jiangshan_inspect`, and `jiangshan_open_person`, and exposes `window.atlasAPI`:
- `window.atlasAPI.locate({ year, place, zoom? })`: Drives the map to a single location or multi-stop trajectory and returns structured historical-geographic metadata.
- `window.atlasAPI.inspect({ year, place, person?, stop? })`: Read-only query returning the controlling polity, ancient prefecture, modern province/city, leg distances, person events, and canonical shareable URL.
- `window.atlasAPI.resolvePlace(place, year?)`: Resolves ancient and modern names for cities, strategic passes, poetic landmarks, and battlefields.
- `window.atlasAPI.openPerson(person, stop?)` & `window.atlasAPI.search(query)`: Opens a person chronicle on the map or searches across the entire atlas.

---

## Run Locally

No dependencies or build steps required. Clone and serve with any static HTTP server:

```bash
git clone https://github.com/DeanChensj/jiangshan-map.git
cd jiangshan-map
python3 -m http.server 8000
```

Then open `http://localhost:8000` in your browser.

## Run with Docker

No local dependency needed. Build and start with Docker Compose:

```bash
docker compose up -d --build
```

Then open `http://localhost:8008` (the port mapping `8008:80` is set in `docker-compose.yml`).

The image is a plain `nginx:alpine` that serves this repository as static files: `Dockerfile` copies the working tree into `/usr/share/nginx/html`, and `.dockerignore` keeps the build context small by excluding `.git`, `.github`, `data/`, `docs/`, `scripts/`, `skills/`, `workers/`, Markdown files, `geojson/demo.html` and the README demo images (`assets/hero_demo_*.webp`, `assets/preview_*.webp`) — the site does not need any of them at runtime.

To use another port, change the `ports` mapping in `docker-compose.yml` (e.g. `"9000:80"`) and run `docker compose up -d` again.

After pulling upstream changes, rebuild with `docker compose up -d --build`. Without Compose: `docker build -t jiangshan-map:latest .` then `docker run -d -p 8008:80 --name jiangshan-map jiangshan-map:latest`.

Note: the image is built locally; it is not published to any registry.

---

## GeoJSON Export (for Leaflet / MapLibre / QGIS)

The app ships its geometry as compact topology-deduplicated VLQ bundles. To use the vector layers in other projects, generate standard RFC 7946 GeoJSON (EPSG:4326, lon/lat) locally; the output goes to `geojson/` and is not committed. The export covers 403 BCE to 1948; later years and the modern province layer are not included. The prefecture layer (郡 / 州 / 府) is left out by default because it derives from CHGIS, whose terms forbid redistribution; add `--with-prefectures` to include it for local academic, non-commercial use, and do not publish the result.

```bash
node scripts/export_geojson.js            # or: node scripts/export_geojson.js <outDir>
node scripts/export_geojson.js --with-prefectures   # adds the CHGIS-derived prefecture layer (local academic use only)
```

- `snapshots/<id>.geojson` — one file per territorial phase; each feature has a `bbox` and `layer` (`polity` / `region`, plus `prefecture` with `--with-prefectures`), `title`, `title_en`, `category`, `tint`, `anchor`.
- `index.json` — every dynasty's phases with `from` / `to` years (negative = BCE, no year 0) and the matching snapshot file.
- `corridors.geojson` (walls, canals, roads, sea routes), `settlements.geojson`, `milestones.geojson`, `neighbors.geojson`, and `modern/` (rivers, lakes, hydro labels; `appear` / `vanish` give the years historical river courses and lakes are shown).

To look up a point without loading every phase, use [`geojson/jiangshan-locate.js`](geojson/jiangshan-locate.js): it loads `index.json` plus only the snapshot covering the year, then runs a bbox-filtered point-in-polygon test.

```js
const atlas = JiangshanLocate.create(); // or create({ base: '<url of geojson/>' })
const hit = await atlas.locate(118.78, 32.06, 1415); // lon, lat, year
hit.polity.properties.title;     // 明
hit.region.properties.title;     // 南直隶
hit.prefecture;                  // null unless exported with --with-prefectures (then 应天府)
```

After exporting, serve the repository (`python3 -m http.server 8000`) and open `http://localhost:8000/geojson/demo.html` for a Leaflet example: drag the year slider, click the map, or open `demo.html?year=1415&lon=118.78&lat=32.06` to load, highlight and zoom automatically. Historical borders are schematic approximations, not surveyed boundaries. The data is GPL-3.0 except the prefecture-level boundaries; see [Data Sources & License](#data-sources--license).

---

## Data Sources & License

Code and the data created by this project are released under **GPL-3.0**. One layer is not: the prefecture-level boundaries derived from CHGIS, which stay under CHGIS's own terms.

| Layer | Source | License |
| :-- | :-- | :-- |
| Code (app, scripts, CLI, MCP server) | This project | GPL-3.0 |
| Polity outlines (`polity`) | Started from [aourednik/historical-basemaps](https://github.com/aourednik/historical-basemaps) (GPL-3.0), then redrawn by hand against historical texts | GPL-3.0 |
| First-level divisions (`region`: 刺史部 / 道 / 路 / 省 …) | Drawn by hand from historical texts; the source of early versions was not recorded | GPL-3.0 |
| **Prefecture-level boundaries** (`prefecture`: 郡 / 州 / 府, incl. Warring States and Qin commanderies) | Derived from **CHGIS V6** and the **Robert M. Hartwell China Historical GIS**, simplified to 0.01° and edited by hand | **Not GPL-3.0.** Academic, non-commercial use only; do not redistribute. See below |
| Settlements, milestones, journeys, person chronicles, place lore | Compiled by this project from historical texts | GPL-3.0 |
| Modern provinces | DataV GeoAtlas (Alibaba Cloud) | Subject to DataV GeoAtlas terms |
| Rivers, lakes, neighbouring countries | Public-domain data | Public domain |
| Terrain hillshade | Rendered by `scripts/build_terrain_tiles.py` from [AWS Terrain Tiles](https://registry.opendata.aws/terrain-tiles/) (public-domain **SRTM**, **GMTED2010**, **ETOPO1**); only shaded images at no finer than about 1 km per pixel are published | GPL-3.0 (images) |
| Guqin audio | Wikimedia Commons (*Liu Shui*, *Pingsha Luoyan*, *Yangguan Sandie*, *Zuiyu Changwan*, *Jiu Kuang*) | Public domain |

**Scholarly references (not data sources).** Boundaries are checked against historical texts and Tan Qixiang's *The Historical Atlas of China* (谭其骧主编《中国历史地图集》). No map images or data from that atlas are included in this repository.

**Prefecture-level boundaries (CHGIS).** This layer is not covered by GPL-3.0 and is shown here for non-commercial, educational use. Do not republish it from this repository; if you need prefecture boundaries, download CHGIS from its official distribution (Harvard Dataverse) under its terms. `scripts/export_geojson.js` leaves this layer out unless run with `--with-prefectures`. Cite it as: *CHGIS, Version: 6. © Fairbank Center for Chinese Studies of Harvard University and the Center for Historical Geographical Studies at Fudan University, 2016.* Provenance details: [data/atlas/README.md](data/atlas/README.md).

**Approximate boundaries.** Historical territories and administrative boundaries are schematic approximations of broad jurisdictions, not surveyed borders. Do not cite them as precise or authoritative.

**Reusing this project.** For the GPL-3.0 layers, credit **江山时序 Jiangshan Atlas** with a link to https://github.com/DeanChensj/jiangshan-map and cite the upstream sources above. Screenshots that show the prefecture layer carry the CHGIS terms as well.

**Rights holders.** If you hold rights in any material here and believe it is used improperly, please [open an issue](https://github.com/DeanChensj/jiangshan-map/issues); we will respond and remove it if needed.

**Contributing**: see [CONTRIBUTING.md](CONTRIBUTING.md) ([中文贡献指南](CONTRIBUTING_ZH.md)) for repository structure, data conventions, and validation checks.

**Report a data error**: found a wrong year, place or description? [Open a data correction issue](https://github.com/DeanChensj/jiangshan-map/issues/new?template=data-error.yml) and cite a source if you can.

Copyright © 2026 DeanChensj. Licensed under GPL-3.0 (see [LICENSE](LICENSE)), except as noted above.]]></description>
    <pubDate>Tue, 17 Nov 2026 16:30:27 +0800</pubDate>
    <dc:creator>blogger</dc:creator>
    <guid>https://dsh.lewz.cn/deanchensj-jiangshan-map</guid>
</item>
<item>
    <title>arcane</title>
    <link>https://dsh.lewz.cn/getarcaneapp-arcane</link>
    <description><![CDATA[<blockquote>
<p>🔥 本项收录自 <strong>GitHub 日榜 · 全球 第 6 名</strong>（46 stars today），榜单来源：<a href="https://rebang.today/?tab=github&amp;sub_tab=all&amp;extra_filter=date_type%3Ddaily%26chinese%3Dfalse">rebang.today</a></p>
<p>[!NOTE]<br />
The <code>main</code> branch is the v3 version of Arcane See the <a href="https://github.com/getarcaneapp/arcane/tree/release/2.x.x"><code>release/2.x.x</code></a> branch for the last 2.x release.</p>
<p>[!IMPORTANT]<br />
Feature requests have moved to <a href="https://github.com/getarcaneapp/arcane/discussions/categories/feature-requests">Discussions</a>. Open new requests and upvote existing ones there; issues are only used for Bug reports now to help maintain priority on those issues.</p>
</blockquote>
<div align="center">

  <img src="https://raw.githubusercontent.com/getarcaneapp/arcane/main/github/assets/img/arcane-full-trace-fill.svg" alt="Arcane Logo" width="500" />
  <p>Modern Docker Management, Designed for Everyone.</p>

<a title="Crowdin" target="_blank" href="https://crowdin.com/project/arcane-docker-management"><img src="https://badges.crowdin.net/arcane-docker-management/localized.svg"></a>
<a href="https://pkg.go.dev/getarcane.dev/arcane/v3"><img src="https://pkg.go.dev/badge/getarcane.dev/arcane/v3.svg" alt="Go Reference"></a>
<a href="https://github.com/getarcaneapp/arcane/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-BSD--3--Clause-blue.svg" alt="License"></a>
<a href="https://snyk.io/test/github/getarcaneapp/arcane"><img src="https://snyk.io/test/github/getarcaneapp/arcane/badge.svg" alt="Known Vulnerabilities"></a>
[![Greptile: The War on Bugs](https://www.greptile.com/badge.svg)](https://www.greptile.com/?utm_source=oss_badge&utm_medium=readme&utm_campaign=greptile_for_open_source)

<br />

<picture>
  <source media="(prefers-color-scheme: dark)" srcset=".github/assets/arcane-dash-v3-dark.jpg" />
  <source media="(prefers-color-scheme: light)" srcset=".github/assets/arcane-dash-v3-light.jpg" />
  <img width="1685" alt="Arcane v3 dashboard" src="https://raw.githubusercontent.com/getarcaneapp/arcane/main/github/assets/arcane-dash-v3-dark.jpg" />
</picture>

## Documentation

For setup instructions, configuration details, and development guides, visit the **[official documentation site](https://getarcane.app)**.

## Sponsors

This project is supported by the following amazing people:

<p align="center">
  <a href="https://github.com/sponsors/kmendell">
    <img src='https://github.com/kmendell/static/blob/main/sponsors.svg?raw=true' alt="Logos" />
  </a>
</p>

## Security & Transparency

View the Software Bill of Materials (SBOM) for Arcane at **[getarcane.app/sbom](https://getarcane.app/sbom)**.

## Translating

Help translate Arcane on Crowdin: https://crowdin.com/project/arcane-docker-management

Thank you for checking out Arcane! Your feedback and contributions are always welcome.

</div>]]></description>
    <pubDate>Tue, 17 Nov 2026 16:30:18 +0800</pubDate>
    <dc:creator>blogger</dc:creator>
    <guid>https://dsh.lewz.cn/getarcaneapp-arcane</guid>
</item>
<item>
    <title>gao</title>
    <link>https://dsh.lewz.cn/gaotianliuyun-gao</link>
    <description><![CDATA[<blockquote>
<p>🔥 本项收录自 <strong>GitHub 日榜 · 中文 第 17 名</strong>（7 stars today），榜单来源：<a href="https://rebang.today/?tab=github&amp;sub_tab=all&amp;extra_filter=date_type%3Ddaily%26chinese%3Dtrue">rebang.today</a></p>
</blockquote>
<p>FongMi影视、TVBox、猫影视配置文件。所有资源均来自于各路大神无私分享，如有侵权，请联系删除。</p>
<p>所有以任何方式查看本仓库内容的人、或直接或间接使用本仓库内容的使用者都应仔细阅读此声明。本仓库管理者保留随时更改或补充此免责声明的权利。一旦使用、复制、修改了本仓库内容，则视为您已接受此免责声明。</p>
<p>本仓库管理者不能保证本仓库内容的合法性、准确性、完整性和有效性，请根据情况自行判断。本仓库内容，仅用于测试和学习研究，禁止用于商业用途，不得将其用于违反国家、地区、组织等的法律法规或相关规定的其他用途，禁止任何公众号、自媒体进行任何形式的转载、发布，请不要在中华人民共和国境内使用本仓库内容，否则后果自负。</p>
<p>本仓库内容中涉及的第三方硬件、软件等，与本仓库内容没有任何直接或间接的关系。本仓库内容仅对部署和使用过程进行客观描述，不代表支持使用任何第三方硬件、软件。使用任何第三方硬件、软件，所造成的一切后果由使用的个人或组织承担，与本仓库内容无关。</p>
<p>所有直接或间接使用本仓库内容的个人和组织，应 24 小时内完成学习和研究，并及时删除本仓库内容。如对本仓库内容的功能有需求，应自行开发相关功能。所有基于本仓库内容的源代码，进行的任何修改，为其他个人或组织的自发行为，与本仓库内容没有任何直接或间接的关系，所造成的一切后果亦与本仓库内容和本仓库管理者无关。</p>
<ol>
<li>tvbox配置：</li>
</ol>
<p>（1）0707.json  Fengmi影视多线配置接口,仅适用于Fengmi影视；</p>
<p>（2）0821.json  在饭太硬配置的基础上添加了若干优质点播源、直播线路和解析；</p>
<p>（3）0825.json  jar包来源于Panda Groove的jar，PG网盘的用法请看https://github.com/gaotianliuyun/gao/blob/gaotianliuyun-patch-1/README.md ；</p>
<p>（4）0826.json  完全来源于饭太硬的jar包和配置；</p>
<p>（5）0827.json  jar包和配置来源于fongmi；</p>
<p>（6）js.json  jar包来源于Panda Groove的go包，资源来源于道长drpy(js)仓库；</p>
<p>（7）XYQ.json  XYQ源，jar包和配置来源于香雅情；</p>
<p>（8）/cat/js/config_open.json  cat源，资源暂停更新，如果有能力的大佬愿意发电，请联系我。</p>
<ol start="2">
<li>APP推荐:</li>
</ol>
<p>（1）FongMi版本  项目地址：<a href="https://github.com/FongMi/TV">https://github.com/FongMi/TV</a> 支持直播多线路、自动换源、直播倍速，手机投屏；</p>
<p>（2）q215613905版本  项目地址：<a href="https://github.com/q215613905/TVBoxOS">https://github.com/q215613905/TVBoxOS</a> 支持直播回放；</p>
<p>（3）takagen99版本  项目地址：<a href="https://github.com/takagen99/Box">https://github.com/takagen99/Box</a> 支持直播回放，界面美观；</p>
<p>（4）猫影视   项目地址：<a href="https://github.com/catvod/CatVodOpen">https://github.com/catvod/CatVodOpen</a> 界面简洁，支持多平台。</p>
<ol start="3">
<li>TVBox各路大佬配置（排名不分先后）：</li>
</ol>
<p>（1）饭太硬：<a href="http://www.饭太硬.top/tv/">http://www.饭太硬.top/tv/</a></p>
<p>（2）okjack：<a href="https://jihulab.com/okcaptain/kko/raw/main/ok.txt">https://jihulab.com/okcaptain/kko/raw/main/ok.txt</a></p>
<p>（3）王二小放牛娃：<a href="http://tvbox.王二小放牛娃.xyz">http://tvbox.王二小放牛娃.xyz</a></p>
<p>（4）摸鱼儿：<a href="http://我不是.摸鱼儿.top">http://我不是.摸鱼儿.top</a></p>
<p>（5）霜辉月明py：<a href="https://999740.xyz/raw.githubusercontent.com/lm317379829/PyramidStore/pyramid/py.json">https://999740.xyz/raw.githubusercontent.com/lm317379829/PyramidStore/pyramid/py.json</a></p>
<p>（6）小米小爆脾气：<a href="http://xhww.fun/小米/DEMO.json">http://xhww.fun/小米/DEMO.json</a></p>
<p>（7）南风：<a href="https://agit.ai/Yoursmile7/TVBox/raw/branch/master/XC.json">https://agit.ai/Yoursmile7/TVBox/raw/branch/master/XC.json</a></p>
<p>（8）神器：<a href="https://神器每日推送.tk/pz.json">https://神器每日推送.tk/pz.json</a></p>
<p>（9）巧技：<a href="http://pandown.pro/tvbox/tvbox.json">http://pandown.pro/tvbox/tvbox.json</a></p>
<p>（10）Ray：<a href="https://100km.top/0">https://100km.top/0</a></p>
<p>（11）俊于：<a href="http://home.jundie.top:81/top98.json">http://home.jundie.top:81/top98.json</a></p>
<ol start="4">
<li>随机轮换壁纸：</li>
</ol>
<p>（1）<a href="https://jianbian.chuqiuyu.workers.dev">https://jianbian.chuqiuyu.workers.dev</a> 自制极简渐变壁纸</p>
<p>（2）<a href="http://www.kf666888.cn/api/tvbox/img">http://www.kf666888.cn/api/tvbox/img</a></p>
<p>（3）<a href="https://picsum.photos/1280/720/?blur=10">https://picsum.photos/1280/720/?blur=10</a></p>
<p>（4）<a href="http://刚刚.live/图">http://刚刚.live/图</a> </p>
<p>（5）<a href="http://饭.eu.org/深色壁纸/api.php">http://饭.eu.org/深色壁纸/api.php</a>,</p>
<p>（6）<a href="https://www.dmoe.cc/random.php">https://www.dmoe.cc/random.php</a></p>
<p>（7）<a href="https://api.btstu.cn/sjbz/zsy.php">https://api.btstu.cn/sjbz/zsy.php</a></p>
<p>（8）<a href="https://api.btstu.cn/sjbz/?lx=dongman">https://api.btstu.cn/sjbz/?lx=dongman</a></p>
<p>（9）<a href="http://api.btstu.cn/sjbz/?lx=meizi">http://api.btstu.cn/sjbz/?lx=meizi</a></p>
<p>（10）<a href="http://api.btstu.cn/sjbz/?lx=suiji">http://api.btstu.cn/sjbz/?lx=suiji</a></p>
<p>（11）<a href="https://pictures.catvod.eu.org/">https://pictures.catvod.eu.org/</a></p>
<p>（12）<a href="https://bing.img.run/rand.php">https://bing.img.run/rand.php</a></p>
<p>自用仓库，如果喜欢，请Fork自用，谢谢！</p>
<p>尽自己所能更新，不保证配置的有效性和时效性。</p>]]></description>
    <pubDate>Mon, 16 Nov 2026 16:37:23 +0800</pubDate>
    <dc:creator>blogger</dc:creator>
    <guid>https://dsh.lewz.cn/gaotianliuyun-gao</guid>
</item>
</channel>
</rss>