Many Ludum Dare participants like to create time-lapse videos that show the actual development of their entries. I thought that was a cool idea, and decided to use Chronolapse to capture and encode my video. Chronolapse is stable, has a simple interface, and even has some advanced features like dual monitor support and picture-in-picture. But the software lacks in one major area: video quality.
While recording, Chronolapse takes periodic frame captures from your screen or webcam. Then, when you’re done, you can use the tool to compile the image sequence into a video that can be uploaded to YouTube, for example. Unfortunately, there are no settings to tweak the video output quality, and the quality is pretty bad.
The simplest solution I could find is to download a separate tool called ffmpeg to do the encoding.
Here’s how to do it:
1) Use Chronolapse to create a sequence of images in a folder somewhere.
2) Download ffmpeg and extract it.
3) Find the encoder executable ffmpeg.exe in the bin folder.
4) Rename all the images in your time-lapse sequence to a format that ffmpeg can recognize:
- Open the folder with your image sequence in Windows Explorer. Make sure there are no other files in the folder.
- Single-click on the first file in the sequence to select it. Note: This step is very important and affects sort order.
- Select all files with Ctrl + A.
- Press F2 and type img, and then press Enter. The files will be renamed sequentially.
5) Place a copy of ffmpeg.exe in the same folder as your image sequence, or ensure that the executable is in the Windows path.
6) Open a command window where the image sequence is, and enter the command:
ffmpeg -r 20 -i “img (%d).png” -q:v 1 -b:v 1500k timelapse.mp4
7) After processing for some time, you should have a new video file of much higher quality than what Chronolapse produces. Unless you have the correct codecs installed, this will not play. If you’re having any problems, try the VLC Media Player.
To see an example of higher video quality in action, see the time-lapse video link on my entry page.