blakeblackshear / frigate

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

[Support]: #5374

Closed linkwellfook closed 1 year ago

linkwellfook commented 1 year ago

Describe the problem you are having

After upgrading from beta5 to beta7 I get 502 Proxy error.
If I attempt to connect to frigate directly I get Unable to connect

Frigate proxy in Home assistant is using the current version for 0.12.

Before the upgrade Frigate worked.

Version

0.12-beta7

Frigate config file

mqtt:
  host: 192.168.1.222
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  user: user
  password: password
  stats_interval: 60
ffmpeg:
#  global_args: -hide_banner -loglevel warning
  input_args: -rtsp_transport tcp -i preset-rtsp-generic -stimeout 5000000 -analyzeduration 0 -probesize 5000000
#  hwaccel_args: -c:v h264_cuvid -hwaccel_output_format yuv420p
detect:
  # Optional: width of the frame for the input with the detect role (default: shown below)
  width: 1280
  # Optional: height of the frame for the input with the detect role (default: shown below)
  height: 720
  # Optional: desired fps for your camera for the input with the detect role (default: shown below)
  # NOTE: Recommended value of 5. Ideally, try and reduce your FPS on the camera.
  fps: 5
  # Optional: enables detection for the camera (default: True)
  # This value can be set via MQTT and will be updated in startup based on retained value
  enabled: True
  # Optional: Number of frames without a detection before frigate considers an object to be gone. (default: 5x the frame rate)
  max_disappeared: 25
  # Optional: Configuration for stationary object tracking
  stationary:
    # Optional: Frequency for confirming stationary objects (default: shown below)
    # When set to 0, object detection will not confirm stationary objects until movement is detected.
    # If set to 10, object detection will run to confirm the object still exists on every 10th frame.
    interval: 0
    # Optional: Number of frames without a position change for an object to be considered stationary (default: 10x the frame rate or 10s)
    threshold: 50
    # Optional: Define a maximum number of frames for tracking a stationary object (default: not set, track forever)
    # This can help with false positives for objects that should only be stationary for a limited amount of time.
    # It can also be used to disable stationary object tracking. For example, you may want to set a value for person, but leave
    # car at the default.
    # WARNING: Setting these values overrides default behavior and disables stationary object tracking.
    #          There are very few situations where you would want it disabled. It is NOT recommended to
    #          copy these values from the example config into your config unless you know they are needed.
    max_frames:
      # Optional: Default for all object types (default: not set, track forever)
      default: 3000
      # Optional: Object specific values
      objects:
        person: 1000

# Optional: Object configuration
# NOTE: Can be overridden at the camera level
objects:
  # Optional: list of objects to track from labelmap.txt (default: shown below)
  track:
    - person
  # Optional: mask to prevent all object types from being detected in certain areas (default: no mask)
  # Checks based on the bottom center of the bounding box of the object.
  # NOTE: This mask is COMBINED with the object type specific mask below
  mask: 0,0,1000,0,1000,200,0,200
  # Optional: filters to reduce false positives for specific object types
  filters:
    person:
      # Optional: minimum width*height of the bounding box for the detected object (default: 0)
      min_area: 5000
      # Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
      max_area: 100000
      # Optional: minimum width/height of the bounding box for the detected object (default: 0)
      min_ratio: 0.5
      # Optional: maximum width/height of the bounding box for the detected object (default: 24000000)
      max_ratio: 2.0
      # Optional: minimum score for the object to initiate tracking (default: shown below)
      min_score: 0.5
      # Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
      threshold: 0.7
      # Optional: mask to prevent this object type from being detected in certain areas (default: no mask)
      # Checks based on the bottom center of the bounding box of the object
      mask: 0,0,1000,0,1000,200,0,200

