blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
19.23k stars 1.76k forks source link

[Support]: Clips without an object but snapshots contains #3282

Closed B0ndo2 closed 2 years ago

B0ndo2 commented 2 years ago

Describe the problem you are having

I have some events clips with no objects in them (I only use person) while the associated clip contains the object. It is happening on both cameras

Version

0.9.1-800f33e

Frigate config file

{
  "birdseye": {
    "enabled": true,
    "height": 720,
    "mode": "continuous",
    "quality": 8,
    "width": 1280
  },
  "cameras": {
    "driveway": {
      "best_image_timeout": 60,
      "detect": {
        "enabled": true,
        "fps": 5,
        "height": 352,
        "max_disappeared": 25,
        "width": 640
      },
      "ffmpeg": {
        "global_args": [
          "-hide_banner",
          "-loglevel",
          "warning"
        ],
        "hwaccel_args": [],
        "input_args": [
          "-avoid_negative_ts",
          "make_zero",
          "-fflags",
          "+genpts+discardcorrupt",
          "-rtsp_transport",
          "tcp",
          "-stimeout",
          "5000000",
          "-use_wallclock_as_timestamps",
          "1"
        ],
        "inputs": [
          {
            "global_args": [],
            "hwaccel_args": [],
            "input_args": [],
            "path": "rtsp://admin:xxxx@192.168.6.140/2",
            "roles": [
              "detect"
            ]
          },
          {
            "global_args": [],
            "hwaccel_args": [],
            "input_args": [],
            "path": "rtsp://admin:xxxx@192.168.6.140/1",
            "roles": [
              "record"
            ]
          }
        ],
        "output_args": {
          "detect": [
            "-f",
            "rawvideo",
            "-pix_fmt",
            "yuv420p"
          ],
          "record": [
            "-f",
            "segment",
            "-segment_time",
            "10",
            "-segment_format",
            "mp4",
            "-reset_timestamps",
            "1",
            "-strftime",
            "1",
            "-c",
            "copy",
            "-an"
          ],
          "rtmp": [
            "-c",
            "copy",
            "-f",
            "flv"
          ]
        }
      },
      "ffmpeg_cmds": [
        {
          "cmd": "ffmpeg -hide_banner -loglevel warning -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://admin:xxxx@192.168.6.140/2 -r 5 -s 640x352 -f rawvideo -pix_fmt yuv420p pipe:",
          "roles": [
            "detect"
          ]
        },
        {
          "cmd": "ffmpeg -hide_banner -loglevel warning -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://admin:xxxx@192.168.6.140/1 -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an /tmp/cache/driveway-%Y%m%d%H%M%S.mp4",
          "roles": [
            "record"
          ]
        }
      ],
      "live": {
        "height": 720,
        "quality": 8
      },
      "motion": {
        "contour_area": 100,
        "delta_alpha": 0.2,
        "frame_alpha": 0.2,
        "frame_height": 80,
        "mask": [
          "95,38,317,64,640,130,640,0,0,0,0,42"
        ],
        "threshold": 25
      },
      "mqtt": {
        "bounding_box": true,
        "crop": true,
        "enabled": true,
        "height": 270,
        "quality": 70,
        "required_zones": [],
        "timestamp": true
      },
      "name": "driveway",
      "objects": {
        "filters": {
          "person": {
            "mask": [
              "95,38,317,64,640,130,640,0,0,0,0,42"
            ],
            "max_area": 24000000,
            "min_area": 1000,
            "min_score": 0.49,
            "threshold": 0.54
          }
        },
        "mask": "",
        "track": [
          "person"
        ]
      },
      "record": {
        "enabled": true,
        "events": {
          "max_seconds": 300,
          "objects": null,
          "post_capture": 5,
          "pre_capture": 5,
          "required_zones": [],
          "retain": {
            "default": 5,
            "objects": {}
          }
        },
        "retain_days": 0
      },
      "rtmp": {
        "enabled": false
      },
      "snapshots": {
        "bounding_box": true,
        "clean_copy": true,
        "crop": false,
        "enabled": true,
        "height": null,
        "quality": 70,
        "required_zones": [],
        "retain": {
          "default": 7,
          "objects": {}
        },
        "timestamp": true
      },
      "timestamp_style": {
        "color": {
          "blue": 255,
          "green": 255,
          "red": 255
        },
        "effect": null,
        "format": "%m/%d/%Y %H:%M:%S",
        "position": "tl",
        "thickness": 2
      },
      "zones": {}
    },
    "front_porch_camera": {
      "best_image_timeout": 60,
      "detect": {
        "enabled": true,
        "fps": 5,
        "height": 480,
        "max_disappeared": 25,
        "width": 640
      },
      "ffmpeg": {
        "global_args": [
          "-hide_banner",
          "-loglevel",
          "warning"
        ],
        "hwaccel_args": [],
        "input_args": [
          "-avoid_negative_ts",
          "make_zero",
          "-fflags",
          "+genpts+discardcorrupt",
          "-rtsp_transport",
          "tcp",
          "-stimeout",
          "5000000",
          "-use_wallclock_as_timestamps",
          "1"
        ],
        "inputs": [
          {
            "global_args": [],
            "hwaccel_args": [],
            "input_args": [
              "-avoid_negative_ts",
              "make_zero",
              "-fflags",
              "nobuffer",
              "-flags",
              "low_delay",
              "-strict",
              "experimental",
              "-fflags",
              "+genpts+discardcorrupt",
              "-use_wallclock_as_timestamps",
              "1"
            ],
            "path": "http://admin:xxxx@192.168.6.19/video.cgi",
            "roles": [
              "detect",
              "record"
            ]
          }
        ],
        "output_args": {
          "detect": [
            "-f",
            "rawvideo",
            "-pix_fmt",
            "yuv420p"
          ],
          "record": "-f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -pix_fmt yuv420p -an",
          "rtmp": [
            "-c",
            "copy",
            "-f",
            "flv"
          ]
        }
      },
      "ffmpeg_cmds": [
        {
          "cmd": "ffmpeg -hide_banner -loglevel warning -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -i http://admin:xxxx@192.168.6.19/video.cgi -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -pix_fmt yuv420p -an /tmp/cache/front_porch_camera-%Y%m%d%H%M%S.mp4 -r 5 -s 640x480 -f rawvideo -pix_fmt yuv420p pipe:",
          "roles": [
            "detect",
            "record"
          ]
        }
      ],
      "live": {
        "height": 720,
        "quality": 8
      },
      "motion": {
        "contour_area": 100,
        "delta_alpha": 0.2,
        "frame_alpha": 0.2,
        "frame_height": 80,
        "mask": "",
        "threshold": 25
      },
      "mqtt": {
        "bounding_box": true,
        "crop": true,
        "enabled": true,
        "height": 270,
        "quality": 70,
        "required_zones": [],
        "timestamp": true
      },
      "name": "front_porch_camera",
      "objects": {
        "filters": {
          "person": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          }
        },
        "mask": "",
        "track": [
          "person"
        ]
      },
      "record": {
        "enabled": true,
        "events": {
          "max_seconds": 300,
          "objects": null,
          "post_capture": 5,
          "pre_capture": 5,
          "required_zones": [],
          "retain": {
            "default": 7,
            "objects": {}
          }
        },
        "retain_days": 0
      },
      "rtmp": {
        "enabled": false
      },
      "snapshots": {
        "bounding_box": true,
        "clean_copy": true,
        "crop": false,
        "enabled": true,
        "height": null,
        "quality": 70,
        "required_zones": [],
        "retain": {
          "default": 7,
          "objects": {}
        },
        "timestamp": false
      },
      "timestamp_style": {
        "color": {
          "blue": 255,
          "green": 255,
          "red": 255
        },
        "effect": null,
        "format": "%m/%d/%Y %H:%M:%S",
        "position": "tl",
        "thickness": 2
      },
      "zones": {}
    }
  },
  "database": {
    "path": "/media/frigate/frigate.db"
  },
  "detect": {
    "enabled": true,
    "fps": 5,
    "height": 720,
    "max_disappeared": null,
    "width": 1280
  },
  "detectors": {
    "cpu1": {
      "device": "usb",
      "num_threads": 3,
      "type": "cpu"
    }
  },
  "environment_vars": {},
  "ffmpeg": {
    "global_args": [
      "-hide_banner",
      "-loglevel",
      "warning"
    ],
    "hwaccel_args": [],
    "input_args": [
      "-avoid_negative_ts",
      "make_zero",
      "-fflags",
      "+genpts+discardcorrupt",
      "-rtsp_transport",
      "tcp",
      "-stimeout",
      "5000000",
      "-use_wallclock_as_timestamps",
      "1"
    ],
    "output_args": {
      "detect": [
        "-f",
        "rawvideo",
        "-pix_fmt",
        "yuv420p"
      ],
      "record": [
        "-f",
        "segment",
        "-segment_time",
        "10",
        "-segment_format",
        "mp4",
        "-reset_timestamps",
        "1",
        "-strftime",
        "1",
        "-c",
        "copy",
        "-an"
      ],
      "rtmp": [
        "-c",
        "copy",
        "-f",
        "flv"
      ]
    }
  },
  "live": {
    "height": 720,
    "quality": 8
  },
  "logger": {
    "default": "info",
    "logs": {}
  },
  "model": {
    "height": 320,
    "labelmap": {},
    "labelmap_path": null,
    "path": null,
    "width": 320
  },
  "motion": {
    "contour_area": 100,
    "delta_alpha": 0.2,
    "frame_alpha": 0.2,
    "frame_height": 80,
    "mask": "",
    "threshold": 25
  },
  "mqtt": {
    "client_id": "frigate",
    "host": "caha.duckdns.org",
    "password": "Fr1g@te21",
    "port": 1883,
    "stats_interval": 60,
    "tls_ca_certs": null,
    "tls_client_cert": null,
    "tls_client_key": null,
    "tls_insecure": null,
    "topic_prefix": "frigate",
    "user": "frigate"
  },
  "objects": {
    "filters": null,
    "mask": "",
    "track": [
      "person"
    ]
  },
  "record": {
    "enabled": false,
    "events": {
      "max_seconds": 300,
      "objects": null,
      "post_capture": 5,
      "pre_capture": 5,
      "required_zones": [],
      "retain": {
        "default": 10,
        "objects": {}
      }
    },
    "retain_days": 0
  },
  "rtmp": {
    "enabled": false
  },
  "snapshots": {
    "bounding_box": true,
    "clean_copy": true,
    "crop": false,
    "enabled": false,
    "height": null,
    "quality": 70,
    "required_zones": [],
    "retain": {
      "default": 10,
      "objects": {}
    },
    "timestamp": false
  },
  "timestamp_style": {
    "color": {
      "blue": 255,
      "green": 255,
      "red": 255
    },
    "effect": null,
    "format": "%m/%d/%Y %H:%M:%S",
    "position": "tl",
    "thickness": 2
  }
}

