Commit Graph
7019 Commits
Author SHA1 Message Date
Isaac Connor bf876aa9ca Merge pull request #5663 from AJ0070/event-start-frame-skip
fix: start motion events early enough to include alarm frames when frames are skipped
2026-11-14 23:57:58 -05:00
Isaac Connor a03b9cc2a0 Merge pull request #5669 from AJ0070/hwaccel-profile-check
fix: let FFmpeg reject hardware decoding of unsupported profiles
2026-11-14 23:57:20 -05:00
Isaac Connor 84bbe0dd49 Merge pull request #5668 from AJ0070/hwaccel-format-fallback
fix: fall back to software decoding when the hardware surface format isn't offered
2026-11-14 23:57:02 -05:00
Isaac Connor f3a7cf50b5 Merge pull request #5675 from AJ0070/db-log-queue-cap
fix: cap queued database log rows so a log flood can't grow memory without bound
2026-11-14 23:52:26 -05:00
Isaac Connor e3f1501298 Merge pull request #5671 from AJ0070/zma-create-events-stateid
fix: set StateId on events created by zma --create-events
2026-11-14 23:51:33 -05:00
Isaac Connor a80850bd06 Merge pull request #5929 from AJ0070/encoder-form-fixes
fix: monitor form encoder list, codec filter and API webm container
2026-11-14 23:49:40 -05:00
Isaac Connor 27d8476505 Merge pull request #5695 from AJ0070/zone-zero-area
fix: avoid dividing by a zero zone area when scoring
2026-11-14 23:37:44 -05:00
Jash d5ca347a20 fix: avoid dividing by a zero zone area when scoring fixes #5694 2026-11-15 09:47:15 +05:30
Jash d7fda32484 fix: add the av1_nvenc and vp9_qsv encoders the monitor form offers to the encoder table refs #5928 2026-11-15 09:47:15 +05:30
Isaac Connor 8960619501 Merge branch 'master' into zone-filter-disable 2026-11-14 21:07:35 -05:00
Isaac Connor 4fd9ed3f90 Merge pull request #5699 from AJ0070/inactive-zone-edge
fix: blank the whole raster of inactive zones, edges included
2026-11-14 19:57:36 -05:00
Isaac Connor eb99961c09 Merge pull request #5747 from AJ0070/ms-server-null-columns
fix: handle NULL Servers columns and an empty hostname in zmc
2026-11-14 19:23:53 -05:00
Isaac Connor 83b72dd677 Merge pull request #5602 from AJ0070/5601-blend-luma-only
perf: blend only the Y plane of planar YUV reference images
2026-11-14 19:23:33 -05:00
Isaac Connor 410fc877a7 Merge pull request #5510 from AJ0070/5490-y-image-from-image
fix: build the y image from the packet image when there is no planar YUV frame
2026-11-14 19:21:24 -05:00
Isaac Connor 999a6e5acd Merge pull request #5773 from AJ0070/tz-mktime-isdst
fix: let mktime work out DST when parsing wall clock times
2026-11-14 18:55:02 -05:00
Isaac Connor 754b04cb03 Merge pull request #5805 from AJ0070/image-transform-fixes
fix: image deinterlacing on odd heights, swscale input size and overlay offset checks
2026-11-14 18:47:38 -05:00
Isaac Connor 90307a8bcc Merge pull request #5923 from AJ0070/enc-option-parsing
fix: encoder parameter parsing and numeric options in zmc
2026-11-14 18:04:29 -05:00
Isaac ConnorandClaude Opus 5.5 81ab657a19 fix: copy the blend result into a buffer Image::Blend does not own
Unless the buffer was held, Blend swapped the image's buffer with its
blend buffer. The blend buffer is freed with zm_freealigned(), so swapping
in a caller's buffer, or one from malloc or new, freed memory the image
did not own or freed it the wrong way: a double free for an image over a
caller's buffer. The swap also left allocation describing the old buffer.

Swap only a buffer from AllocBuffer() and swap the allocation sizes with
it; copy the result back otherwise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 16:15:24 -05:00
Isaac ConnorandClaude Opus 5.5 187115c68e fix: blend whole helper blocks in Image::Blend
Blend handed the image's whole buffer to the fast blend helper, which
consumes 16 bytes per iteration (unrolled C, SSE2) or 64 (NEON). The SIMD
variants wrap their loop counter past zero on a count that is not a
multiple of their block and run off the end of memory; the C one overruns
by up to a block. size is only a multiple of 32 for an aligned image, so an
odd number of rows at a width such as 1366 crashed NEON, and an image over a
caller's unaligned buffer could crash SSE2 too.

Blend the 64-byte bulk in place and the remainder through zero-padded
64-byte copies, so every byte still goes through the selected helper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 16:15:23 -05:00
Isaac Connor 22926c1139 Merge pull request #5525 from AJ0070/5524-evplay-yuv-jpeg
perf: keep decoded 4:2:0 frames as YUV when streaming an MP4 event as JPEGs
2026-11-14 15:43:23 -05:00
Isaac ConnorandClaude Opus 5.5 f18fbca2ac test: skip the kill() sender test on macOS refs #5215
macOS delivers a SIGSEGV sent with kill() with si_code SEGV_ACCERR and si_pid
and si_uid 0, so the die handler cannot tell it from a fault and reports it as
one. The test's expectation holds on Linux only; it failed the macOS CI job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 15:36:58 -05:00
Isaac ConnorandClaude Opus 5.5 f3216bb9f6 fix: size Image::Delta blocks for the NEON delta helpers
The NEON delta helpers consume 64 gray8 pixels or 16 rgb32 pixels per
iteration, not the 16 and 4 of the SSE2 and unrolled C ones that Delta split
each row by. A row whose bulk was a multiple of 16 but not 64 (gray8), or of 4
but not 16 (rgb32), wrapped the NEON loop counter past zero and ran off the end
of memory, so zmc crashed on ARM with motion detection at widths such as 1366.
On macOS arm64 the Delta tests die with SIGBUS when they are the first to
initialise Image, which made the macOS CI job fail depending on test order.