# Optional: Motion configuration
# NOTE: Can be overridden at the camera level
motion:
  # Optional: The threshold passed to cv2.threshold to determine if a pixel is different enough to be counted as motion. (default: shown below)
  # Increasing this value will make motion detection less sensitive and decreasing it will make motion detection more sensitive.
  # The value should be between 1 and 255.
  threshold: 25
  # Optional: Minimum size in pixels in the resized motion image that counts as motion (default: 30)
  # Increasing this value will prevent smaller areas of motion from being detected. Decreasing will
  # make motion detection more sensitive to smaller moving objects.
  # As a rule of thumb:
  #  - 15 - high sensitivity
  #  - 30 - medium sensitivity
  #  - 50 - low sensitivity
  contour_area: 30
  # Optional: Alpha value passed to cv2.accumulateWeighted when averaging the motion delta across multiple frames (default: shown below)
  # Higher values mean the current frame impacts the delta a lot, and a single raindrop may register as motion.
  # Too low and a fast moving person wont be detected as motion.
  delta_alpha: 0.2
  # Optional: Alpha value passed to cv2.accumulateWeighted when averaging frames to determine the background (default: shown below)
  # Higher values mean the current frame impacts the average a lot, and a new object will be averaged into the background faster.
  # Low values will cause things like moving shadows to be detected as motion for longer.
  # https://www.geeksforgeeks.org/background-subtraction-in-an-image-using-concept-of-running-average/
  frame_alpha: 0.2
  # Optional: Height of the resized motion frame  (default: 50)
  # This operates as an efficient blur alternative. Higher values will result in more granular motion detection at the expense
  # of higher CPU usage. Lower values result in less CPU, but small changes may not register as motion.
  frame_height: 50
  # Optional: motion mask
  # NOTE: see docs for more detailed info on creating masks
  mask: 0,900,1080,900,1080,1920,0,1920
  # Optional: improve contrast (default: shown below)
  # Enables dynamic contrast improvement. This should help improve night detections at the cost of making motion detection more sensitive
  # for daytime.
  improve_contrast: False
  # Optional: Delay when updating camera motion through MQTT from ON -> OFF (default: shown below).
  mqtt_off_delay: 30

# Optional: Record configuration
# NOTE: Can be overridden at the camera level
record:
  # Optional: Enable recording (default: shown below)
  # WARNING: If recording is disabled in the config, turning it on via
  #          the UI or MQTT later will have no effect.
  # WARNING: Frigate does not currently support limiting recordings based
  #          on available disk space automatically. If using recordings,
  #          you must specify retention settings for a number of days that
  #          will fit within the available disk space of your drive or Frigate
  #          will crash.
  enabled: True
  # Optional: Number of minutes to wait between cleanup runs (default: shown below)
  # This can be used to reduce the frequency of deleting recording segments from disk if you want to minimize i/o
  expire_interval: 60
  # Optional: Retention settings for recording
  retain:
    # Optional: Number of days to retain recordings regardless of events (default: shown below)
    # NOTE: This should be set to 0 and retention should be defined in events section below
    #       if you only want to retain recordings of events.
    days: 0
    # Optional: Mode for retention. Available options are: all, motion, and active_objects
    #   all - save all recording segments regardless of activity
    #   motion - save all recordings segments with any detected motion
    #   active_objects - save all recording segments with active/moving objects
    # NOTE: this mode only applies when the days setting above is greater than 0
    mode: all
  # Optional: Event recording settings
  events:
    # Optional: Number of seconds before the event to include (default: shown below)
    pre_capture: 5
    # Optional: Number of seconds after the event to include (default: shown below)
    post_capture: 5
    # Optional: Objects to save recordings for. (default: all tracked objects)
    objects:
      - person
    # Optional: Restrict recordings to objects that entered any of the listed zones (default: no required zones)
    required_zones: []
    # Optional: Retention settings for recordings of events
    retain:
      # Required: Default retention days (default: shown below)
      default: 10
      # Optional: Mode for retention. (default: shown below)
      #   all - save all recording segments for events regardless of activity
      #   motion - save all recordings segments for events with any detected motion
      #   active_objects - save all recording segments for event with active/moving objects
      #
      # NOTE: If the retain mode for the camera is more restrictive than the mode configured
      #       here, the segments will already be gone by the time this mode is applied.
      #       For example, if the camera retain mode is "motion", the segments without motion are
      #       never stored, so setting the mode to "all" here won't bring them back.
      mode: motion
      # Optional: Per object retention days
      objects:
        person: 15

