I have to wonder if there's a faster way than literally decoding the video and analyzing the decoded frames, if that's how you're doing it with ffmpeg. Video compression revolves around motion estimation so maybe it's possible to just scan the file and find frames where the motion vectors (the data saying how the stuff in the picture is changing at a given frame) suddenly get larger. I assume this is for something like a security video that usually shows a static picture, and OP wants to flag when someone enters the room. In that case there will be almost no motion most of the time, and suddenly there will be some.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: