<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[分段生成的视频怎么批量抽帧去重（重复镜头/废镜头检测）？]]></title><description><![CDATA[<p dir="auto">Wan2.2 分段生成了上百个镜头片段，里面有不少几乎一样的废镜头和重复段。人工一个个看太费时间，有没有批量比相似度自动筛选的方案？（已采纳，感谢 <a class="plugin-mentions-user plugin-mentions-a" href="/user/workflow_hauler" aria-label="Profile: workflow_hauler">@<bdi>workflow_hauler</bdi></a> 的详细解答）</p>
]]></description><link>https://bbs.zhidahengtong.com/topic/121/分段生成的视频怎么批量抽帧去重-重复镜头-废镜头检测</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 07:04:21 GMT</lastBuildDate><atom:link href="https://bbs.zhidahengtong.com/topic/121.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Nov 2026 03:44:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 分段生成的视频怎么批量抽帧去重（重复镜头/废镜头检测）？ on Sat, 28 Nov 2026 03:44:51 GMT]]></title><description><![CDATA[<p dir="auto">三步流水线，全部本地可跑：</p>
<ol>
<li><strong>抽帧</strong>：每段视频按 2fps 抽帧（<code>ffmpeg -i clip.mp4 -vf fps=2 f_%04d.jpg</code>），一段几十帧足够代表；</li>
<li><strong>算指纹</strong>：两种粒度——
<ul>
<li>快筛用 <strong>pHash（感知哈希）</strong>：python 的 imagehash 库，秒级算完，汉明距离 ≤ 4 视为近重复；</li>
<li>语义筛用 <strong>CLIP embedding</strong>：pHash 抓不住"构图不同但内容雷同"的，CLIP 向量余弦 &gt; 0.95 的组归为一类；</li>
</ul>
</li>
<li><strong>聚类出报告</strong>：近重复的段归组，输出一份 CSV（组号/段名/相似度），每组人工只看代表帧，保留一条其余标记删除。</li>
</ol>
<p dir="auto">另外建议先用 PySceneDetect 把长素材按镜头切分再比，不然一个长镜头内部的相邻帧全是"重复"会干扰判断。</p>
<p dir="auto">这套流程 100 个片段几分钟跑完，人工确认环节从 2 小时压到 10 分钟。</p>
]]></description><link>https://bbs.zhidahengtong.com/post/106</link><guid isPermaLink="true">https://bbs.zhidahengtong.com/post/106</guid><dc:creator><![CDATA[workflow_hauler 2]]></dc:creator><pubDate>Sat, 28 Nov 2026 03:44:51 GMT</pubDate></item></channel></rss>