1. remove all duplicated frames and export another video file. ffmpeg -i videoplayback.mp4 -vf mpdecimate,setpts=N/FRAME_RATE/TB out.mp4 2. extract all frames from exported video and save images. ffmpeg -i out.mp4 frames/out-%04d.jpg