Split rows into 64- and 16-pixel blocks, which every variant divides, and leave
the rest to the scalar tail. Add an rgb32 case whose bulk runs one NEON block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 15:36:58 -05:00
Jash da433b3c0a fix: treat a filter width or height below 1 as no filtering fixes #5696 2026-11-14 23:49:55 +05:30
Jash 9e73db7616 fix: blank the whole raster of inactive zones, edges included fixes #5698 2026-11-14 23:49:54 +05:30
Jash 38b095c23e fix: name the container and codec when the output container can't hold the video refs #5922 2026-11-14 23:20:32 +05:30
Jash f7cb398809 fix: don't abort zmc on a non-numeric bitrate, gop_size or reorder_queue_size encoder option refs #5922 2026-11-14 23:20:32 +05:30
Jash 405272c6be fix: skip encoder parameter entries without a value instead of dropping the next option refs #5922 2026-11-14 23:20:32 +05:30
Isaac Connor c091403743 Merge pull request #5821 from AJ0070/stream-manager-fixes
fix: go2rtc stream check, Janus id parsing and refresh, missing RTSP user, JSON escaping
2026-11-14 11:59:58 -05:00
Jash 2dfcd5b8e2 fix: treat NaN float audio samples as silence instead of full scale refs #5892 2026-11-14 22:09:12 +05:30
Jash 13ef01b73a fix: clear the audio level when the audio stream stops while video continues refs #5892 2026-11-14 22:09:12 +05:30
Jash e5d8b000e7 fix: close the audio detector on reconnect so a changed audio codec is not decoded with the old decoder refs #5892 2026-11-14 22:09:12 +05:30
Isaac Connor 434635865f Merge pull request #5891 from AJ0070/audio-detection-fixes
fix: audio detection levels for u8, s32 and double samples, and turning it off
2026-11-14 11:30:05 -05:00
Jash b7f69bd7ad fix: measure audio decoded as u8, s32 or double instead of reporting level 0 refs #5890 2026-11-14 21:53:48 +05:30
Jash dbf9093149 fix: start new rtsp clients at a parameter set or IDR packet refs #5886 2026-11-14 21:52:57 +05:30
Jash 9ac66f7d1d fix: set the RTP marker bit only on the last packet of an access unit refs #5886 2026-11-14 21:52:57 +05:30
Jash eec823a705 fix: keep rtsp timestamps rising across a camera reconnect or zmc restart refs #5886 2026-11-14 21:52:57 +05:30
Jash c14f77b309 fix: unmap the old shared memory when zm_rtsp_server reconnects to a restarted zmc refs #5886 2026-11-14 21:52:57 +05:30
Jash 697aa897be fix: stop zm_rtsp_server promptly on SIGTERM and SIGHUP refs #5886 2026-11-14 21:52:57 +05:30
Isaac Connor e7da5f4858 Merge pull request #5701 from AJ0070/zone-alarm-box
fix: compute the alarm box for alarmed and filtered pixel zones
2026-11-14 11:18:55 -05:00
Jash bd5d2d76af fix: set the FU end bit only on the last RTSP fragment of a NAL refs #5884 2026-11-14 20:23:11 +05:30
Jash f9a322c917 fix: JSON-escape the monitor name and camera URLs sent to RTSP2Web and Janus refs #5820 2026-11-14 18:49:31 +05:30
Jash 09a9acb151 fix: tolerate a missing RTSP user when building the Go2RTC and Janus restream URL refs #5820 2026-11-14 18:49:31 +05:30
Jash 996fb98a1f fix: stop adding a Janus restream mountpoint twice when its auth is refreshed refs #5820 2026-11-14 18:49:31 +05:30
Jash 4a5419cfc2 fix: read the whole Janus session and handle id instead of a fixed 16 characters refs #5820 2026-11-14 18:49:31 +05:30
Jash ec533bf54a fix: match go2rtc's escaped stream URL when checking a registered stream refs #5820 2026-11-14 18:49:31 +05:30
Jash 1fe830d4e3 fix: invert the size checks in Overlay at an offset refs #5804 2026-11-14 18:40:52 +05:30
Jash 5be8bfceaf fix: refuse an undersized input buffer in SWScale::Convert instead of warning and reading past it refs #5804 2026-11-14 18:40:51 +05:30
Jash 2bc462b20c fix: stop Deinterlace_4Field reading and writing a row past odd height images refs #5804 2026-11-14 18:40:51 +05:30
Jash 043ce8a56b fix: skip the out of bounds read in Deinterlace_Linear for one row images and keep the last row of odd heights refs #5804 2026-11-14 18:40:51 +05:30
Jash 358f0199ec fix: read daylight saving wall clock times correctly in zms datetime and StringToSystemTimePoint refs #5772 2026-11-14 18:13:39 +05:30