You can do it via ffmpeg.  I have a Reolink which ftp's the image every 15 
seconds and at midnight I automatically create a movie.  This is the script 
I use.

#!/bin/bash

#Set Date
FDATE=$(date +%m%d%Y)
YEAR=$(date +%Y)
MONTH=$(date +%m)
DAY=$(date +%d)

sleep 120

#Rename Files, needed for ffmpeg
cd /volume1/Camera/incoming/$YEAR/$MONTH/$DAY
ls  *.jpg | cat -n | while read n f; do mv "$f" "$(printf webcam_%04d.jpg 
$n)"; done

#Create Movies`
ffmpeg -framerate 30 -i webcam_%04d.jpg -codec copy webcam$FDATE.mkv

mv *.mkv /volume1/Camera/movies

#Cleanup old videos and pictures
/bin/find /volume1/Camera/movies/ -mtime +30 -name '*.*' -exec rm -f {} \;
/bin/find /volume1/Camera/incoming/$YEAR/* -mtime +7 -exec rm {} \;



On Wednesday, October 14, 2020 at 12:50:35 AM UTC-4 [email protected] wrote:

> I did it quite a few years ago. I used Reolink cameras, (available on 
> Amazon), ftp images every minute and a ffmpeg-convert script that rebuilds 
> though a cron job (all on Ubuntu). Kinda mention some of it here: 
> https://reolink.com/users/trebacz/replies/ Happy to share, but there may 
> be better ways to do it today. BlueIris comes to mind - but at the time I 
> rolled my own solution...
>
> On Tuesday, October 13, 2020 at 9:21:33 PM UTC-7 vince wrote:
>
>> What did you do for webcams and how did you generate the timelapse ?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/8ec3dad6-91a1-4798-a58c-8b633477a569n%40googlegroups.com.

Reply via email to