Making a Timelapse Video from Multiple Screenshots
- Based on information from: https://notes.theorbis.net/2010/05/creating-time-lapse-with-ffmpeg.html
- First rename all the images so they are ordered consecutively. This can be done with from within the Chronolapse 1.0.8 GUI or you can use the free program called XnViewMP. (See instructions for XnViewMP below!)
- Then use ffmpeg (free from http://ffmpeg.org/) to turn the images into a video with a command using a format like the one below:
- ffmpeg -r [framerate] -i [images] -s [resolution] -vcodec libx264 -pix_fmt yuv420p [videofilename].mp4
- An example of what it might look like for you:
- ffmpeg -r 60 -i ss%06d.png -s 1920x1080 -vcodec libx264 -pix_fmt yuv420p MyTimelapseVideo.mp4
- An explanation of each parameter:
- [framerate]: This is how many images will be shown per second. So 60fps is 60 images condensed into one second of video.
- [images]: The path to the images (if in a different directory than ffmpeg), as well as the pattern to match. The example shows ss%06d.png which means "ss" followed by 6 digits (with leading zeroes) followed by ".png" Change the 6 to however many # symbols you used while renaming files with XnViewMP (in step 5).
- [resolution]: The resolution of the images. This is probably the same as your monitor's resolution.
- [videofilename]: The filename you want the video to have when it's finished being created.
- XnViewMP Instructions:
- You can get XnViewMP for free from https://www.xnview.com/en/xnviewmp/
- We'll use XnViewMP to rename the files sequentially starting from 1, going to 2, then 3, etc. This will make them easier to use with ffmpeg.
- The important thing to keep in mind is on step 5 you need to use at least as many # symbols as you have digits in the amount of images you have.
- So for example, if you captured 15000 files you need to use at least five # symbols. It's OK to use more than you need. I usually need 5 but I just use six to be safe.
- 1. Open XnViewMP and navigate to the folder where the screenshots are kept.
- 2. Check the status bar and wait for it to get to 100% reading all the file information or whatever it's doing. This can take a very long time!
- 3. Select all images.
- 4. Tools -> Batch Rename...
- 5. Use "ss######" (or similar, but without quotes) as the Name Template. Press OK. XnViewMP may become unresponsive and appear to have locked up, but don't worry, it is working. This can take a very long time if you have a lot of images.
- 6. Files will be renamed!