计算/检测视频中的丢帧?
我有两个视频文件,如果可能的话,我希望它们具有近乎完美的同步。问题是,人们似乎疯狂地丢帧。录制视频的电脑不是很好,所以我认为这是主要原因!
我想知道:是否有任何软件、脚本或...其他任何东西...可以用来计算出视频中每一秒的镜头中有多少帧?我想检查两个视频是否都丢帧。对于输出,我希望得到类似的结果:
第二个| 1; 2; 3
框架| 25; 21; 25
列出每秒视频片段的帧数。这里,第二个 2 只有 21 帧,而第 1 秒和第 3 秒都有 25 帧。这应该是一个以“第二”和“帧”为标题的表格,但我似乎无法正确格式化 ^^
任何指针都会非常感谢:)
I have two video files that I'd like to have near-perfect synchrony if possible. The problem is that one seems to be dropping frames like crazy. The computer that recorded the videos wasn't that great, so I assume that is the main reason!
I was wondering: is there any piece of software, script or ... anything else... that I can use to work out how many frames were present in the video for each second of footage? I'd like to check both videos in case both are dropping frames. For output, I was hoping for something like:
Second | 1; 2; 3
Frames | 25; 21; 25
With the number of frames listed for each second of video footage. Here, second 2 has only 21 frames, and seconds 1 and 3 both have 25. That should be a table with "Second" and "Frames" as headings, but I can't seem to get the formatting right ^^
Any pointers would be very much appreciated :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您需要使用
getElementById()
获取元素,并将元素的 id 作为参数传递。然后使用该对象可以获得droppedVideoFrames
。First, you need to get the element using
getElementById()
by passing id of the element as the parameter. then using that object you can get thedroppedVideoFrames
.