FFmpeg Workflow Identifies Seams in AI-Generated Videos
The report presents a read-only workflow that uses FFmpeg’s signalstats filter to flag abrupt changes between consecutive frames and compares frames around each spike with PSNR to distinguish shot-change seams from same-shot flicker. In first-hand testing of 14 videos selected from an archive of 270 published AI videos, eight videos produced 37 spikes; all 37 were classified as shot-change seams, with no same-shot flicker detected in this sample. The thresholds must adapt to each video because YDIF baselines vary substantially. The spike method mainly detects transitions from high motion to low motion and may miss high-motion-to-high-motion seams, so a video with no spikes is not proof that it contains no seams.
The workflow can produce a timestamp list for manual review and potential clip-reuse boundaries. However, the results come from only 14 first-hand samples, and the test set did not include confirmed same-shot flicker, so the evidence supports a practical method rather than broad validation.
一条 30 秒的成片,表面上看是一个连贯的故事,实际上是六到十段三到五秒的 AI 生成片段拼出来的。拼的时候剪映也好、脚本也好,只管把段落首尾相接,接缝处两边的画面是不是同一个机位、同一刻的动作,没人校验。观众看到的是"这里好像跳了一帧",运营这边却说不清跳在哪一秒、是素材坏了还是剪辑正常。
这篇文章给出一套只读的逐帧体检办法:用 ffmpeg 的 signalstats 滤镜把每一帧与前一帧的差异量打出来,找出异常尖峰,再用前后帧的 PSNR 把尖峰分成"换镜头的接缝"和"同镜头的闪烁"两类。全部结论来自对本机 270 条已发布成片中 14 条样本的一手实测,文末附踩到的两个判据坑。
指标:YDIF 是什么
signalstats 是 ffmpeg 自带的逐帧统计滤镜,其中 YDIF 字段的含义是:当前帧与前一帧在亮度平面上的平均绝对差。画面完全静止时接近 0,剧烈运动时到十几,整个画面构图突变(换镜头)时会冲到几十。