pageauc / pi-timolo

Raspberry PI-TIMOLO ( PI-TImelapse, MOtion, LOwLight ) uses RPI picamera and OpenCV for Remote Headless Security Monitoring using Motion Tracking, Rclone Auto Sync files with remote storage services. Auto Twilight Transitions and Low Light Camera Settings. Panoramic images using PanTiltHat and More. This project is featured on GitHub Awesome software.
MIT License
548 stars 101 forks source link

feature-request: timelapse-movie, archive images #36

Closed ozett closed 7 years ago

ozett commented 7 years ago

hi, i made a movie from the timelapse-images. fantastic. 🛩 as i thought of now let the rasperry make a daily movie from timelapse-images, so i could makemovie.sh run from cron (like the wiki shows).

did you consider to delete timelapse-images after finishing the movie?

like in the convis.sh script the deletion of the original .h264 after convertion to mp4? or move all the daily timelapse-images after making the movie to an daily/montly archive-folder?

for me this would be a nice feature. so i could let cron make a daily timelapse movie and the script renames the folder to an daily archive, or moves the images there into.

what do you think ❔

pageauc commented 7 years ago

I will look at making it an option that can be turned on or off. I do not like to arbitrarily delete user data since it can cause problems. I have a timelapse setup that runs all year long and saves files to an older attached ext USB 1TB Hard drive formatted ext4. This means space is not a problem and the RPI SD card does not get overused. The makemovie.sh script was done pretty quickly when Jessie eliminated ffmpg and replaced with avconv. avconv needs files named consecutively and that is why I create a temporary working folder with links to the images. This avoids the encoding stopping prematurely when an image in the source folder is deleted and stops the encoding at that point. Basically the links create a number sequence even though the original source folder may have some files deleted. Normally I would delete very small size files since they may be very black or very white. This setup allows for successfully encoding everything correctly.

I use filezilla a lot to transfer files to a PC or NAS. It works very well

Hope this explains the program design

Claude Pageau

ozett commented 7 years ago

wonderful. thanks for that. i wait for the option 😃 , and i appreciate your comments. 🥇

regards, ozett

pageauc commented 7 years ago

release 3.0 now includes option to delete source files (see caution in code comments)

pageauc commented 7 years ago

makevideo.sh now replaces makemovie.sh and makedailymovie.sh For more details see issue https://github.com/pageauc/pi-timolo/issues/39

ozett commented 7 years ago

should'nt the deleten of the original timelapse-images also reset the image-counter? it counts further with the last number, but the images are deleted. it could start over with fresh numbering?

or maybe consider a numbering scheme like YEARMONTHDAYTIME, ie. 201701110515, 2017-01-11-0515

pageauc commented 7 years ago

In config.py you can set motionNumMax = 0. This will make numbering continuous forever and not overwrite after a specific count. You have to be careful with this option since it can fill up disk space so you would have to use an attached hard drive or move files to a network share with more disk capacity

Also you can set motionNumOn = False and the filesnames will be displayed by date and time so you can tell by the video file name when it was recorded. Give it a try.

Claude ...

ozett commented 7 years ago

helpful hint, i looked this up afterwards and will give it a try.. thanks for pointing me in the right direction ... 🏅

pi-timolo3