[Cin] ffmpeg scene detection scripts

Andrew Randrianasulu randrianasulu at gmail.com
Thu Mar 17 23:33:19 CET 2022


I was looking for some equivalent of automatic scene  detection, and found
those scripts

https://github.com/NapoleonWils0n/ffmpeg-scripts#scene-cut

they work by re-encoding from original clip, but may be they can be
modified for using 'copy' codec over i-only videos?

$ ./scene-detect -i ~/dothack2.mpeg -t 0.2 -o cutfile.cvs

(detects two scene changes)

./scene-time -i cutfile.cvs -o cutfile

$ ./scene-cut -i ~/dothack2.mpeg -c cutfile

$ cat cutfile.cvs
00:00:00
00:00:12.36
00:00:16.896
$ cat cutfile
00:00:00,00:00:12.36
00:00:12.36,00:00:04.536
$

lowering threshold to 0.1 'detects' one more scene change, so video split
into 3 parts.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20220318/bb663c4f/attachment.htm>


More information about the Cin mailing list