News for hackers. Stuff that matters.
Re:Show HN: myphotos.site – Google photos to a website in 60... by mceachen on Thursday November 28, 2024 @02:42PM (#42268043)
Thanks to ChatGPT (but not validated), here’s an ffmpeg one-liner that may segment based on large-scene-differences:

ffmpeg -i input.mp4 -vf "select='gt(scene,0.4)',showinfo" -reset_timestamps 1 -vsync vfr -f segment output%03d.mp4

(Both Claude and ChatGPT are excellent at cooking up ffmpeg scripts, but sometimes you need to ask both, or reword the prompt a bit to get something that works)

There are no comments on this comment yet.