-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose latest generated timelapse as "latest.mp4" #1366
Comments
Merged #1368 . This uses the "watch timelapse" view to show the latest timelapse if no ID is specified: |
Thanks Aaron this is awesome I had a look at the folder structure and there does not seem to be an easy way to implement it wihout implementing server side parsing of the folders. |
Querying the database is how that view does it. What programming language would you want to do this in? |
@aaronwmorris I hacked together a bash script that finds the last changed folder and file and combines it to one with ffmpeg. Works for now so I'll close this. |
Let me know if you want me to write something in python, it should be pretty simple |
@aaronwmorris any chance we could add an option to generate a timelapse of the last 24h and store it as yesterday.mp4? The bash script seems to be misbehaving a bit :-/ |
Would you want midnight-to-midnight or noon-to-noon? |
I would prefer noon-to-noon, but why not let the user set the time from a dropdown? Then it will not have to be picked up again if someone wants midnight-to-midnight or similar |
I just developed the mini-timelapse generator that does just that. I also just submitted a change to increase the available window for the mini-timelapse generator. If you update to the latest code, find the midpoint for the video you want to create (say like at midnight) and select a window of 12 hours before and 12 hours after, set a FPS, name, and generate. |
I cannot seem to find where you configure the mini panorama, I only find where you view them. Is it not yet in the main branch? Will it be able to run automatically in the background? |
Sorry, I meant to add this. It is in the Image viewer. The original intent of the Mini-Timelapse generator is picking an event you want to showcase, generating a video with frames before and after the event. However, with the extended time options, you could pick midnight as the image and add 12-hours before and after the event for a full 24-hour timelapse. |
Tested it now, it creates a time lapse that works somewhat, it seems when the duration in any direction goes into the next or previous day, it cuts off at 2359 (noon -> noon) Also is it a large work/any way to run this on a schedule to generate daily with a known file name? I use this outside of indi-allsky. I am ok triggering it from the terminal if reqd. |
There's nothing in the code that would limit the time to before or after noon. Ultimately, it would probably be easier to write an external script that generates a timelapse. The trouble is dealing with timestamps on the command line. Let me sit with this for a few days. |
Hi Aaron,
It is possible relatively easily to expose the latest timelapse as "latest.mp4" similar to the latest photo? I expose the photo on a separate web page and would like to add the video as well if there is an easy way for indi-allsky to put it as the name above in a folder. I use this to show the data to non-tech-savvy users whom one could not expect to be able to open it from the timelapse menu after entering user names and passwords :)
Best regards,
Henrik
The text was updated successfully, but these errors were encountered: