After spending a couple of minutes manually removing near-duplicate frames from some timelapse footage, thinking to myself this would be an ideal task to automate, I suddenly remembered FFmpeg had just the tool for the job.
One line in the terminal finished in under 2 minutes what likely would have taken me hours to do manually:
ffmpeg -i original.mp4 -vf mpdecimate,setpts=N/FRAME_RATE/TB -c:v libx264 -crf 18 -preset veryfast -c:a copy output.mp4
Worthwhile noting that the above command sequence is also optimized to keep the resultant file size relatively small & is definitely not suitable for Hollywood-level production output.




