计算/检测视频中的丢帧?

发布于 2024-11-06 08:41:18 字数 321 浏览 2 评论 0原文

我有两个视频文件,如果可能的话,我希望它们具有近乎完美的同步。问题是,人们似乎疯狂地丢帧。录制视频的电脑不是很好,所以我认为这是主要原因!

我想知道:是否有任何软件、脚本或...其他任何东西...可以用来计算出视频中每一秒的镜头中有多少帧?我想检查两个视频是否都丢帧。对于输出,我希望得到类似的结果:

第二个| 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 技术交流群。

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

发布评论

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

评论(1

知足的幸福 2024-11-13 08:41:18

首先,您需要使用 getElementById() 获取元素,并将元素的 id 作为参数传递。然后使用该对象可以获得droppedVideoFrames

var videoObj=document.getElementById("videoId");//this is id of your html video tag
var dframe=videoObj.droppedVideoFrames;
console.log("droped frame = "+dframe);

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 the droppedVideoFrames.

var videoObj=document.getElementById("videoId");//this is id of your html video tag
var dframe=videoObj.droppedVideoFrames;
console.log("droped frame = "+dframe);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文