Relevant log output

[2022-05-31 17:19:08] watchdog.driveway              INFO    : No frames received from driveway in 20 seconds. Exiting ffmpeg...
[2022-05-31 17:19:08] watchdog.driveway              INFO    : Waiting for ffmpeg to exit gracefully...
[2022-05-31 17:19:13] frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-05-31 17:19:13] frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. read of closed file
[2022-05-31 17:19:13] frigate.video                  INFO    : driveway: ffmpeg process is not running. exiting capture thread...
[2022-05-31 17:19:13] ffmpeg.driveway.record         ERROR   : [rtsp @ 0x55f9e753b980] Could not find codec parameters for stream 0 (Video: h264, none, 1920x1080): unspecified pixel format
[2022-05-31 17:19:13] ffmpeg.driveway.record         ERROR   : Consider increasing the value for the 'analyzeduration' and 'probesize' options
[2022-05-31 17:19:13] ffmpeg.driveway.record         ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
[2022-05-31 17:19:13] ffmpeg.driveway.record         ERROR   : [segment @ 0x55f9e755e600] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2022-05-31 17:19:13] watchdog.driveway              INFO    : Terminating the existing ffmpeg process...
[2022-05-31 17:19:13] watchdog.driveway              INFO    : Waiting for ffmpeg to exit gracefully...
[2022-05-31 17:19:23] watchdog.driveway              ERROR   : FFMPEG process crashed unexpectedly for driveway.
[2022-05-31 17:19:23] watchdog.driveway              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-05-31 17:19:23] watchdog.driveway              ERROR   : You may have invalid args defined for this camera.
[2022-05-31 17:19:23] ffmpeg.driveway.detect         ERROR   : [h264 @ 0x55bd68f14a00] error while decoding MB 37 4, bytestream -57
[2022-05-31 17:19:23] ffmpeg.driveway.detect         ERROR   : [h264 @ 0x55bd68f2c840] error while decoding MB 37 4, bytestream -57
[2022-05-31 17:19:23] ffmpeg.driveway.detect         ERROR   : rtsp://admin:xxxx@192.168.6.140/2: corrupt decoded frame in stream 0
[2022-05-31 17:19:23] ffmpeg.driveway.detect         ERROR   : [swscaler @ 0x55bd68f50580] deprecated pixel format used, make sure you did set range correctly
[2022-05-31 17:19:43] watchdog.driveway              INFO    : No frames received from driveway in 20 seconds. Exiting ffmpeg...
[2022-05-31 17:19:43] watchdog.driveway              INFO    : Waiting for ffmpeg to exit gracefully...
[2022-05-31 17:19:52] frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-05-31 17:19:52] frigate.video                  INFO    : driveway: ffmpeg process is not running. exiting capture thread...
[2022-05-31 17:19:52] ffmpeg.driveway.record         ERROR   : [h264 @ 0x5559d998bbc0] error while decoding MB 94 10, bytestream -43
[2022-05-31 17:19:52] ffmpeg.driveway.record         ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
[2022-05-31 17:19:52] ffmpeg.driveway.record         ERROR   : [segment @ 0x5559d99ac800] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2022-05-31 17:19:52] watchdog.driveway              INFO    : Terminating the existing ffmpeg process...
[2022-05-31 17:19:52] watchdog.driveway              INFO    : Waiting for ffmpeg to exit gracefully...
[2022-05-31 17:20:02] watchdog.driveway              ERROR   : FFMPEG process crashed unexpectedly for driveway.
[2022-05-31 17:20:02] watchdog.driveway              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-05-31 17:20:02] watchdog.driveway              ERROR   : You may have invalid args defined for this camera.
[2022-05-31 17:20:02] ffmpeg.driveway.detect         ERROR   : [h264 @ 0x55fe42cc5a00] error while decoding MB 32 2, bytestream -33
[2022-05-31 17:20:02] ffmpeg.driveway.detect         ERROR   : [h264 @ 0x55fe42ce3c40] error while decoding MB 32 2, bytestream -33
[2022-05-31 17:20:02] ffmpeg.driveway.detect         ERROR   : rtsp://admin:xxxx@192.168.6.140/2: corrupt decoded frame in stream 0
[2022-05-31 17:20:02] ffmpeg.driveway.detect         ERROR   : [swscaler @ 0x55fe42dbb000] deprecated pixel format used, make sure you did set range correctly
[2022-05-31 17:20:02] ffmpeg.driveway.detect         ERROR   : Finishing stream 0:0 without any data written to it.
[2022-05-31 17:20:02] ffmpeg.driveway.detect         ERROR   : Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
[2022-05-31 17:20:08] frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-05-31 17:20:08] frigate.video                  INFO    : driveway: ffmpeg process is not running. exiting capture thread...
[2022-05-31 17:20:12] watchdog.driveway              ERROR   : FFMPEG process crashed unexpectedly for driveway.
[2022-05-31 17:20:12] watchdog.driveway              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-05-31 17:20:12] watchdog.driveway              ERROR   : You may have invalid args defined for this camera.
[2022-05-31 17:20:12] ffmpeg.driveway.detect         ERROR   : rtsp://admin:xxxx@192.168.6.140/2: Invalid data found when processing input
[2022-05-31 17:20:18] frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-05-31 17:20:18] frigate.video                  INFO    : driveway: ffmpeg process is not running. exiting capture thread...
[2022-05-31 17:20:22] watchdog.driveway              ERROR   : FFMPEG process crashed unexpectedly for driveway.
[2022-05-31 17:20:22] watchdog.driveway              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-05-31 17:20:22] watchdog.driveway              ERROR   : You may have invalid args defined for this camera.
[2022-05-31 17:20:22] ffmpeg.driveway.detect         ERROR   : rtsp://admin:xxxx@192.168.6.140/2: Invalid data found when processing input
[2022-05-31 17:20:28] frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-05-31 17:20:28] frigate.video                  INFO    : driveway: ffmpeg process is not running. exiting capture thread...
[2022-05-31 17:20:32] watchdog.driveway              ERROR   : FFMPEG process crashed unexpectedly for driveway.
[2022-05-31 17:20:32] watchdog.driveway              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-05-31 17:20:32] watchdog.driveway              ERROR   : You may have invalid args defined for this camera.
[2022-05-31 17:20:32] ffmpeg.driveway.detect         ERROR   : rtsp://admin:xxxx@192.168.6.140/2: Invalid data found when processing input
[2022-05-31 17:20:38] frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-05-31 17:20:38] frigate.video                  INFO    : driveway: ffmpeg process is not running. exiting capture thread...
[2022-05-31 17:20:42] watchdog.driveway              ERROR   : FFMPEG process crashed unexpectedly for driveway.
[2022-05-31 17:20:42] watchdog.driveway              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-05-31 17:20:42] watchdog.driveway              ERROR   : You may have invalid args defined for this camera.
[2022-05-31 17:20:42] ffmpeg.driveway.detect         ERROR   : rtsp://admin:xxxx@192.168.6.140/2: Invalid data found when processing input
[2022-05-31 17:20:48] frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-05-31 17:20:48] frigate.video                  INFO    : driveway: ffmpeg process is not running. exiting capture thread...
[2022-05-31 17:20:52] watchdog.driveway              ERROR   : FFMPEG process crashed unexpectedly for driveway.
[2022-05-31 17:20:52] watchdog.driveway              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-05-31 17:20:52] watchdog.driveway              ERROR   : You may have invalid args defined for this camera.
[2022-05-31 17:20:52] ffmpeg.driveway.detect         ERROR   : rtsp://admin:xxxx@192.168.6.140/2: Invalid data found when processing input
[2022-05-31 17:20:52] ffmpeg.driveway.record         ERROR   : [h264 @ 0x556c57dafbc0] error while decoding MB 106 15, bytestream -19
[2022-05-31 17:20:52] ffmpeg.driveway.record         ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
[2022-05-31 17:20:52] ffmpeg.driveway.record         ERROR   : [segment @ 0x556c57df66c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2022-05-31 17:20:52] watchdog.driveway              INFO    : Terminating the existing ffmpeg process...
[2022-05-31 17:20:52] watchdog.driveway              INFO    : Waiting for ffmpeg to exit gracefully...
[2022-05-31 17:21:30] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:47128]
[2022-05-31 17:21:59] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:47128]
[2022-05-31 17:25:22] ffmpeg.driveway.record         ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
[2022-05-31 17:25:22] ffmpeg.driveway.record         ERROR   : [segment @ 0x56080a9a1e00] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2022-05-31 17:25:22] ffmpeg.driveway.record         ERROR   : [segment @ 0x56080a9a1e00] Non-monotonous DTS in output stream 0:0; previous: 11396301, current: 11396301; changing to 11396302. This may result in incorrect timestamps in the output file.
[2022-05-31 17:25:22] ffmpeg.driveway.record         ERROR   : [segment @ 0x56080a9a1e00] Non-monotonous DTS in output stream 0:0; previous: 17645554, current: 17645554; changing to 17645555. This may result in incorrect timestamps in the output file.
[2022-05-31 17:25:22] ffmpeg.driveway.record         ERROR   : [NULL @ 0x56080a982bc0] missing picture in access unit with size 50256
[2022-05-31 17:25:22] ffmpeg.driveway.record         ERROR   : [segment @ 0x56080a9a1e00] Non-monotonous DTS in output stream 0:0; previous: 20077343, current: 20077343; changing to 20077344. This may result in incorrect timestamps in the output file.
[2022-05-31 17:25:22] watchdog.driveway              INFO    : Terminating the existing ffmpeg process...
[2022-05-31 17:25:22] watchdog.driveway              INFO    : Waiting for ffmpeg to exit gracefully...
[2022-05-31 17:25:22] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:48420]
[2022-05-31 17:25:37] frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-05-31 17:25:37] frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-05-31 17:25:37] frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-05-31 17:25:37] frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-05-31 17:25:37] frigate.video                  INFO    : driveway: ffmpeg process is not running. exiting capture thread...
[2022-05-31 17:25:42] watchdog.driveway              ERROR   : FFMPEG process crashed unexpectedly for driveway.
[2022-05-31 17:25:42] watchdog.driveway              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-05-31 17:25:42] watchdog.driveway              ERROR   : You may have invalid args defined for this camera.
[2022-05-31 17:25:42] ffmpeg.driveway.detect         ERROR   : [swscaler @ 0x5562bb056f40] deprecated pixel format used, make sure you did set range correctly
[2022-05-31 17:25:42] ffmpeg.driveway.record         ERROR   : rtsp://admin:xxxx@192.168.6.140/1: Invalid data found when processing input
[2022-05-31 17:25:42] watchdog.driveway              INFO    : Terminating the existing ffmpeg process...
[2022-05-31 17:25:42] watchdog.driveway              INFO    : Waiting for ffmpeg to exit gracefully...
[2022-05-31 17:26:02] ffmpeg.driveway.record         ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
[2022-05-31 17:26:02] ffmpeg.driveway.record         ERROR   : [segment @ 0x55c646151e00] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2022-05-31 17:26:02] watchdog.driveway              INFO    : Terminating the existing ffmpeg process...
[2022-05-31 17:26:02] watchdog.driveway              INFO    : Waiting for ffmpeg to exit gracefully...
[2022-05-31 17:26:30] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:48420]

