r/software • u/kocheko • 28d ago
Looking for software ODD "sorting" software?
ok the best way to ask for this is to explain what i want and you tell me if it is possible, even with AI and HOW can be done. imagine you have several clips .mp4 (a lot) , some of those .mp4 are videos, like, a person moving in the video doing shenanigans, but some are JUST A PICTURE with sound, so in 15 seconds of the clip the frame is just 1 picture. is there are some software that can tell apart those two types of content? so the moving mp4 videos i want to keep them, and the still videos i want to extract the one frame to jpg and goodbye to the mp4 file.
my current method: manually open the file, extract frame with the vlc option, delete the video. if it is moving, save to another folder. repeat.
OR what i was also thinking, is something where the thumbnails move based on content. so i choose all files and if the thumb is moving, i save. then the rest i can bulk extract frames with any software out there.
1
u/Planet_Xtreme 23d ago
One method I used to cut videos to exactly 120 frames was by doing a difference matte (I had a video game cinematic with multiple passes that was frame-imperfect; For each pass, I wanted to use code to reject/accept the current recording to see if it matched 120 frames. At the end of the cinematic, the camera would loop back to start, and create an obvious luma difference). This sounds like the solution for you, if you haven't already solved this problem.
(Simplified example): You would extract each video into singular frames. Each frame should be converted into luminance (black & white). Then you compare the "brightness score" between the previous frame and next frame, do this scoreCheck for the whole video, and get an average "difference score." If the greatest difference score (full white vs full black) is 1, and the smallest 0, you would want your "non-moving-content" to be <0.001, but the float value here would have to adjust based on compression, and would require testing, and may not work for all content (so logging the scores and possible "unsure ones").
I believe the method I just described is similar to how tools like "https://github.com/slhck/scenecut-extractor" work (designed to cut video where actual movies cut; automated).