Hi Everyone. I wanted to share a little python script I wrote for making time lapse videos with the onboard camera on the Ultimaker 3. Here is an example from a rather messy print I just did.
Get it on GitHub.
There's probably a lot of generic webcam tools for doing this already, but this one is nice because it doesn't start taking pictures until the printer begins printing, and it stops once the print is completed.
The script requires Python 3 and FFmpeg.
Usage
$ ./timelapse.py HOST DELAY OUTFILE
HOST is the IP address of your Ultimaker 3. You can find this through the menu by going to System > Network > Connection Status.
DELAY is the time between snapshots in seconds. You'll probably want to figure this out based on how long your print will take and how long you want the video to be. For example, if I want a 10 second video at 30 fps, that will be 300 frames. If the print will take five hours, then 5 hours / 300 frames = 60 seconds between frames.
OUTFILE is the name of the video file you want to make. It will be encoded using H.264 at 30 FPS. You can choose any container format you want, but I recommend either .mkv or .mp4.