I wrote this to upload from an Amcrest Doorbell and Ubiquiti Unifi camera (Flex) to AWS S3 for timelapse purposes.
I have a Raspberry Pi Zero W running it, uploads a frame as JPG every minute.
Hope it can help someone else. Took a bit of noodling to get ffmpeg to get a clean image, defaults to...