I did kindof the same thing... I wanted a timelapse created about 5 times a day, but not 5 different movies... So, I posted a image to a folder (I do one every 20 seconds as I am looking for nice fast cloud movement) and then I made a windows Batch file with the following code. I run the batch file right before I run ffmpeg to create the movie. (I actually have these set as windows Scheduled tasks, so at 7,9,12,3,6,and 9 a movie is created and uploaded automatically to my webpage for weather.
I set the images to be named "SkyCam%h%m%s" so the order of the name is also a proper order of the files.
The cd at the beginning just points to the folder that I have the pictures from BI post to. The code is smart enough to know if it already renamed the files. I had to rename them as ffmpeg needs a linear number system in the name to properly be able to know the order of the images... it has to be 1,2,3, not 3,5,7.
Code:
cd /D D:\Blue Iris\SkyCamPics
@echo off
setlocal enabledelayedexpansion
set "index=0000"
for /f "delims=" %%a in ('dir /a-d /b *.jpg^|findstr /rxc:"......[0-9][0-9][0-9][0-9]\.jpg"') do (
set "name=%%~na"
if "!name:~-4!" gtr "!index!" set "index=!name:~-4!"
)
set /a i=1%index%
for /f "delims=" %%a in ('dir /a-d /b *.jpg^|findstr /rxvc:"......[0-9][0-9][0-9][0-9]\.jpg"') do (
set /a i+=1
set "name=%%~na"
ren "%%~a" "!name:~,6!!i:~-4!%%~xa"
)
exit
Once the images are renamed I then had another batch file that would have ffmpeg (free software) that creates the mp4
Code:
cd /D D:\Blue Iris\SkyCamPics
ffmpeg -i SkyCam%%04d.JPG -vcodec libx264 -b:v 1800k SkyCamToday.mp4 -y
There is a lot of information on the web on how to do the command line, and I would be happy to assist you if you need it.
This way you can make a new movie that will take you from your first image of the season to the latest whenever you want a new movie!
Cheers!
If you are interested in seeing the timelapses I am creating, just go to
Old Pump Weather