Capturing Timelapses with a Raspberry Pi
(with automatic video sequence creation and YouTube upload)
While there are multiple instructions online of how to create a timelapse with a Raspberry Pi – I wanted to take take things a step further.
I wanted the process to be able to run unattended. I wanted to continuously analyze my images for exposure. I wanted to be able to automatically generate an video (MP4) file of my timelapse sequence on a regular basis. And lastly, I wanted to be able to automatically upload that video to one of my YouTube channels.
I put together a Python script with a simple two-line installer to do just that. I am using this program to monitor plant growth in my garden. However this could be used for many different use cases -- capturing the construction of a building, activity in a public area, or build-up/tear-down of event spaces.
NOTE: If you wish to use the upload to YouTube functionality, you must provision an OAuth 2.0 client ID and client secret. If you wish to have the videos be publically visible, YouTube must verify the app's usage for your channel.