# Optional: Configuration for the jpg snapshots written to the clips directory for each event
# NOTE: Can be overridden at the camera level
snapshots:
  # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
  # This value can be set via MQTT and will be updated in startup based on retained value
  enabled: False
  # Optional: save a clean PNG copy of the snapshot image (default: shown below)
  clean_copy: True
  # Optional: print a timestamp on the snapshots (default: shown below)
  timestamp: False
  # Optional: draw bounding box on the snapshots (default: shown below)
  bounding_box: False
  # Optional: crop the snapshot (default: shown below)
  crop: False
  # Optional: height to resize the snapshot to (default: original size)
  height: 175
  # Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
  required_zones: []
  # Optional: Camera override for retention settings (default: global values)
  retain:
    # Required: Default retention days (default: shown below)
    default: 10
    # Optional: Per object retention days
    objects:
      person: 15

# Optional: RTMP configuration
# NOTE: Can be overridden at the camera level
#rtmp:
  # Optional: Enable the RTMP stream (default: True)
#  enabled: True

# Optional: Live stream configuration for WebUI
# NOTE: Can be overridden at the camera level
live:
  # Optional: Set the height of the live stream. (default: 720)
  # This must be less than or equal to the height of the detect stream. Lower resolutions
  # reduce bandwidth required for viewing the live stream. Width is computed to match known aspect ratio.
  height: 720
  # Optional: Set the encode quality of the live stream (default: shown below)
  # 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources.
  quality: 8

# Optional: in-feed timestamp style configuration
# NOTE: Can be overridden at the camera level
timestamp_style:
  # Optional: Position of the timestamp (default: shown below)
  #           "tl" (top left), "tr" (top right), "bl" (bottom left), "br" (bottom right)
  position: "tl"
  # Optional: Format specifier conform to the Python package "datetime" (default: shown below)
  #           Additional Examples:
  #             german: "%d.%m.%Y %H:%M:%S"
  format: "%m/%d/%Y %H:%M:%S"
  # Optional: Color of font
  color:
    # All Required when color is specified (default: shown below)
    red: 255
    green: 255
    blue: 255
  # Optional: Line thickness of font (default: shown below)
  thickness: 2
  # Optional: Effect of lettering (default: shown below)
  #           None (No effect),
  #           "solid" (solid background in inverse color of font)
  #           "shadow" (shadow for font)
  effect: solid
go2rtc:
  streams:
    driveway_main: ffmpeg:rtsp://admin:<blankpassword>@192.168.1.84:554/ch06/0
    driveway_sub: ffmpeg:rtsp://admin:<blankpassword>@192.168.1.84:554/ch06/1
    frontcam_main: ffmpeg:rtsp://admin:<blankpassword>@192.168.1.215:554/h264Preview_01_main
    frontcam_sub: ffmpeg:rtsp://admin:<blankpassword>@192.168.1.215:554/h264Preview_01_sub
    garden_main: ffmpeg:rtsp://admin:<blankpassword>@192.168.1.84:554/ch04/0
    garden_sub: ffmpeg:rtsp://admin:<blankpassword>@192.168.1.84:554/ch04/1
    sidewalk_main: ffmpeg:rtsp://admin:<blankpassword>@192.168.1.84:554/ch08/0
    sidewalk_sub: ffmpeg:rtsp://admin:<blankpassword>@192.168.1.84:554/ch08/1
    kitchen_main: ffmpeg:rtsp://admin:<blankpassword>@192.168.1.180:554/h264Preview_01_main
    kitchen_sub: ffmpeg:rtsp://admin:<blankpassword>@192.168.1.180:554/h264Preview_01_sub
    office_main: ffmpeg:rtsp://admin:<blankpassword>@192.168.1.172:554/h264Preview_01_main
    office_sub: ffmpeg:rtsp://admin:<blankpassword>@192.168.1.172:554/h264Preview_01_sub
    sliding_door_main: ffmpeg:rtsp://admin:<blankpassword>@192.168.1.25:554/h264Preview_01_main
    sliding_door_sub: ffmpeg:rtsp://admin:<blankpassword>@192.168.1.25:554/h264Preview_01_sub
    hall_main: ffmpeg:rtsp://admin:<blankpassword>@192.168.1.243:554/h264Preview_01_main
    hall_sub: ffmpeg:rtsp://admin:<blankpassword>@192.168.1.243:554/h264Preview_01_sub
