Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

2nd Video Time Scale Variation #4

Open
Sean34831 opened this issue Oct 20, 2023 · 2 comments
Open

2nd Video Time Scale Variation #4

Sean34831 opened this issue Oct 20, 2023 · 2 comments

Comments

@Sean34831
Copy link

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
Copy link
Owner

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
Copy link

smck180 commented Jun 28, 2024

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants