开发者

Calculate / detect dropped frames in video?

开发者 https://www.devze.com 2023-03-05 07:38 出处:网络
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 craz开发者_运维知识库y. The computer that recorded the videos

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 craz开发者_运维知识库y. 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 :)


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);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号