Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: