question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Support]: One of two cameras stopped recording a few days ago

See original GitHub issue

Describe the problem you are having

I have two cameras - a Reolink RLC410W and an Amcrest AD110 doorbell. Until a few days ago both cameras were recording clips whenever motion was detected. I’m not entirely sure when, but a few days ago frigate stopped recording clips for the doorbell. It still collects them for the Reolink. I can see live view of both cameras, but just the Amcrest doesn’t record clips. The recording option appears enabled on the UI.

Navigating to recordings for the Amcrest, I just get this:

No Recordings Found

Make sure you have enabled the record role in your configuration for the main_door camera.

Version

0.10.1-83481af

Frigate config file

mqtt:
  host: 192.168.0.199
  user: username
  password: <password>

detectors:
  coral:
    type: edgetpu
    device: usb

birdseye:
  enabled: True
  width: 1280
  height: 720
  quality: 8

objects:
  track:
    - person
    - cat
    - dog
    - car
    - bicycle
    - motorcycle

cameras:
  main_door:
    ffmpeg:
        hwaccel_args:
          - -c:v
          - h264_v4l2m2m
        inputs:
          - path: rtsp://admin:<password>@192.168.0.36:554/cam/realmonitor?channel=1&subtype=1
            roles:
              - detect
              - rtmp
          - path: rtsp://admin:<password>@192.168.0.36:554/cam/realmonitor?channel=1&subtype=0
            roles:
              - record
    motion:
      mask:
        - 640,0,640,29,304,24,210,102,203,204,138,210,110,184,124,0
    detect:
      width: 640
      height: 360
    zones:
      near_door:
        coordinates: 240,305,640,166,640,360,97,360,109,338,150,325
        objects:
          - person
          - cat
          - dog
      driveway:
        coordinates: 149,321,136,234,198,234,230,306
        objects:
          - person
          - cat
          - dog
      street:
        coordinates: 137,201,199,206,202,232,136,229
        objects:
          - person
          - cat
          - dog
    record:
      enabled: True
      retain_days: 0
      events:
        required_zones:
          - near_door
          - driveway
        retain:
          default: 5
          objects:
            person: 10
            cat: 1
            dog: 1


        
  garage_cam:
    ffmpeg:
      hwaccel_args:
        - -c:v
        - h264_v4l2m2m
      input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rw_timeout 5000000 -f live_flv
      inputs:
        - path: rtmp://192.168.0.188/bcs/channel0_sub.bcs?channel=0&stream=0&user=admin&password=<password>
          roles:
            - detect
            - rtmp
        - path: rtmp://192.168.0.188/bcs/channel0_main.bcs?channel=0&stream=0&user=admin&password=<password>
          roles:
            - record
    motion:
      mask:
        - 59,133,167,98,290,98,406,92,534,88,640,94,640,0,0,0,0,150
    zones:
      entryway:
        coordinates: 394,171,427,181,30,360,0,360,0,212
        objects:
          - person
          - cat
          - dog
      car_driveway:
        coordinates: 619,360,640,180,392,168,0,330,0,360
        objects:
          - person
          - cat
          - dog
          - car
          - bicycle
          - motorcycle
      footpath:
        coordinates: 122,140,640,160,640,180,114,159
        objects:
          - person
          - cat
          - dog
      opp_footpath:
        coordinates: 640,100,246,104,238,117,640,117
        objects:
          - person
          - cat
          - dog
      road:
        coordinates: 69,138,0,157,0,138,170,98,149,115,640,118,640,161
        objects:
          - car
          - bicycle
          - motorcycle
    detect:
      width: 640
      height: 360
    record:
      enabled: True
      retain_days: 0
      events:
        required_zones:
          - entryway
          - footpath
          - road
          - car_driveway
        retain:
          default: 5
          objects:
            person: 10
            cat: 1
            dog: 1
            car: 3
            bicycle: 3
            motorcycle: 3

Relevant log output

