如何获取视频中图片变化的时间?
我有一个显示幻灯片的视频。我想获取幻灯片切换到下一页的视频时间。我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用帧相似性度量。
最简单的是 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).