News for hackers. Stuff that matters.
Re:Now I Can Just Print That Video by patates on Monday December 04, 2023 @09:28AM (#38517658)
Not the post author but I tried this with ffmpeg and failed. Do you (does anyone) want to share some pointers?
Re:Now I Can Just Print That Video by markolson_ on Monday December 04, 2023 @10:35AM (#38518532)
I used something like this a few years ago in a project sort of similar to this one. There's a bunch of parsing and processing to do with that, and the "0.3" value is ... fiddly, but it worked pretty well:

    ffprobe -show_frames -of compact=p=0 -f lavfi "movie=THE_VIDEO_FILE,select=gt(scene\,0.3)" -pretty`
Re:Now I Can Just Print That Video by pforret on Monday December 04, 2023 @12:55PM (#38520524)
I played with that too before.

`ffmpeg -i input.mp4 -vf "select='gt(scene,0.4)'" -vsync vfr frame-%2d.jpg`

(from the repo pforret/filmpace)

For this project, I want to find an A.I. solution for finding the most 'interesting' frames. Not even sure how to measure interestingness yet, might be the presence of text, the presence of a human ...

Re:Now I Can Just Print That Video by murrain on Monday December 04, 2023 @09:47AM (#38517923)
PySceneDetect (https://www.scenedetect.com/) might be useful.