如何获取视频中图片变化的时间?

发布于 2024-10-07 07:09:41 字数 67 浏览 0 评论 0原文

我有一个显示幻灯片的视频。我想获取幻灯片切换到下一页的视频时间。我使用 Windows 媒体编码器来制作视频。可以用吗?

I have a video showing a power point slide. I want to get the time of video that the slide change to next page. I use Windows media encoder to make video. Can it be used?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

路弥 2024-10-14 07:09:41

您可以使用帧相似性度量。
最简单的是 SSD——平方差之和。对于每 2 个连续帧,计算像素间差异,对其求平方并对所有像素求和。
如果对于特定的连续帧对,结果突然跳过某个阈值,则意味着帧不同,并且可能存在幻灯片更改。
视频的压缩将影响阈值(更多压缩=更多压缩伪影=帧之间更大差异=>可接受差异的更高阈值)。

You can use a frame similarity measure.
The simplest would be the SSD - Sum of Square Differences. For each 2 consecutive frame calculate the pixel-pixel difference, square it and sum over all the pixels.
If for a particular consecutive frame pair the result suddenly jumps over some threshold, it means that the frames are different, and there was probably a slide change.
The compression of the video will affect the threshold value (more compression = more compression artifacts = larger differences between the frames => higher threshold for acceptable difference).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文