diff --git a/Dockerfile b/Dockerfile index 2e89b7a5f..f261fcb45 100755 --- a/Dockerfile +++ b/Dockerfile @@ -58,5 +58,6 @@ WORKDIR /opt/frigate/ ADD frigate frigate/ COPY detect_objects.py . COPY benchmark.py . +COPY process_clip.py . CMD ["python3.7", "-u", "detect_objects.py"] diff --git a/frigate/events.py b/frigate/events.py index 56d8e0388..fe311133c 100644 --- a/frigate/events.py +++ b/frigate/events.py @@ -130,7 +130,7 @@ class EventProcessor(threading.Thread): return with open(f"{os.path.join(self.clip_dir, clip_name)}.json", 'w') as outfile: - json.dump(event_data, outfile) + json.dump({x: event_data[x] for x in event_data if x not in ['frame']}), outfile) def run(self): while True: