How can I extract every frame of an video with the respective timestamp?
ffmpeg -r 1 -i in.mp4 images/frame-%d.jpg
This code extracts all frames, but without timestamp. Since Windows do not allow ":" in filenames, I'll replace it for ".". I would like something like this:
frame-h.m.s.ms.random_value.jpg
frame-00.10.15.17.1.jpg
frame-00.11.16.04.2.jpg
frame-00.11.17.11.3.jpg
frame-00.11.17.22.4.jpg
frame-00.12.04.01.5.jpg
...
The reason of "random id" is to allow repeated frames without replacing them.
I have tried:
ffmpeg -r 1 -i rabbit.mp4 images/frame-%{pts\:hms}.jpg
But this doesn't work! => Could not open file : images/
I have no clue how can I do that! Can you help me? Thank you.