blakeblackshear / frigate

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

reolink doorbell cam keep dropping need help no frames have been received #8708

Closed pressurejets closed 10 months ago

pressurejets commented 12 months ago

Describe the problem you are having

i have 3 camera all reolink , 2 working but having problem with doorbell camera

if anyone can work out what all the error is and why the door bell camera not working thanks in advantage

too many errors confused

Version

v4.0.0

Frigate config file

mqtt:
  enabled: False
go2rtc:
  streams:

    reolink:
      - rtsp://admin:password@192.168.4.58:554/h264Preview_01_sub
      - ffmpeg:rtsp://admin:password@192.168.4.58:554/h264Preview_01_sub#audio=pcm#audio=volume
    reolinkfront:
      - rtsp://admin:password@192.168.4.50:554/h264Preview_01_sub
      - ffmpeg:rtsp://admin:password@192.168.4.50:554/h264Preview_01_sub#audio=pcm#audio=volume
    reolinkback:
      - rtsp://admin:password@192.168.4.52:554/h264Preview_01_sub
      - ffmpeg:rtsp://admin:Spassword@192.168.4.52:554/h264Preview_01_sub#audio=pcm#audio=volume

## THIS PREVENTS THE AUDIO COMING OUT FROM THE DOORBELL SOUNDING MUFFLED
  ffmpeg:
    bin: ffmpeg
    volume: "-af \"volume=30dB\""

cameras:

  reolink:
    ffmpeg:
      inputs:
                        ## CHANGE RTSP USERNAME AND PASSWORD

        - path: rtsp://admin:password@192.168.4.58:554/h264Preview_01_sub
          roles:
            - detect
            - record
      output_args:
        record: preset-record-generic-audio-copy

    record:
      enabled: True
      retain:
        days: 7
        mode: all

    detect:
      width: 1280
      height: 720
      fps: 5

    snapshots:
      enabled: True
      timestamp: False
      bounding_box: True
      retain:
        default: 10
  reolinkfront:
    ffmpeg:
      input_args: -rtsp_transport tcp
      inputs:
                        ## CHANGE RTSP USERNAME AND PASSWORD

        - path: rtsp://admin:password@192.168.4.50:554/h264Preview_01_sub
          roles:
            - detect
            - record
            - rtmp
      output_args:
        record: preset-record-generic-audio-copy
    record:
      enabled: True
      retain:
        days: 7
        mode: all

    detect:
      width: 1280
      height: 720
      fps: 5
    rtmp: 
      enabled: true
    snapshots:
      enabled: True
      timestamp: False
      bounding_box: True
      retain:
        default: 10
  reolinkback:
    ffmpeg:
      inputs:
                        ## CHANGE RTSP USERNAME AND PASSWORD

        - path: rtsp://admin:password@192.168.4.52:554/h264Preview_01_sub
          roles:
            - detect
            - record
      output_args:
        record: preset-record-generic-audio-copy
    record:
      enabled: True
      retain:
        days: 7
        mode: all

    detect:
      width: 1280
      height: 720
      fps: 5
    snapshots:
      enabled: True
      timestamp: False
      bounding_box: True
      retain:
        default: 10

Relevant log output

2023-11-21 21:02:58.249910377  [INFO] Starting Frigate...
2023-11-21 21:03:00.323192892  [2023-11-21 21:03:00] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
2023-11-21 21:03:00.353842057  [2023-11-21 21:03:00] frigate.config                 WARNING : RTMP restream is deprecated in favor of the restream role, recommend disabling RTMP.
2023-11-21 21:03:00.367688244  [2023-11-21 21:03:00] frigate.app                    INFO    : Creating directory: /tmp/cache
2023-11-21 21:03:00.370783381  [2023-11-21 21:03:00] peewee_migrate                 INFO    : Starting migrations
2023-11-21 21:03:00.378496159  [2023-11-21 21:03:00] peewee_migrate                 INFO    : There is nothing to migrate
2023-11-21 21:03:00.395960766  [2023-11-21 21:03:00] detector.cpu                   INFO    : Starting detection process: 299
2023-11-21 21:03:00.404873998  [2023-11-21 21:03:00] frigate.app                    INFO    : Output process started: 301
2023-11-21 21:03:00.404883353  [2023-11-21 21:03:00] frigate.detectors              WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2023-11-21 21:03:00.406852031  [2023-11-21 21:03:00] frigate.app                    INFO    : Camera processor started for reolink: 304
2023-11-21 21:03:00.414037936  [2023-11-21 21:03:00] frigate.app                    INFO    : Camera processor started for reolinkfront: 306
2023-11-21 21:03:00.421281616  [2023-11-21 21:03:00] frigate.app                    INFO    : Camera processor started for reolinkback: 307
2023-11-21 21:03:00.429492793  [2023-11-21 21:03:00] frigate.app                    INFO    : Capture process started for reolink: 309
2023-11-21 21:03:00.437485667  [2023-11-21 21:03:00] frigate.app                    INFO    : Capture process started for reolinkfront: 310
2023-11-21 21:03:00.445364142  [2023-11-21 21:03:00] frigate.app                    INFO    : Capture process started for reolinkback: 312
2023-11-21 21:03:41.127924275  [2023-11-21 21:03:41] frigate.video                  ERROR   : reolink: Unable to read frames from ffmpeg process.
2023-11-21 21:03:41.128138328  [2023-11-21 21:03:41] frigate.video                  ERROR   : reolink: ffmpeg process is not running. exiting capture thread...
2023-11-21 21:03:50.489045834  [2023-11-21 21:03:50] watchdog.reolink               ERROR   : Ffmpeg process crashed unexpectedly for reolink.
2023-11-21 21:03:50.489351574  [2023-11-21 21:03:50] watchdog.reolink               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-21 21:03:50.489730582  [2023-11-21 21:03:50] ffmpeg.reolink.detect          ERROR   : [segment @ 0x557c6add1440] 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
2023-11-21 21:03:50.517154225  [2023-11-21 21:03:50] frigate.video                  ERROR   : reolink: Unable to read frames from ffmpeg process.
2023-11-21 21:03:50.517412013  [2023-11-21 21:03:50] frigate.video                  ERROR   : reolink: ffmpeg process is not running. exiting capture thread...
2023-11-21 21:04:00.502631646  [2023-11-21 21:04:00] watchdog.reolink               ERROR   : Ffmpeg process crashed unexpectedly for reolink.
2023-11-21 21:04:00.503212136  [2023-11-21 21:04:00] watchdog.reolink               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-21 21:04:00.504247128  [2023-11-21 21:04:00] ffmpeg.reolink.detect          ERROR   : [tcp @ 0x55be9d396540] Connection to tcp://192.168.4.58:554?timeout=5000000 failed: Connection refused
2023-11-21 21:04:00.504261957  [2023-11-21 21:04:00] ffmpeg.reolink.detect          ERROR   : rtsp://*:*@192.168.4.58:554/h264Preview_01_sub: Connection refused
2023-11-21 21:04:00.548864029  [2023-11-21 21:04:00] frigate.video                  ERROR   : reolink: Unable to read frames from ffmpeg process.
2023-11-21 21:04:00.549170664  [2023-11-21 21:04:00] frigate.video                  ERROR   : reolink: ffmpeg process is not running. exiting capture thread...
2023-11-21 21:04:10.523107990  [2023-11-21 21:04:10] watchdog.reolink               ERROR   : Ffmpeg process crashed unexpectedly for reolink.
2023-11-21 21:04:10.523797716  [2023-11-21 21:04:10] watchdog.reolink               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-21 21:04:10.524265974  [2023-11-21 21:04:10] ffmpeg.reolink.detect          ERROR   : [tcp @ 0x5610e7cc0540] Connection to tcp://192.168.4.58:554?timeout=5000000 failed: Connection refused
2023-11-21 21:04:10.524593644  [2023-11-21 21:04:10] ffmpeg.reolink.detect          ERROR   : rtsp://*:*@192.168.4.58:554/h264Preview_01_sub: Connection refused
2023-11-21 21:04:10.576846653  [2023-11-21 21:04:10] frigate.video                  ERROR   : reolink: Unable to read frames from ffmpeg process.
2023-11-21 21:04:10.577130844  [2023-11-21 21:04:10] frigate.video                  ERROR   : reolink: ffmpeg process is not running. exiting capture thread...
2023-11-21 21:04:20.538888435  [2023-11-21 21:04:20] watchdog.reolink               ERROR   : Ffmpeg process crashed unexpectedly for reolink.
2023-11-21 21:04:20.539348936  [2023-11-21 21:04:20] watchdog.reolink               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-21 21:04:20.539804650  [2023-11-21 21:04:20] ffmpeg.reolink.detect          ERROR   : [tcp @ 0x55874af7b540] Connection to tcp://192.168.4.58:554?timeout=5000000 failed: Connection refused
2023-11-21 21:04:20.540107093  [2023-11-21 21:04:20] ffmpeg.reolink.detect          ERROR   : rtsp://*:*@192.168.4.58:554/h264Preview_01_sub: Connection refused
2023-11-21 21:04:20.587014745  [2023-11-21 21:04:20] frigate.video                  ERROR   : reolink: Unable to read frames from ffmpeg process.
2023-11-21 21:04:20.587332480  [2023-11-21 21:04:20] frigate.video                  ERROR   : reolink: ffmpeg process is not running. exiting capture thread...
2023-11-21 21:04:30.554747847  [2023-11-21 21:04:30] watchdog.reolink               ERROR   : Ffmpeg process crashed unexpectedly for reolink.
2023-11-21 21:04:30.555231831  [2023-11-21 21:04:30] watchdog.reolink               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-21 21:04:30.555590222  [2023-11-21 21:04:30] ffmpeg.reolink.detect          ERROR   : [tcp @ 0x561b1e44f540] Connection to tcp://192.168.4.58:554?timeout=5000000 failed: Connection refused
2023-11-21 21:04:30.556229452  [2023-11-21 21:04:30] ffmpeg.reolink.detect          ERROR   : rtsp://*:*@192.168.4.58:554/h264Preview_01_sub: Connection refused
2023-11-21 21:04:30.607458817  [2023-11-21 21:04:30] frigate.video                  ERROR   : reolink: Unable to read frames from ffmpeg process.
2023-11-21 21:04:30.607714132  [2023-11-21 21:04:30] frigate.video                  ERROR   : reolink: ffmpeg process is not running. exiting capture thread...
2023-11-21 21:04:40.569972147  [2023-11-21 21:04:40] watchdog.reolink               ERROR   : Ffmpeg process crashed unexpectedly for reolink.
2023-11-21 21:04:40.569980849  [2023-11-21 21:04:40] watchdog.reolink               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-21 21:04:40.569986099  [2023-11-21 21:04:40] ffmpeg.reolink.detect          ERROR   : [tcp @ 0x559653d26540] Connection to tcp://192.168.4.58:554?timeout=5000000 failed: Connection refused
2023-11-21 21:04:40.570499397  [2023-11-21 21:04:40] ffmpeg.reolink.detect          ERROR   : rtsp://*:*@192.168.4.58:554/h264Preview_01_sub: Connection refused
2023-11-21 21:04:45.603126741  [2023-11-21 21:04:45] frigate.video                  ERROR   : reolink: Unable to read frames from ffmpeg process.
2023-11-21 21:04:45.603651548  [2023-11-21 21:04:45] frigate.video                  ERROR   : reolink: ffmpeg process is not running. exiting capture thread...
2023-11-21 21:04:50.588938473  [2023-11-21 21:04:50] watchdog.reolink               ERROR   : Ffmpeg process crashed unexpectedly for reolink.
2023-11-21 21:04:50.590706945  [2023-11-21 21:04:50] watchdog.reolink               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-21 21:04:50.590722436  [2023-11-21 21:04:50] ffmpeg.reolink.detect          ERROR   : [tcp @ 0x556b26ee5540] Connection to tcp://192.168.4.58:554?timeout=5000000 failed: Connection timed out
2023-11-21 21:04:50.590731431  [2023-11-21 21:04:50] ffmpeg.reolink.detect          ERROR   : rtsp://*:*@192.168.4.58:554/h264Preview_01_sub: Connection timed out
2023-11-21 21:04:55.622746672  [2023-11-21 21:04:55] frigate.video                  ERROR   : reolink: Unable to read frames from ffmpeg process.
2023-11-21 21:04:55.624026967  [2023-11-21 21:04:55] frigate.video                  ERROR   : reolink: ffmpeg process is not running. exiting capture thread...
2023-11-21 21:05:00.609082748  [2023-11-21 21:05:00] watchdog.reolink               ERROR   : Ffmpeg process crashed unexpectedly for reolink.
2023-11-21 21:05:00.609099808  [2023-11-21 21:05:00] watchdog.reolink               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-21 21:05:00.609109600  [2023-11-21 21:05:00] ffmpeg.reolink.detect          ERROR   : [tcp @ 0x562007867540] Connection to tcp://192.168.4.58:554?timeout=5000000 failed: Connection timed out
2023-11-21 21:05:00.609118330  [2023-11-21 21:05:00] ffmpeg.reolink.detect          ERROR   : rtsp://*:*@192.168.4.58:554/h264Preview_01_sub: Connection timed out
2023-11-21 21:05:03.968093065  [2023-11-21 21:05:03] frigate.video                  ERROR   : reolink: Unable to read frames from ffmpeg process.
2023-11-21 21:05:03.968102137  [2023-11-21 21:05:03] frigate.video                  ERROR   : reolink: ffmpeg process is not running. exiting capture thread...
2023-11-21 21:05:10.627942763  [2023-11-21 21:05:10] watchdog.reolink               ERROR   : Ffmpeg process crashed unexpectedly for reolink.
2023-11-21 21:05:10.632856299  [2023-11-21 21:05:10] watchdog.reolink               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-21 21:05:10.633372678  [2023-11-21 21:05:10] ffmpeg.reolink.detect          ERROR   : [rtsp @ 0x5563aafc7140] method DESCRIBE failed: 404 Stream Not Found
2023-11-21 21:05:10.633379751  [2023-11-21 21:05:10] ffmpeg.reolink.detect          ERROR   : rtsp://*:*@192.168.4.58:554/h264Preview_01_sub: Server returned 404 Not Found
2023-11-21 21:05:10.878128959  [2023-11-21 21:05:10] frigate.video                  ERROR   : reolink: Unable to read frames from ffmpeg process.
2023-11-21 21:05:10.878422533  [2023-11-21 21:05:10] frigate.video                  ERROR   : reolink: ffmpeg process is not running. exiting capture thread...
2023-11-21 21:05:20.640744620  [2023-11-21 21:05:20] watchdog.reolink               ERROR   : Ffmpeg process crashed unexpectedly for reolink.
2023-11-21 21:05:20.642068734  [2023-11-21 21:05:20] watchdog.reolink               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-21 21:05:20.642083923  [2023-11-21 21:05:20] ffmpeg.reolink.detect          ERROR   : [rtsp @ 0x5575101ff140] method DESCRIBE failed: 404 Stream Not Found
2023-11-21 21:05:20.642093881  [2023-11-21 21:05:20] ffmpeg.reolink.detect          ERROR   : rtsp://*:*@192.168.4.58:554/h264Preview_01_sub: Server returned 404 Not Found
2023-11-21 21:05:20.904227119  [2023-11-21 21:05:20] frigate.video                  ERROR   : reolink: Unable to read frames from ffmpeg process.
2023-11-21 21:05:20.904422777  [2023-11-21 21:05:20] frigate.video                  ERROR   : reolink: ffmpeg process is not running. exiting capture thread...
2023-11-21 21:05:30.659180896  [2023-11-21 21:05:30] watchdog.reolink               ERROR   : Ffmpeg process crashed unexpectedly for reolink.
2023-11-21 21:05:30.659800676  [2023-11-21 21:05:30] watchdog.reolink               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-21 21:05:30.659808511  [2023-11-21 21:05:30] ffmpeg.reolink.detect          ERROR   : [rtsp @ 0x560ef12bd140] method DESCRIBE failed: 404 Stream Not Found
2023-11-21 21:05:30.659813508  [2023-11-21 21:05:30] ffmpeg.reolink.detect          ERROR   : rtsp://*:*@192.168.4.58:554/h264Preview_01_sub: Server returned 404 Not Found

