FFMPEG: extract images from video with fixed interval, first few frames messed up -
i wanted extract frames video fixed interval, used command lines like: ffmpeg.exe -i input.mp4 -r 5 results\%d.jpg` however, interval between first few frames different of rest. for example, if both ffmpeg.exe -i input.mp4 -r 25 -t 5 test\%d.jpg , ffmpeg.exe -i input.mp4 -r 5 -t 5 test2\%d.jpg (for fps 25 video), expect results in test2 subsequence of results in test interval 5. got are: screenshot of results from thumbnails, obvious images 112~125 in test not appear in test2 . close inspection reveals correspondence between 2 set of results follows: test | test2 1&2 | 1&2 (those 2 frames identical) 3 | 3 4 | 4 9 | 5 14 | 6 19 | 7 ... | ... 104 | 24 109 | 25 (actually, when comparing last frames, realized results in test had mosaic. fixed adding option -q:v 1 .) as can seen, first few frames test2 have interval 1, instead of expected value 5. what reason behavior, , how fix it? in case want see ffmpeg output...