This shows you the differences between two versions of the page.
| scripts:media:create_timelapse_videos_from_zoneminder [2026-06-18 08:40] – created Tony | scripts:media:create_timelapse_videos_from_zoneminder [2026-06-18 08:41] (current) – Tony | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| So, I want a recap of just the high res videos. | So, I want a recap of just the high res videos. | ||
| - | I used to do this with ffmpeg, with two back to back rounds. First, to resize and put a timeline on top of the videos as well as overlay text with the event name, then second, to concat and re-encode. | + | I used to do this with ffmpeg, with two back to back rounds. First, to do the timelapse speed up, put a timeline on top of the videos as well as overlay text with the event name, then second, to concat and re-encode. |
| This was absurdly slow, so I wanted to do it in one pass. | This was absurdly slow, so I wanted to do it in one pass. | ||
| Line 14: | Line 14: | ||
| Then, I kick this off in a cron job. | Then, I kick this off in a cron job. | ||
| + | |||
| + | The thing that gets the speedup is the timewarp, which I found from digging into how the Kdenlive speed on clips works since it worked well. \\ | ||
| + | 30:1 at 30 fps means each second becomes 1 frame | ||
| NOTE: This is terribly messy code, and was written over 5 years ago. It's messy, building up the CLI tags then running it, but it has also worked every night for just about 2000 days. | NOTE: This is terribly messy code, and was written over 5 years ago. It's messy, building up the CLI tags then running it, but it has also worked every night for just about 2000 days. | ||