4 ms·
Probably want a `-vf fps=1/n` in there (where n = number of seconds) to trim the film down to a manageable number of frames. (you'd ideally do some "clever" pr
by zimpenfish 2y ago
Probably want a `-vf fps=1/n` in there (where n = number of seconds) to trim the film down to a manageable number of frames.
(you'd ideally do some "clever" processing to combine a number of frames into a single colour strip but that's obviously more faff than just a simple `ffmpeg` call...)
- paulluuk 2y agoYou could also use something like https://github.com/Breakthrough/PySceneDetect https://github.com/Breakthrough/PySceneDetect to first split the video into camera shots, and then grab a single (or average) frame per shot, leading to a cleaner result.
- zimpenfish 2y agoI believe ffmpeg also has some scene detection stuff[0] but I've never had occasion to use it. [0] e.g. https://stackoverflow.com/questions/35675529/using-ffmpeg-how-to-do-a-scene-change-detection-with-timecode https://stackoverflow.com/questions/35675529/using-ffmpeg-ho...