Skip to content

NVR with realtime local object detection for IP cameras

Fix preview fetch (#16741)

Nicolas Mowen844ee089d838
diff --git a/frigate/record/export.py b/frigate/record/export.py
index f05fae6aab..0e64021b4c 100644
--- a/frigate/record/export.py
+++ b/frigate/record/export.py
@@ -363,10 +363,13 @@ class RecordingExporter(threading.Thread):
}
).execute()
- if self.playback_source == PlaybackSourceEnum.recordings:
- ffmpeg_cmd, playlist_lines = self.get_record_export_command(video_path)
- else:
- ffmpeg_cmd, playlist_lines = self.get_preview_export_command(video_path)
+ try:
+ if self.playback_source == PlaybackSourceEnum.recordings:
+ ffmpeg_cmd, playlist_lines = self.get_record_export_command(video_path)
+ else:
+ ffmpeg_cmd, playlist_lines = self.get_preview_export_command(video_path)
+ except DoesNotExist:
+ return
p = sp.run(
ffmpeg_cmd,