FFprobe output from your camera

ffprobe version 4.4.2 Copyright (c) 2007-2021 the FFmpeg developers
  built with gcc 11 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' --extra-cflags=' -I/usr/include/rav1e' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --enable-chromaprint --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libbs2b --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librav1e --enable-librtmp --enable-librubberband --enable-libsmbclient --enable-version3 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-vapoursynth --enable-libvpx --enable-vulkan --enable-libglslang --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-lto --enable-libmfx --enable-runtime-cpudetect
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[rtsp @ 0x5558ca887e80] max delay reached. need to consume packet
[rtsp @ 0x5558ca887e80] RTP: missed 2 packets
[rtsp @ 0x5558ca887e80] max delay reached. need to consume packet
[rtsp @ 0x5558ca887e80] RTP: missed 3 packets
Input #0, rtsp, from 'rtsp://admin:xxx@192.168.6.140/1':
  Metadata:
    title           : 10
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 1920x1080, 30 tbr, 90k tbn, 180k tbc
  Stream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s

ffprobe version 4.4.2 Copyright (c) 2007-2021 the FFmpeg developers
  built with gcc 11 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' --extra-cflags=' -I/usr/include/rav1e' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --enable-chromaprint --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libbs2b --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librav1e --enable-librtmp --enable-librubberband --enable-libsmbclient --enable-version3 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-vapoursynth --enable-libvpx --enable-vulkan --enable-libglslang --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-lto --enable-libmfx --enable-runtime-cpudetect
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, mpjpeg, from 'http://admin:xxx@192.168.6.19/video.cgi':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: mjpeg (Baseline), yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 25 tbr, 25 tbn, 25 tbc

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

