From 78a013d63a010c548abb1d89fe83c1fb19e04a4f Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 20 Dec 2024 08:46:40 -0600 Subject: [PATCH] Add "frame" to shm frame names to avoid camera name issues (#15615) --- frigate/app.py | 2 +- frigate/video.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/app.py b/frigate/app.py index 34dcf3cd7..02955b6c9 100644 --- a/frigate/app.py +++ b/frigate/app.py @@ -437,7 +437,7 @@ class FrigateApp: # pre-create shms for i in range(shm_frame_count): frame_size = config.frame_shape_yuv[0] * config.frame_shape_yuv[1] - self.frame_manager.create(f"{config.name}_{i}", frame_size) + self.frame_manager.create(f"{config.name}_frame{i}", frame_size) capture_process = util.Process( target=capture_camera, diff --git a/frigate/video.py b/frigate/video.py index d8ff1a869..3632a87e9 100755 --- a/frigate/video.py +++ b/frigate/video.py @@ -113,7 +113,7 @@ def capture_frames( fps.value = frame_rate.eps() skipped_fps.value = skipped_eps.eps() current_frame.value = datetime.datetime.now().timestamp() - frame_name = f"{config.name}_{frame_index}" + frame_name = f"{config.name}_frame{frame_index}" frame_buffer = frame_manager.write(frame_name) try: frame_buffer[:] = ffmpeg_process.stdout.read(frame_size)