FFprobe output from your camera

cant get it

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Network connection

Wireless

Camera make and model

reolink doorbell wifi

Any other information that may be helpful

using go2rtc 1.8.1

pressurejets commented 12 months ago

get losing on the door bell cam why

NickM-27 commented 12 months ago

I'd suggest using the config from the docs https://docs.frigate.video/configuration/camera_specific#reolink-cameras

pressurejets commented 12 months ago

I just not be doing some think right >>

first i have all 3 camera stream in go2tc rtc

frigate config below `mqtt: enabled: False

go2rtc: streams: front:

cameras: reolink: ffmpeg: inputs:

one camera doorcamera is not working

log error 2023-11-22 03:26:39.318539451 03:26:39.318 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.4.58/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=password 2023-11-22 03:26:39.318592924 03:26:39.318 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=door_sub

frigate log 2023-11-22 03:27:58.768658775 [2023-11-22 03:27:58] ffmpeg.doorcamera.detect ERROR : [rtsp @ 0x55b1828fdc40] method DESCRIBE failed: 404 Not Found 2023-11-22 03:27:58.769043781 [2023-11-22 03:27:58] ffmpeg.doorcamera.detect ERROR : rtsp://127.0.0.1:8554/door_sub?video=copy: Server returned 404 Not Found 2023-11-22 03:27:59.224070085 [2023-11-22 03:27:59] frigate.video ERROR : doorcamera: Unable to read frames from ffmpeg process. 2023-11-22 03:27:59.224448846 [2023-11-22 03:27:59] frigate.video ERROR : doorcamera: ffmpeg process is not running. exiting capture thread...

connect connection refused

whats going on

NickM-27 commented 12 months ago

you'll need to make sure the username and password are correct and not too complex, reolink can be weird with some complex passwords

snootched commented 11 months ago

From my experience, even with the right config - you will still get drops from the reolink doorbell camera on wifi. Could be minutes to hours in between drops - even with the router basically right next to it :) Ran ethernet to it instead - and rock solid. Not a single drop since. YMMV.

akusokuzan commented 11 months ago

Yeah I have 2 cameras and the wired one works great no issues but my doorbell even though it is almost exactly 6ft away I still get this issue. But my wired camera never does this. Usually if i open the reolink app and press play then reopen HA and try it usually starts working again. It's almost seems like the doorbell just goes into so kind of sleep mode. Glad I'm not the only one with this issues and my wifi is solid I'm rocking 3 ubiquiti APs.

github-actions[bot] commented 10 months 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.