CPU (no coral)

Network connection

Wireless

Camera make and model

Dlink

Any other information that may be helpful

It was working fine with the previous versions

NickM-27 commented 2 years ago

I have some events clips with no objects in them (I only use person) while the associated clip contains the object.

I am assuming you mean "associated snapshot contains the object" correct?

Also, 0.9.1 is an older version. I would recommend at least updating to 0.9.4 as it seems these versions fixed an issue like what you are experiencing

B0ndo2 commented 2 years ago

yes that is correct

I am not sure about the versioning, it's confusing. If I look at Frigate itself it shows Current version: 2.0 but in Debug it is 0.9.1 and I don't see any update available

NickM-27 commented 2 years ago

The addon has different versioning. There is version 2.1 and 3.0 that should be available

NickM-27 commented 2 years ago

You can see the releases here: https://github.com/blakeblackshear/frigate-hass-addons/blob/main/frigate/CHANGELOG.md

B0ndo2 commented 2 years ago

The addon has different versioning. There is version 2.1 and 3.0 that should be available

I install through HACS and I dont see an upgrade available, what do I do?

NickM-27 commented 2 years ago

Hacs and the addon store are two different things. Are you looking in the right place?

B0ndo2 commented 2 years ago

My Bad, I install from the addon store. I select Frigate NVR ( full access).

