mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-31 00:18:55 +01:00
add a few print statements for debugging
This commit is contained in:
parent
01bf89907d
commit
791409d5e5
@ -180,7 +180,12 @@ def track_camera(name, config, ffmpeg_global_config, global_objects_config, dete
|
|||||||
avg_wait = (avg_wait*99+duration)/100
|
avg_wait = (avg_wait*99+duration)/100
|
||||||
|
|
||||||
if not frame_bytes:
|
if not frame_bytes:
|
||||||
|
rc = ffmpeg_process.poll()
|
||||||
|
if rc is not None:
|
||||||
|
print(f"{name}: ffmpeg_process exited unexpectedly with {rc}")
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
|
print(f"{name}: ffmpeg_process is still running but didnt return any bytes")
|
||||||
|
|
||||||
# limit frame rate
|
# limit frame rate
|
||||||
frame_num += 1
|
frame_num += 1
|
||||||
@ -353,3 +358,5 @@ def track_camera(name, config, ffmpeg_global_config, global_objects_config, dete
|
|||||||
plasma_client.put(frame, plasma.ObjectID(object_id))
|
plasma_client.put(frame, plasma.ObjectID(object_id))
|
||||||
# add to the queue
|
# add to the queue
|
||||||
detected_objects_queue.put((name, frame_time, object_tracker.tracked_objects))
|
detected_objects_queue.put((name, frame_time, object_tracker.tracked_objects))
|
||||||
|
|
||||||
|
print(f"{name}: exiting subprocess")
|
Loading…
Reference in New Issue
Block a user