detectors:
#  tensorrt:
#    type: tensorrt
  coral:
    type: edgetpu
    device: usb
    #model:
    #  path: "/edgetpu.tflite"
#model:
#  path: /trt-models/yolov7-tiny-416.trt
#  input_tensor: nchw
#  input_pixel_format: rgb
#  width: 416
#  height: 416
cameras:
  driveway: #<-- generic rtsp, works
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/driveway_main?video=copy
          input_args: preset-rtsp-restream
          roles:
            - record
            #- clips
        - path: rtsp://127.0.0.1:8554/driveway_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
      hwaccel_args: -c:v h264_cuvid
      output_args:
        record: '-f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac'
    best_image_timeout: 60
    detect:
      width: 1280 # <---- update for your camera's resolution
      height: 720 # <---- update for your camera's resolution
      fps: 14
    objects:
      track:
        - person
        - bicycle
        - car
        - motorcycle
      filters:
        person:
          min_score: 0.6
          min_area: 5000
          max_area: 100000
          threshold: 0.62
        car:
          min_score: 0.6
          min_area: 5000
          max_area: 100000
          threshold: 0.62
    snapshots:
      required_zones:
        - front_red
        - front_amber
      enabled: true
      timestamp: true
      bounding_box: true
      crop: True
      height: 500
      retain:
        default: 5
    zones:
      driveway_red:
        coordinates: 514,350,45,438,21,557,0,720,353,720,865,720,968,720,916,560,1124,533,944,280
        objects:
          - car
          - person
          - bicycle
          - motorcycle
      driveway_amber:
        coordinates: 834,128,461,214,65,315,46,437,949,276
        objects:
          - car
          - person
          - bicycle
          - motorcycle
    motion:
      mask:
        - 1280,720,1009,269,877,137,766,28,975,0,1280,0
        - 0,0,812,0,720,48,348,138,0,252
      #threshhold: 10
      contour_area: 100
    record:
     enabled: True
     retain:
       days: 0
       mode: motion
     events:
       pre_capture: 5
       post_capture: 15
       required_zones:
         - front_red      
       retain:
         default: 3
         mode: motion
         objects:
           person: 15
  frontcam: #<-- generic rtsp, works
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/frontcam_main?video=copy
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/frontcam_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
      hwaccel_args: -c:v h264_cuvid
      output_args:
        record: '-f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac'
    best_image_timeout: 60
    detect:
      width: 1280 # <---- update for your camera's resolution
      height: 720 # <---- update for your camera's resolution
      fps: 14
    objects:
      track:
        - person
        - car
        - motorcycle
      filters:
        person:
          min_score: 0.6
          min_area: 5000
          max_area: 100000
          threshold: 0.62
        car:
          min_score: 0.6
          min_area: 5000
          max_area: 100000
          threshold: 0.62
    snapshots:
      required_zones:
        - frontcam_red
        - frontcam_amber
      enabled: true
      timestamp: true
      bounding_box: true
      crop: True
      height: 500
      retain:
        default: 5
    zones:
      frontcam_red:
        coordinates: 1280,720,0,720,0,103,1280,122
        objects:
          - car
          - person
          - motorcycle
    motion:
      mask:
        - 1280,0,0,0,0,132,1280,126
    record:
      events:
        required_zones:
          - frontcam_red
      enabled: True
      retain:
        days: 3
        mode: motion
      #events:
      #  retain:
      #    default: 10
      #    mode: active_objects
      #  pre_capture: 5
      #  post_capture: 35
  garden: #<-- generic rtsp, works
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/garden_main?video=copy
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/garden_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
    record:
      enabled: True
      retain:
        days: 3
        mode: motion
      #events:
      #  retain:
      #    default: 10
      #    mode: active_objects
      #  pre_capture: 5
      #  post_capture: 15
  sidewalk: #<-- generic rtsp, works
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/sidewalk_main?video=copy
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/sidewalk_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
    record:
      enabled: True
      retain:
        days: 3
        mode: motion
      #events:
      #  retain:
      #    default: 10
      #    mode: active_objects
      #  pre_capture: 5
      #  post_capture: 15            
  hall: #<-- generic rtsp, works
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/hall_main?video=copy
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/hall_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
    #detect:
    #  width: 1920
    #  height: 1080
    #  fps: 5
    record:
    #  events:
    #    required_zones:
    #      - driveway_red
    #  enabled: True
      retain:
        days: 3
        mode: motion
      #events:
      #  retain:
      #    default: 10
      #    mode: active_objects
      #  pre_capture: 5
      #  post_capture: 35
      #output_args:
        #record: '-f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac'
    best_image_timeout: 60
  kitchen: #<-- generic rtsp, works
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/kitchen_main?video=copy
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/kitchen_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
    #detect:
    #  width: 1920
    #  height: 1080
    #  fps: 5
    record:
    #  events:
    #    required_zones:
    #      - driveway_red
    #  enabled: True
      retain:
        days: 3
        mode: motion
      #events:
      #  retain:
      #    default: 10
      #    mode: active_objects
      #  pre_capture: 5
      #  post_capture: 35
      #output_args:
        #record: '-f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac'
    best_image_timeout: 60
  sliding_door: #<-- generic rtsp, works
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/sliding_door_main?video=copy
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/sliding_door_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
    #detect:
    #  width: 1920
    #  height: 1080
    #  fps: 5
    record:
    #  events:
    #    required_zones:
    #      - driveway_red
    #  enabled: True
      retain:
        days: 3
        mode: motion
      #events:
      #  retain:
      #    default: 10
      #    mode: active_objects
      #  pre_capture: 5
      #  post_capture: 35
      #output_args:
        #record: '-f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac'
    best_image_timeout: 60
  office: #<-- generic rtsp, works
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/office_main?video=copy
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/office_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
    #detect:
    #  width: 1920
    #  height: 1080
    #  fps: 5
    record:
    #  events:
    #    required_zones:
    #      - driveway_red
    #  enabled: True
      retain:
        days: 3
        mode: motion
      #events:
      #  retain:
      #    default: 10
      #    mode: active_objects
      #  pre_capture: 5
      #  post_capture: 35
      #output_args:
        #record: '-f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac'
    best_image_timeout: 60

