Is there any tools that allow for capturing screenshots of a film at set intervals? E.g. something that captures a screenshot every second and saves them to files in an ordered sequence. I'm using Windows, but I'm open for Linux suggestions as well.
Asked
Active
Viewed 1,317 times
2
-
Are you on Windows, Mac, or some flavor of Linux? – vaindil Sep 17 '13 at 13:54
-
Also what format is the film in? – Scott Chamberlain Sep 17 '13 at 14:10
-
@StevenH I'm on Windows, I fortgot to mention that. I will update the post. The format doesn't matter, I'll just convert to that which works. – user1049697 Sep 17 '13 at 15:33
-
You use the term "Screenshot". Are you wanting to capture the whole screen of the computer the video is playing on or are you wanting just frames of the video? – Scott Chamberlain Sep 17 '13 at 16:28
-
@ScottChamberlain Preferably the frames of the video. – user1049697 Sep 17 '13 at 19:19
2 Answers
4
This can easily be done via ffmpeg, the documentation describes the process
For extracting images from a video:
ffmpeg -i foo.avi -r 1 -s WxH -f image2 foo-%03d.jpegThis will extract one video frame per second from the video and will output them in files named
foo-001.jpeg,foo-002.jpeg, etc. Images will be rescaled to fit the new WxH values.If you want to extract just a limited number of frames, you can use the above command in combination with the -vframes or -t option, or in combination with -ss to start extracting from a certain point in time.
Scott Chamberlain
- 30,694
- 7
- 96
- 109
-
Thank you! That was exactly what I was looking for. And a quick tip to everyone: don't attempt to run ffmpeg with PowerShell. Use cmd and save yourself a lot of hassle. – user1049697 Sep 18 '13 at 08:17