markszabo / tapo-c200-timelapse

This is my setup to take time-lapse videos from my balcony with a Raspberry Pi using a TP-Link Tapo C200 IP-Camera
91 stars 17 forks source link

2nd Video Time Scale Variation #4

Open Sean34831 opened 10 months ago

Sean34831 commented 10 months ago

Hi Mark, Love your work.

Im hoping to use this script to do a time lapse of a construction project we are on.

Is it possible to change the times on the 2nd produced monthly video ?

"Second one with 2 seconds each day taken at midday (10am to 2pm with default values) resulting in a 1 minute video per month with (hopefully) more or less uniform lights (no flashing between nights and days)"

I see in the make monthly vide script you have :

"for img in images[60:85]: #10am to 2pm with the default values (1 picture per 10 minutes)" but I'm not a programmer and don't understand the units of the 60:85 ? Is this Frame numbers ? I could start guessing, but i thought it might be easier to ask,

Much appreciated. Sean

markszabo commented 10 months ago

Hi Sean,

So https://github.com/markszabo/tapo-c200-timelapse/blob/master/capture.py takes a picture every minute, which results in 1440 pictures per day (going from midnight to midnight). Then the daily video creation: https://github.com/markszabo/tapo-c200-timelapse/blob/master/makevideo.py#L14 deletes all but every 10th picture. By the end of this we have 144 pictures per day (6 per hour).

The images[60:85] takes all the images between the 60th and 85th image. Since at this point we have a picture every 10 minutes, 60th picture is the one taken at 10am (60/6=10 hours, 10 hours after midnight is 10am) while the 84th is 2pm (84/6=14, 14 hours after midnight is 2pm).

I hope this helps

smck180 commented 2 months ago

Hi, i see the video on youtube off the tapo camera doing a timelapse, could someone please explain to me how i use this code and where to use it to get my camera to do this in basic terms if possible?

Thanks