Closed morrowwm closed 7 months ago
Traceback (most recent call last):ll2/motions/2024-01-17 05_11_48-2024-01-17 05_11_58.mp4: 4.13 / 10
Your video has only 10 seconds, if you set the end time to more than that it will not work.
Large recordings work without issues, even multiple hours segments.
What you might be also encountering is sometimes the script fails to download the last video. Try it with more than 1 recording and make sure the original script works before modifications.
You also probably want
if int(recording[key]["endTime"]) - int(recording[key]["startTime"]) > 40:
instead of what you have now.
Thank you for the suggestion. It seems to be working. I'll run for a day to get more motion files.
I'm working on a script to integrate motion detection videos into a timelapse video of the entire day. If the motion video is too long, I only want the first few seconds.
I tried a modification to experiments/DownloadRecordings.py (attached) download_partial_motions.py.txt
It forces the end time of the video:
This is giving an error from the asyncio loop:
I think this is happening because this idea is too brutal.
Could you suggest a clean way to stop the playback at a clean point?