Files
zoneminder/scripts/ZoneMinder/lib/ZoneMinder
Isaac Connor 5e3b0e8524 fix: probe mp4 duration for events with no capture jpgs in zmrecover
recover_timestamps() left Length null for events consisting of only an
mp4 plus a snapshot.jpg, because the mp4 branch parsed ffprobe's stderr
Duration: line and produced a bogus value when the regex did not match.
Length is decimal(10,2) NOT NULL, so the recovered row failed to insert.

Add mp4_duration() which asks ffprobe for the machine-readable
format=duration, falling back to the human-readable Duration: line, and
always set Length via sprintf('%.2f', ...) defaulting to 0 on failure.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 21:45:36 -04:00
..
2023-08-27 02:00:59 +02:00
2018-09-07 16:29:59 -04:00
2018-11-06 20:37:00 -05:00
2024-03-21 10:34:54 -04:00
2022-01-27 13:42:46 -05:00
2026-01-14 09:46:31 -05:00