Isaac Connor and Claude Opus 5
4619258293
feat: measure the audio level whatever AudioDetection is set to
...
Gating the measurement on AudioDetection made the graph useless for the job
it is most wanted for. AudioThreshold is a per-device number -- the floor on
one camera's mic is nothing like another's -- so it has to be measured before
it can be set, but nothing was measured until it was already set. Enabling
detection with a guessed threshold to find out what the real one should be is
backwards.
The level is now read for every monitor with decodable audio. AudioDetection
governs only whether crossing the threshold contributes a score, which is
what the setting is named for. shared_data->audio_alarm stays 0 when it is
off, so nothing downstream changes for a monitor that does not want audio
alarms.
Nothing here depends on Analysing either. The measurement is in
Monitor::Capture, which runs on whatever Analysing is set to, and frame rows
come from Event::AddFrame, which a continuously recording monitor reaches
through the RECORDING_ALWAYS path with motion detection off. So a monitor
that only records continuously still gets levels on its rows.
Since Monitor::Capture retries Open on every audio packet until it succeeds,
and that now happens for every monitor with audio rather than the handful with
detection on, AudioDetector remembers a codec it has already failed to find a
decoder for. Without it a stream ZoneMinder cannot decode logs a warning at
the audio packet rate for as long as the monitor runs. A reconnect bringing a
different codec is still tried.
The cost is one audio decode per monitor with audio, where before it was one
per monitor with detection enabled. That is small next to the video path, but
it is not nothing on a box with many cameras.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01JpiSWBmtQkR5bcgpHWY4ME
2026-09-20 18:17:44 -05:00
..
2026-07-02 20:24:50 -04:00
2026-09-07 13:16:13 +05:30
2026-07-02 20:24:50 -04:00
2026-09-11 20:13:02 -05:00
2023-04-22 13:33:18 -04:00
2026-06-03 18:00:00 -04:00
2022-07-20 12:51:13 -05:00
2024-03-29 18:42:46 -04:00
2013-12-24 11:07:27 +00:00
2026-09-05 12:23:39 -04:00
2026-08-08 11:33:29 -04:00
2026-09-20 18:17:44 -05:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2013-03-17 00:45:21 +01:00
2014-10-22 10:31:23 -04:00
2013-09-07 15:08:09 -05:00
2013-09-07 15:08:09 -05:00
2013-09-10 13:14:16 -05:00
2014-01-05 08:59:09 +02:00
2014-07-09 11:44:07 -04:00
2014-10-18 15:23:13 -05:00
2014-12-10 16:56:22 -05:00
2021-05-28 10:24:13 -04:00
2015-07-22 21:38:35 +02:00
2015-08-18 20:20:53 -05:00
2015-09-17 15:16:05 -04:00
2015-08-17 15:05:17 +02:00
2015-08-18 20:20:53 -05:00
2015-08-29 07:53:08 -05:00
2015-08-29 07:53:08 -05:00
2015-11-11 16:43:57 -05:00
2015-10-24 17:58:20 -04:00
2016-01-22 10:46:46 -06:00
2016-01-22 10:48:47 -06:00
2016-01-01 10:15:36 -06:00
2016-05-31 19:41:17 -05:00
2016-12-12 21:55:32 -05:00
2017-01-25 17:14:30 -05:00
2017-05-02 13:25:56 -05:00
2017-05-09 09:54:48 -05:00
2018-01-19 16:32:48 -05:00
2018-01-19 16:32:48 -05:00
2018-01-19 16:32:48 -05:00
2018-01-19 16:32:48 -05:00
2017-08-25 15:35:17 -04:00
2020-11-23 19:31:21 -05:00
2017-10-03 13:28:56 -07:00
2020-11-23 19:33:53 -05:00
2017-10-11 14:07:01 -04:00
2017-10-16 08:30:28 -07:00
2017-10-24 16:08:31 -07:00
2017-11-22 01:18:07 -05:00
2017-11-01 11:56:18 -04:00
2020-09-24 13:43:05 -04:00
2017-11-22 17:03:37 -08:00
2017-11-26 15:08:12 -05:00
2017-12-09 14:05:18 -05:00
2018-02-18 11:01:33 -05:00
2018-01-01 13:19:16 -05:00
2018-01-08 15:42:28 -05:00
2018-01-10 14:40:42 -05:00
2018-01-16 11:49:17 -05:00
2018-01-16 11:49:17 -05:00
2018-01-22 14:05:38 -05:00
2018-01-19 13:29:45 -05:00
2018-01-19 12:17:42 -05:00
2018-01-19 13:03:47 -05:00
2018-01-23 18:43:59 +01:00
2018-01-24 12:16:18 -05:00
2018-01-26 13:39:37 -05:00
2018-04-19 07:43:43 -05:00
2018-02-01 11:32:55 -05:00
2018-02-02 10:31:55 -05:00
2018-02-03 11:01:33 -05:00
2018-02-05 22:59:37 -05:00
2018-02-05 15:46:39 -05:00
2018-02-18 11:29:22 -05:00
2018-02-07 08:02:49 -05:00
2018-02-28 07:17:16 -08:00
2018-02-20 22:48:34 -05:00
2018-08-11 10:08:30 -04:00
2018-04-12 13:40:11 -07:00
2018-04-19 10:09:32 -04:00
2018-08-28 10:37:02 -04:00
2018-04-24 14:11:27 -04:00
2018-07-31 10:27:34 -04:00
2018-08-21 12:50:33 -04:00
2018-11-22 10:04:33 -05:00
2018-09-12 07:27:45 -05:00
2018-10-02 07:37:55 -05:00
2018-10-13 13:36:15 -05:00
2018-11-29 14:26:30 -05:00
2018-12-12 09:17:14 -05:00
2019-01-03 17:06:44 -05:00
2019-02-13 20:38:13 -05:00
2019-02-27 09:27:50 -05:00
2019-03-19 12:16:31 -04:00
2019-04-02 09:05:52 -04:00
2019-04-07 17:23:39 -04:00
2019-04-24 10:38:08 -04:00
2019-04-30 17:29:18 -04:00
2019-05-13 14:48:26 -04:00
2019-06-24 11:29:00 -04:00
2019-06-25 15:29:46 -04:00
2019-07-07 08:26:06 -04:00
2024-04-08 09:50:12 -04:00
2019-07-24 10:53:23 -04:00
2019-11-29 13:47:45 -05:00
2019-12-19 09:25:22 -05:00
2020-01-15 17:31:06 -05:00
2020-01-24 17:01:47 -05:00
2020-02-04 16:47:33 -05:00
2020-02-19 13:50:27 -05:00
2020-02-24 14:44:19 -05:00
2020-02-25 20:46:59 -05:00
2020-03-06 14:52:38 -05:00
2020-03-26 15:34:36 -04:00
2020-08-11 14:14:16 -04:00
2020-01-22 13:52:05 -05:00
2020-03-04 10:15:44 -05:00
2020-04-23 18:01:01 -04:00
2020-05-05 18:04:24 -04:00
2020-05-12 15:46:07 -04:00
2020-06-05 17:08:14 -04:00
2020-08-23 11:53:43 -04:00
2020-09-24 09:01:30 -04:00
2020-09-30 09:39:31 -04:00
2020-10-02 14:49:59 -04:00
2020-10-12 10:53:19 -04:00
2020-11-03 12:30:27 -05:00
2020-10-28 12:55:32 -04:00
2020-11-04 18:11:24 -05:00
2021-10-20 13:14:04 -04:00
2020-12-03 13:11:24 -05:00
2020-12-10 14:39:14 -05:00
2021-01-27 09:58:55 -05:00
2021-02-02 23:19:52 -05:00
2021-03-01 16:46:48 -05:00
2021-03-03 09:55:57 -05:00
2021-03-12 09:28:05 -05:00
2021-03-26 14:32:06 -04:00
2021-03-30 18:32:42 -04:00
2021-04-09 16:46:36 -04:00
2021-12-13 21:07:35 -05:00
2021-04-12 15:59:31 -04:00
2021-04-23 14:52:29 -04:00
2021-05-05 14:09:22 -04:00
2021-07-07 09:45:53 -04:00
2021-07-05 10:35:26 -04:00
2022-07-12 17:33:34 -04:00
2021-07-05 09:32:39 -04:00
2021-10-13 16:05:49 -04:00
2021-12-31 17:53:36 -05:00
2021-11-18 09:55:19 -05:00
2021-11-29 13:49:07 -05:00
2021-12-13 15:00:03 -05:00
2022-01-10 09:07:59 -05:00
2022-01-10 23:22:37 -06:00
2022-01-19 00:14:52 -06:00
2022-01-22 12:30:59 -05:00
2022-01-25 22:38:00 -06:00
2022-05-17 14:03:04 -04:00
2022-03-28 16:22:18 -04:00
2022-04-29 18:39:54 -04:00
2022-05-04 12:58:14 -04:00
2022-05-10 14:25:34 -04:00
2022-06-15 11:34:20 -04:00
2022-07-12 17:33:34 -04:00
2023-07-11 18:24:58 -04:00
2022-08-09 00:54:41 -05:00
2022-08-25 20:33:58 -04:00
2022-09-12 10:33:51 -04:00
2022-09-14 18:34:07 -04:00
2022-10-27 10:56:11 -04:00
2022-10-27 14:17:24 -04:00
2025-01-04 12:51:53 -05:00
2022-12-24 09:18:04 -05:00
2023-01-07 12:34:30 -05:00
2023-01-09 17:57:25 -07:00
2023-02-02 10:40:57 -05:00
2023-02-18 18:02:15 -05:00
2023-02-25 12:44:28 -05:00
2023-02-26 15:52:13 -05:00
2023-02-28 14:01:22 -05:00
2023-03-01 13:42:21 -05:00
2023-11-01 11:43:00 -04:00
2023-04-19 18:25:45 -04:00
2023-04-24 17:53:16 -04:00
2023-07-13 13:19:07 -04:00
2023-07-29 23:46:31 -05:00
2023-08-25 12:49:14 -04:00
2025-03-06 12:23:01 -05:00
2023-09-21 12:08:27 -04:00
2023-10-24 12:26:15 -04:00
2023-11-01 11:43:00 -04:00
2024-01-02 12:18:09 -05:00
2024-01-11 10:16:08 -05:00
2024-01-16 11:52:28 -05:00
2024-02-13 17:38:11 -05:00
2024-02-22 16:06:03 -05:00
2024-02-22 16:13:34 -05:00
2024-02-27 09:24:14 -05:00
2024-02-26 13:54:48 -05:00
2024-03-18 12:55:19 -04:00
2024-04-08 20:16:33 -04:00
2024-04-08 20:16:33 -04:00
2024-04-25 09:46:57 -04:00
2024-05-08 13:00:40 -04:00
2024-07-07 09:03:31 -04:00
2024-07-10 17:14:36 -04:00
2025-02-26 12:40:52 -05:00
2025-06-26 14:23:00 -04:00
2025-07-15 16:17:36 -04:00
2025-08-07 14:08:45 -04:00
2025-08-20 15:59:02 -04:00
2025-09-24 09:53:11 -04:00
2025-10-10 09:54:38 -04:00
2025-10-21 06:58:48 -04:00
2025-12-11 18:31:30 -05:00
2025-12-16 11:15:40 -05:00
2026-01-06 17:03:05 -05:00
2026-01-24 11:24:56 -05:00
2026-01-29 13:34:27 -05:00
2026-01-31 19:37:08 -05:00
2026-02-01 15:21:48 -05:00
2026-02-02 13:35:57 -05:00
2026-02-23 18:19:20 -05:00
2026-08-27 16:19:24 -04:00
2026-04-13 17:31:04 -04:00
2026-03-12 18:56:14 -04:00
2026-04-27 14:19:09 +03:00
2026-05-05 20:24:15 -04:00
2026-05-06 17:24:17 -04:00
2026-05-29 09:45:51 +05:30
2026-06-03 18:00:00 -04:00
2026-06-03 19:00:00 -04:00
2026-06-03 20:00:00 -04:00
2026-06-03 18:34:56 -04:00
2026-06-27 12:13:49 -04:00
2026-07-02 20:24:50 -04:00
2026-07-23 14:01:24 -04:00
2026-08-08 11:33:29 -04:00
2026-08-16 18:54:38 -04:00
2026-08-19 22:06:02 -05:00
2026-08-19 22:06:21 -05:00
2026-08-27 16:19:24 -04:00
2026-09-05 13:55:39 -04:00
2026-09-06 00:51:50 +05:30
2026-09-05 15:52:43 -04:00
2026-09-07 11:19:12 -04:00
2026-09-07 11:51:49 -04:00
2026-09-11 20:13:02 -05:00
2026-09-11 20:13:02 -05:00
2026-09-11 20:13:02 -05:00
2026-09-11 20:13:02 -05:00
2026-09-11 20:13:03 -05:00
2026-09-11 21:19:56 -04:00
2026-09-20 18:17:44 -05:00