{
  "birdseye": {
    "enabled": true,
    "height": 720,
    "mode": "objects",
    "quality": 8,
    "width": 1280
  },
  "cameras": {
    "garage_cam": {
      "best_image_timeout": 60,
      "detect": {
        "enabled": true,
        "fps": 5,
        "height": 360,
        "max_disappeared": 25,
        "stationary": {
          "interval": 0,
          "max_frames": {
            "default": null,
            "objects": {}
          },
          "threshold": 50
        },
        "width": 640
      },
      "ffmpeg": {
        "global_args": [
          "-hide_banner",
          "-loglevel",
          "warning"
        ],
        "hwaccel_args": [
          "-c:v",
          "h264_v4l2m2m"
        ],
        "input_args": "-avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rw_timeout 5000000 -f live_flv",
        "inputs": [
          {
            "global_args": [],
            "hwaccel_args": [],
            "input_args": [],
            "path": "rtmp://192.168.0.188/bcs/channel0_sub.bcs?channel=0&stream=0&user=admin&password=<password>",
            "roles": [
              "detect",
              "rtmp"
            ]
          },
          {
            "global_args": [],
            "hwaccel_args": [],
            "input_args": [],
            "path": "rtmp://192.168.0.188/bcs/channel0_main.bcs?channel=0&stream=0&user=admin&password=<password>",
            "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 -c:v h264_v4l2m2m -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rw_timeout 5000000 -f live_flv -i rtmp://192.168.0.188/bcs/channel0_sub.bcs?channel=0&stream=0&user=admin&password=<password> -c copy -f flv rtmp://127.0.0.1/live/garage_cam -r 5 -s 640x360 -f rawvideo -pix_fmt yuv420p pipe:",
          "roles": [
            "detect",
            "rtmp"
          ]
        },
        {
          "cmd": "ffmpeg -hide_banner -loglevel warning -c:v h264_v4l2m2m -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rw_timeout 5000000 -f live_flv -i rtmp://192.168.0.188/bcs/channel0_main.bcs?channel=0&stream=0&user=admin&password=<password> -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an /tmp/cache/garage_cam-%Y%m%d%H%M%S.mp4",
          "roles": [
            "record"
          ]
        }
      ],
      "live": {
        "height": 720,
        "quality": 8
      },
      "motion": {
        "contour_area": 30,
        "delta_alpha": 0.2,
        "frame_alpha": 0.2,
        "frame_height": 50,
        "improve_contrast": false,
        "mask": [
          "59,133,167,98,290,98,406,92,534,88,640,94,640,0,0,0,0,150"
        ],
        "threshold": 25
      },
      "mqtt": {
        "bounding_box": true,
        "crop": true,
        "enabled": true,
        "height": 270,
        "quality": 70,
        "required_zones": [],
        "timestamp": true
      },
      "name": "garage_cam",
      "objects": {
        "filters": {
          "bicycle": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "car": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "cat": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "dog": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "motorcycle": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "person": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          }
        },
        "mask": "",
        "track": [
          "person",
          "cat",
          "dog",
          "car",
          "bicycle",
          "motorcycle"
        ]
      },
      "record": {
        "enabled": true,
        "events": {
          "max_seconds": 300,
          "objects": null,
          "post_capture": 5,
          "pre_capture": 5,
          "required_zones": [
            "entryway",
            "footpath",
            "road",
            "car_driveway"
          ],
          "retain": {
            "default": 5,
            "mode": "motion",
            "objects": {
              "bicycle": 3,
              "car": 3,
              "cat": 1,
              "dog": 1,
              "motorcycle": 3,
              "person": 10
            }
          }
        },
        "expire_interval": 60,
        "retain": {
          "days": 0,
          "mode": "all"
        },
        "retain_days": 0
      },
      "rtmp": {
        "enabled": true
      },
      "snapshots": {
        "bounding_box": true,
        "clean_copy": true,
        "crop": false,
        "enabled": false,
        "height": null,
        "quality": 70,
        "required_zones": [],
        "retain": {
          "default": 10,
          "mode": "motion",
          "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": {
        "car_driveway": {
          "coordinates": "619,360,640,180,392,168,0,330,0,360",
          "filters": {},
          "objects": [
            "person",
            "cat",
            "dog",
            "car",
            "bicycle",
            "motorcycle"
          ]
        },
        "entryway": {
          "coordinates": "394,171,427,181,30,360,0,360,0,212",
          "filters": {},
          "objects": [
            "person",
            "cat",
            "dog"
          ]
        },
        "footpath": {
          "coordinates": "122,140,640,160,640,180,114,159",
          "filters": {},
          "objects": [
            "person",
            "cat",
            "dog"
          ]
        },
        "opp_footpath": {
          "coordinates": "640,100,246,104,238,117,640,117",
          "filters": {},
          "objects": [
            "person",
            "cat",
            "dog"
          ]
        },
        "road": {
          "coordinates": "69,138,0,157,0,138,170,98,149,115,640,118,640,161",
          "filters": {},
          "objects": [
            "car",
            "bicycle",
            "motorcycle"
          ]
        }
      }
    },
    "main_door": {
      "best_image_timeout": 60,
      "detect": {
        "enabled": true,
        "fps": 5,
        "height": 360,
        "max_disappeared": 25,
        "stationary": {
          "interval": 0,
          "max_frames": {
            "default": null,
            "objects": {}
          },
          "threshold": 50
        },
        "width": 640
      },
      "ffmpeg": {
        "global_args": [
          "-hide_banner",
          "-loglevel",
          "warning"
        ],
        "hwaccel_args": [
          "-c:v",
          "h264_v4l2m2m"
        ],
        "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:<password>@192.168.0.36:554/cam/realmonitor?channel=1&subtype=1",
            "roles": [
              "detect",
              "rtmp"
            ]
          },
          {
            "global_args": [],
            "hwaccel_args": [],
            "input_args": [],
            "path": "rtsp://admin:<password>@192.168.0.36:554/cam/realmonitor?channel=1&subtype=0",
            "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 -c:v h264_v4l2m2m -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://admin:<password>@192.168.0.36:554/cam/realmonitor?channel=1&subtype=1 -c copy -f flv rtmp://127.0.0.1/live/main_door -r 5 -s 640x360 -f rawvideo -pix_fmt yuv420p pipe:",
          "roles": [
            "detect",
            "rtmp"
          ]
        },
        {
          "cmd": "ffmpeg -hide_banner -loglevel warning -c:v h264_v4l2m2m -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://admin:<password>@192.168.0.36:554/cam/realmonitor?channel=1&subtype=0 -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an /tmp/cache/main_door-%Y%m%d%H%M%S.mp4",
          "roles": [
            "record"
          ]
        }
      ],
      "live": {
        "height": 720,
        "quality": 8
      },
      "motion": {
        "contour_area": 30,
        "delta_alpha": 0.2,
        "frame_alpha": 0.2,
        "frame_height": 50,
        "improve_contrast": false,
        "mask": [
          "640,0,640,29,304,24,210,102,203,204,138,210,110,184,124,0"
        ],
        "threshold": 25
      },
      "mqtt": {
        "bounding_box": true,
        "crop": true,
        "enabled": true,
        "height": 270,
        "quality": 70,
        "required_zones": [],
        "timestamp": true
      },
      "name": "main_door",
      "objects": {
        "filters": {
          "bicycle": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "car": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "cat": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "dog": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "motorcycle": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "person": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          }
        },
        "mask": "",
        "track": [
          "person",
          "cat",
          "dog",
          "car",
          "bicycle",
          "motorcycle"
        ]
      },
      "record": {
        "enabled": true,
        "events": {
          "max_seconds": 300,
          "objects": null,
          "post_capture": 5,
          "pre_capture": 5,
          "required_zones": [
            "near_door",
            "driveway"
          ],
          "retain": {
            "default": 5,
            "mode": "motion",
            "objects": {
              "cat": 1,
              "dog": 1,
              "person": 10
            }
          }
        },
        "expire_interval": 60,
        "retain": {
          "days": 0,
          "mode": "all"
        },
        "retain_days": 0
      },
      "rtmp": {
        "enabled": true
      },
      "snapshots": {
        "bounding_box": true,
        "clean_copy": true,
        "crop": false,
        "enabled": false,
        "height": null,
        "quality": 70,
        "required_zones": [],
        "retain": {
          "default": 10,
          "mode": "motion",
          "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": {
        "driveway": {
          "coordinates": "149,321,136,234,198,234,230,306",
          "filters": {},
          "objects": [
            "person",
            "cat",
            "dog"
          ]
        },
        "near_door": {
          "coordinates": "240,305,640,166,640,360,97,360,109,338,150,325",
          "filters": {},
          "objects": [
            "person",
            "cat",
            "dog"
          ]
        },
        "street": {
          "coordinates": "137,201,199,206,202,232,136,229",
          "filters": {},
          "objects": [
            "person",
            "cat",
            "dog"
          ]
        }
      }
    }
  },
  "database": {
    "path": "/media/frigate/frigate.db"
  },
  "detect": {
    "enabled": true,
    "fps": 5,
    "height": 720,
    "max_disappeared": null,
    "stationary": {
      "interval": 0,
      "max_frames": {
        "default": null,
        "objects": {}
      },
      "threshold": null
    },
    "width": 1280
  },
  "detectors": {
    "coral": {
      "device": "usb",
      "num_threads": 3,
      "type": "edgetpu"
    }
  },
  "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": null,
  "mqtt": {
    "client_id": "frigate",
    "host": "192.168.0.199",
    "password": "<password>",
    "port": 1883,
    "stats_interval": 60,
    "tls_ca_certs": null,
    "tls_client_cert": null,
    "tls_client_key": null,
    "tls_insecure": null,
    "topic_prefix": "frigate",
    "user": "lxq_ikrana"
  },
  "objects": {
    "filters": null,
    "mask": "",
    "track": [
      "person",
      "cat",
      "dog",
      "car",
      "bicycle",
      "motorcycle"
    ]
  },
  "record": {
    "enabled": false,
    "events": {
      "max_seconds": 300,
      "objects": null,
      "post_capture": 5,
      "pre_capture": 5,
      "required_zones": [],
      "retain": {
        "default": 10,
        "mode": "motion",
        "objects": {}
      }
    },
    "expire_interval": 60,
    "retain": {
      "days": 0,
      "mode": "all"
    },
    "retain_days": null
  },
  "rtmp": {
    "enabled": true
  },
  "snapshots": {
    "bounding_box": true,
    "clean_copy": true,
    "crop": false,
    "enabled": false,
    "height": null,
    "quality": 70,
    "required_zones": [],
    "retain": {
      "default": 10,
      "mode": "motion",
      "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
  }
}

FFprobe output from your camera

Not sure what this is

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Network connection

Wireless

Camera make and model

Amcrest AD110

Any other information that may be helpful

I checked these two issues: https://github.com/blakeblackshear/frigate/issues/2129 https://github.com/blakeblackshear/frigate/issues/3008

#2129 doesn’t appear to be my issue, because the recording function is enabled in the debug JSON and on the UI. #3008 looks like my issue, but I’m not sure what the resolution for that was… it appeared to just start working after a while?

image This seems to show detection fps for the amcrest at 0. Maybe that’s the problem?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:23 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
blakeblackshearcommented, Apr 8, 2022

I’m wondering if the “resource” it is referring to is actually the GPU where you have configured hardware acceleration. Does it work without the hwaccel_args?

0reactions
stale[bot]commented, May 8, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Arlo Pro 2 cameras stopped recording
All 3 of my wireless cameras quit recording over a week ago. I had charged two of them then noticed after a couple...
Read more >
Camera Stops Recording to the PC - Reolink Support
Cause 1: The record schedule setting is not set up correctly. Solutions: Please make sure the Record settings are set up correctly. For...
Read more >
Cameras not recording any events - Wyze Forum
In my case one Cam 1 and two v2 (with cam lite) don't record anything. All my other cameras(v2 and v3 with cam...
Read more >
How to Troubleshoot Loss of Video on your Security Recorder
106K views 2 years ago How To Videos ... Get Social with Security Camera King: On Facebook: http://www.facebook.com/pages/Securit.
Read more >
Cameras stop recording at 5am every day : r/blinkcameras
My blink mini stops recording between 5 and 6 AM every day. ... with blinks customer care two days ago, they assured me...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found