Relevant log output

s6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service log-prepare: starting
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service nginx-log successfully started
s6-rc: info: service frigate-log successfully started
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service go2rtc successfully started
s6-rc: info: service frigate: starting
[INFO] Preparing go2rtc config...
[INFO] Starting Frigate...
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
[INFO] Starting NGINX...
s6-rc: info: service legacy-services successfully started
[INFO] Starting go2rtc...
2023-02-03 21:48:27.402168306  21:48:27.402 INF go2rtc version 1.1.1 linux/amd64
2023-02-03 21:48:27.402473461  21:48:27.402 INF [api] listen addr=:1984
2023-02-03 21:48:27.402821666  21:48:27.402 INF [rtsp] listen addr=:8554
2023-02-03 21:48:27.403202230  21:48:27.403 INF [srtp] listen addr=:8443
2023-02-03 21:48:27.403374817  21:48:27.403 INF [webrtc] listen addr=:8555
2023-02-03 21:48:35.792337150  [2023-02-03 21:48:35] frigate.app                    INFO    : Starting Frigate (0.12.0-66881eb)
2023-02-03 21:48:35.897218961  [2023-02-03 21:48:35] peewee_migrate                 INFO    : Starting migrations
2023-02-03 21:48:36.037766621  [2023-02-03 21:48:36] peewee_migrate                 INFO    : There is nothing to migrate
2023-02-03 21:48:36.587857567  [2023-02-03 21:48:36] detector.coral                 INFO    : Starting detection process: 700
2023-02-03 21:48:36.621531256  [2023-02-03 21:48:36] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2023-02-03 21:48:39.340115725  [2023-02-03 21:48:36] frigate.app                    INFO    : Output process started: 702
2023-02-03 21:48:39.340246683  [2023-02-03 21:48:36] frigate.app                    INFO    : Camera processor started for driveway: 705
2023-02-03 21:48:39.340339512  [2023-02-03 21:48:36] frigate.app                    INFO    : Camera processor started for frontcam: 707
2023-02-03 21:48:39.340427830  [2023-02-03 21:48:36] frigate.app                    INFO    : Camera processor started for garden: 708
2023-02-03 21:48:39.340526109  [2023-02-03 21:48:36] frigate.app                    INFO    : Camera processor started for sidewalk: 709
2023-02-03 21:48:39.340634177  [2023-02-03 21:48:36] frigate.app                    INFO    : Camera processor started for hall: 710
2023-02-03 21:48:39.340729096  [2023-02-03 21:48:36] frigate.app                    INFO    : Camera processor started for kitchen: 711
2023-02-03 21:48:39.340822324  [2023-02-03 21:48:36] frigate.app                    INFO    : Camera processor started for sliding_door: 713
2023-02-03 21:48:39.340904983  [2023-02-03 21:48:36] frigate.app                    INFO    : Camera processor started for office: 715
2023-02-03 21:48:39.341000382  [2023-02-03 21:48:36] frigate.app                    INFO    : Capture process started for driveway: 717
2023-02-03 21:48:39.341093100  [2023-02-03 21:48:36] frigate.app                    INFO    : Capture process started for frontcam: 722
2023-02-03 21:48:39.341193189  [2023-02-03 21:48:36] frigate.app                    INFO    : Capture process started for garden: 726
2023-02-03 21:48:39.341278928  [2023-02-03 21:48:36] frigate.app                    INFO    : Capture process started for sidewalk: 733
2023-02-03 21:48:39.341373056  [2023-02-03 21:48:36] frigate.app                    INFO    : Capture process started for hall: 738
2023-02-03 21:48:39.341463255  [2023-02-03 21:48:36] frigate.app                    INFO    : Capture process started for kitchen: 742
2023-02-03 21:48:39.341561873  [2023-02-03 21:48:36] frigate.app                    INFO    : Capture process started for sliding_door: 750
2023-02-03 21:48:39.341657052  [2023-02-03 21:48:36] frigate.app                    INFO    : Capture process started for office: 759
2023-02-03 21:48:39.375982042  [2023-02-03 21:48:39] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2023-02-03 21:48:42.443980695  [2023-02-03 21:48:42] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
2023-02-03 21:48:42.444153333  [2023-02-03 21:48:42] frigate.video                  ERROR   : kitchen: ffmpeg process is not running. exiting capture thread...
2023-02-03 21:48:42.446108793  [2023-02-03 21:48:42] frigate.video                  ERROR   : office: Unable to read frames from ffmpeg process.
2023-02-03 21:48:42.446222671  [2023-02-03 21:48:42] frigate.video                  ERROR   : garden: Unable to read frames from ffmpeg process.
2023-02-03 21:48:42.446331920  [2023-02-03 21:48:42] frigate.video                  ERROR   : office: ffmpeg process is not running. exiting capture thread...
2023-02-03 21:48:42.446449438  [2023-02-03 21:48:42] frigate.video                  ERROR   : frontcam: Unable to read frames from ffmpeg process.
2023-02-03 21:48:42.446591396  [2023-02-03 21:48:42] frigate.video                  ERROR   : hall: Unable to read frames from ffmpeg process.
2023-02-03 21:48:42.446669924  [2023-02-03 21:48:42] frigate.video                  ERROR   : sidewalk: Unable to read frames from ffmpeg process.
2023-02-03 21:48:42.446747583  [2023-02-03 21:48:42] frigate.video                  ERROR   : sliding_door: Unable to read frames from ffmpeg process.
2023-02-03 21:48:42.446827202  [2023-02-03 21:48:42] frigate.video                  ERROR   : garden: ffmpeg process is not running. exiting capture thread...
2023-02-03 21:48:42.446904931  [2023-02-03 21:48:42] frigate.video                  ERROR   : frontcam: ffmpeg process is not running. exiting capture thread...
2023-02-03 21:48:42.446987060  [2023-02-03 21:48:42] frigate.video                  ERROR   : sliding_door: ffmpeg process is not running. exiting capture thread...
2023-02-03 21:48:42.447058169  [2023-02-03 21:48:42] frigate.video                  ERROR   : sidewalk: ffmpeg process is not running. exiting capture thread...
2023-02-03 21:48:42.447136147  [2023-02-03 21:48:42] frigate.video                  ERROR   : hall: ffmpeg process is not running. exiting capture thread...
2023-02-03 21:48:42.448466207  21:48:42.448 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:52 > error="exec: exit status 1" url=ffmpeg:rtsp://<blank>:<blankpassword>@192.168.1.243:554/h264Preview_01_sub
2023-02-03 21:48:42.448493257  21:48:42.448 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=hall_sub
2023-02-03 21:48:42.453398883  21:48:42.453 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:52 > error="exec: exit status 1" url=ffmpeg:rtsp://<blank>:<blankpassword>@192.168.1.180:554/h264Preview_01_sub
2023-02-03 21:48:42.453427352  21:48:42.453 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=kitchen_sub
2023-02-03 21:48:42.454875670  21:48:42.454 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:52 > error="exec: exit status 1" url=ffmpeg:rtsp://<blank>:<blankpassword>@192.168.1.243:554/h264Preview_01_main
2023-02-03 21:48:42.454906130  21:48:42.454 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=hall_main
2023-02-03 21:48:42.455272854  21:48:42.455 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:52 > error="exec: exit status 1" url=ffmpeg:rtsp://<blank>:<blankpassword>@192.168.1.25:554/h264Preview_01_sub
2023-02-03 21:48:42.455286254  21:48:42.455 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=sliding_door_sub
2023-02-03 21:48:42.455614799  21:48:42.455 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:52 > error="exec: exit status 1" url=ffmpeg:rtsp://<blank>:<blankpassword>@192.168.1.25:554/h264Preview_01_main
2023-02-03 21:48:42.455642199  21:48:42.455 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=sliding_door_main
2023-02-03 21:48:42.626798395  21:48:42.626 WRN github.com/AlexxIT/go2rtc/cmd/rtsp/rtsp.go:219 > error=EOF
2023-02-03 21:48:42.774649395  21:48:42.774 WRN github.com/AlexxIT/go2rtc/cmd/rtsp/rtsp.go:219 > error=EOF
2023-02-03 21:48:42.978611395  21:48:42.978 WRN github.com/AlexxIT/go2rtc/cmd/rtsp/rtsp.go:219 > error=EOF
2023-02-03 21:48:42.979343314  21:48:42.979 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:52 > error="exec: exit status 1" url=ffmpeg:rtsp://<blank>:<blankpassword>@192.168.1.180:554/h264Preview_01_main
2023-02-03 21:48:42.979367463  21:48:42.979 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=kitchen_main
2023-02-03 21:48:43.047091927  21:48:43.047 WRN github.com/AlexxIT/go2rtc/cmd/rtsp/rtsp.go:219 > error=EOF
2023-02-03 21:48:43.538595570  21:48:43.538 WRN github.com/AlexxIT/go2rtc/cmd/rtsp/rtsp.go:219 > error=EOF
2023-02-03 21:48:43.554679546  21:48:43.554 WRN github.com/AlexxIT/go2rtc/cmd/rtsp/rtsp.go:219 > error=EOF
2023-02-03 21:48:44.186898397  21:48:44.186 WRN github.com/AlexxIT/go2rtc/cmd/rtsp/rtsp.go:219 > error=EOF

