ffmpeg: extracting images from video together with their frame numbers?

Viewed 1331

I'm extracting images from a (variable framerate) .avi file with

ffmpeg -i movie.avi -r 25 %05d.png

(the -roption should be equivalent to the filter -vf='fps=fps=25'), but would now like to know the frame number in the original video stream each generated image corresponds to. Is there an easy way to do that?

2 Answers
Related