Skip to content

Commit

Permalink
Handle case where camera name ends in number (#15296)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 authored Dec 1, 2024
1 parent a1fa9de commit c95bc9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frigate/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def start_camera_capture_processes(self) -> None:
# 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}_{i}", frame_size)

capture_process = util.Process(
target=capture_camera,
Expand Down
2 changes: 1 addition & 1 deletion frigate/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_index}"
frame_buffer = frame_manager.write(frame_name)
try:
frame_buffer[:] = ffmpeg_process.stdout.read(frame_size)
Expand Down

0 comments on commit c95bc9f

Please sign in to comment.