FFprobe output from your camera

ffprobe rtsp://<blank>:<blankpassword>@192.168.1.84:554/ch06/0
ffprobe version n5.1-2-g915ef932a3-20220731 Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100

Frigate stats

cannot serve the page

Operating system

Other Linux

Install method

Docker Compose

Coral version

USB

Network connection

Wired

Camera make and model

Swann, Reolink

Any other information that may be helpful

Swann is DVR MQTT is operational and accepting connections

linkwellfook commented 1 year ago

Full ffprobe

ffprobe rtsp://admin:@192.168.1.84:554/ch06/0 ffprobe version n5.1-2-g915ef932a3-20220731 Copyright (c) 2007-2022 the FFmpeg developers built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b) configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731 libavutil 57. 28.100 / 57. 28.100 libavcodec 59. 37.100 / 59. 37.100 libavformat 59. 27.100 / 59. 27.100 libavdevice 59. 7.100 / 59. 7.100 libavfilter 8. 44.100 / 8. 44.100 libswscale 6. 7.100 / 6. 7.100 libswresample 4. 7.100 / 4. 7.100 libpostproc 56. 6.100 / 56. 6.100 [rtsp @ 0x555f49e2d140] max delay reached. need to consume packet [rtsp @ 0x555f49e2d140] RTP: missed 113 packets [h264 @ 0x555f49e31f00] error while decoding MB 36 40, bytestream -8 [h264 @ 0x555f49e31f00] concealing 13133 DC, 13133 AC, 13133 MV errors in I frame [rtsp @ 0x555f49e2d140] max delay reached. need to consume packet [rtsp @ 0x555f49e2d140] RTP: missed 12 packets [h264 @ 0x555f49e31f00] error while decoding MB 39 78, bytestream -5 [h264 @ 0x555f49e31f00] concealing 7050 DC, 7050 AC, 7050 MV errors in P frame [rtsp @ 0x555f49e2d140] max delay reached. need to consume packet [rtsp @ 0x555f49e2d140] RTP: missed 154 packets [rtsp @ 0x555f49e2d140] max delay reached. need to consume packet [rtsp @ 0x555f49e2d140] RTP: missed 114 packets [h264 @ 0x555f49e31f00] error while decoding MB 30 38, bytestream -12 [h264 @ 0x555f49e31f00] concealing 13459 DC, 13459 AC, 13459 MV errors in I frame [rtsp @ 0x555f49e2d140] max delay reached. need to consume packet [rtsp @ 0x555f49e2d140] RTP: missed 1 packets [rtsp @ 0x555f49e2d140] max delay reached. need to consume packet [rtsp @ 0x555f49e2d140] RTP: missed 18 packets [rtsp @ 0x555f49e2d140] max delay reached. need to consume packet [rtsp @ 0x555f49e2d140] RTP: missed 112 packets [rtsp @ 0x555f49e2d140] max delay reached. need to consume packet [rtsp @ 0x555f49e2d140] RTP: missed 23 packets [rtsp @ 0x555f49e2d140] max delay reached. need to consume packet [rtsp @ 0x555f49e2d140] RTP: missed 8 packets [rtsp @ 0x555f49e2d140] max delay reached. need to consume packet [rtsp @ 0x555f49e2d140] RTP: missed 20 packets [rtsp @ 0x555f49e2d140] max delay reached. need to consume packet [rtsp @ 0x555f49e2d140] RTP: missed 2 packets [rtsp @ 0x555f49e2d140] max delay reached. need to consume packet [rtsp @ 0x555f49e2d140] RTP: missed 120 packets Input #0, rtsp, from 'rtsp://admin:@192.168.1.84:554/ch06/0': Duration: N/A, start: 0.100000, bitrate: N/A Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 2560x1944, 10 fps, 10 tbr, 90k tbn

NickM-27 commented 1 year ago

Nothing has changed in frigate regarding the frigate proxy that would cause issues. Your logs are also showing camera issues not an error in the proxy so it's unclear what the problem actually is.

linkwellfook commented 1 year ago

It working now. In the container I installed net-tools .
Using netstate frigate used the port 5000 I used to have port to use port 5080:5080 as 5000 was in use. It worked well up to the upgrade Switched to 5080:5000 and it works.