NickM-27 commented 2 years ago

Does your install have internet connection? Have you tried uninstalling and reinstalling the addon?

B0ndo2 commented 2 years ago

It has internet access. I manually added a repo https://github.com/blakeblackshear/frigate-hass-addons And now I see 3.1 but not 2.1

NickM-27 commented 2 years ago

With 3.1 available I'd say just use that unless there's a particular reason you don't want to be on that version

B0ndo2 commented 2 years ago

I will have to see if there are breaking changes before upgrading. Will see that in the morning. Thank you for your help

B0ndo2 commented 2 years ago

So I upgraded to 3.1 and the same issue is happening. I receive a notification of motion and the clip in the notification shows the person but the video is delayed and is after the person has left

NickM-27 commented 2 years ago

That implies then that the detect and record streams are out of sync. Do you have timestamps on your video feeds to see what the difference is between the snapshot and the recording?

B0ndo2 commented 2 years ago

Timestamps from the camera directly ?

NickM-27 commented 2 years ago

Timestamps from the camera directly ?

Correct, that would help see if the streams are out of sync

B0ndo2 commented 2 years ago

Unfortunately I don't have a timestamp but this is not always happening and today I found out another issue, some events don't get captured at all on another camera. I walked by the camera with my daughter and was never detected.

NickM-27 commented 2 years ago

Without having a video playback or seeing the debug screen it is difficult for me to understand what is going on / could be happening.

B0ndo2 commented 2 years ago

Which debug screen?

NickM-27 commented 2 years ago

The debug camera screen inside frigate. It allows you to see the bounding boxes, motion, etc. that the camera sees. If you are able to watch it while this is happening (or have the full recording of the missed event) then it makes it easier to diagnose.

I have also found https://github.com/blakeblackshear/frigate/issues/3043 which may be related to what you are experiencing but we have also seen similar behavior due to out-of-sync camera streams.

B0ndo2 commented 2 years ago

I tried before but it's not always happening so I couldn't figure out the reason. I will look at the other issue you pointed, maybe it will guide me to something

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.