blakeblackshear / frigate

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

[Camera Support]: Reolink RLC-810A #5408

Closed ghost closed 1 year ago

ghost commented 1 year ago

Describe the problem you are having

Greetings, I am a newcomer to Frigate and have faced some challenges in getting it to work properly.

I have made efforts to educate myself by reading available resources and have finally succeeded in getting it to function.

However, I am eager to utilize my Reolink camera in 4K resolution and understand that H265 codec is required for this model. Unfortunately, when I implement H265, the feed appears green.

My config file may not be optimal, however it does allow the camera to function, except for audio and hardware acceleration which I have yet to figure out. I am currently running the latest beta version and have heard that the RTSP protocol may bring better results.

Although I have much to learn, I am feeling a bit overwhelmed by the task at hand. I dedicated six hours yesterday trying to improve the situation, to no avail.

I would greatly appreciate any assistance you could provide. Thank you for your time and consideration.

Version

0.12.0-66881EB

Frigate config file

mqtt:
  host: core-mosquitto
  user: user
  password: pass

cameras:
  FrontDoor:
    ffmpeg:
      inputs:
        - path: rtsp://user:pass@192.168.50.174:554
          roles:
            - detect
            - rtmp
      output_args:
        detect: '-vf scale=1920:1080 -f rawvideo -pix_fmt yuv420p'
        rtmp: '-aspect 1920:1080 -c copy -f flv'
    record:
      enabled: True
      retain:
        days: 7
        mode: all

  Tempo:
    ffmpeg:
      input_args:
        - -avoid_negative_ts
        - make_zero
        - -fflags
        - +genpts+discardcorrupt
        - -flags
        - low_delay
        - -strict
        - experimental
        - -analyzeduration
        - 1000M
        - -probesize
        - 1000M
        - -rw_timeout
        - "5000000"
      inputs:
        - path: rtmp://192.168.50.201/bcs/channel0_main.bcs?channel=0&stream=0&user=user&password=pass
          roles:
            - record
            - rtmp
    detect:
      width: 1920
      height: 1080
      fps: 25
    record:
      enabled: True
      retain:
        days: 7
        mode: all

Relevant log output

2023-02-07 00:23:47.815056553  [2023-02-06 19:23:47] frigate.app                    INFO    : Starting Frigate (0.12.0-66881eb)
2023-02-07 00:23:47.833790517  [2023-02-06 19:23:47] frigate.app                    INFO    : Creating directory: /tmp/cache
2023-02-07 00:23:47.835559414  [2023-02-06 19:23:47] peewee_migrate                 INFO    : Starting migrations
2023-02-07 00:23:47.839196114  [2023-02-06 19:23:47] peewee_migrate                 INFO    : There is nothing to migrate
2023-02-07 00:23:47.851092158  [2023-02-06 19:23:47] frigate.app                    INFO    : Output process started: 292
2023-02-07 00:23:47.860402026  [2023-02-06 19:23:47] detector.cpu                   INFO    : Starting detection process: 291
2023-02-07 00:23:47.860671430  [2023-02-06 19:23:47] frigate.detectors              WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2023-02-07 00:23:47.862432265  [2023-02-06 19:23:47] frigate.app                    INFO    : Camera processor started for FrontDoor: 297
2023-02-07 00:23:47.862435070  [2023-02-06 19:23:47] frigate.app                    INFO    : Camera processor started for Tempo: 298
2023-02-07 00:23:47.863359852  [2023-02-06 19:23:47] frigate.app                    INFO    : Capture process started for FrontDoor: 299
2023-02-07 00:23:47.867431740  [2023-02-06 19:23:47] frigate.app                    INFO    : Capture process started for Tempo: 300
2023-02-07 00:24:48.051417089  [2023-02-06 19:24:48] frigate.record                 WARNING : Unable to find file from recordings database: /media/frigate/recordings/2023-02/06/01/FrontDoor/56.05.mp4
2023-02-07 01:21:50.492410602  [2023-02-06 20:21:50] frigate.comms.dispatcher       INFO    : Turning off recordings for FrontDoor
2023-02-07 01:21:52.050022800  [2023-02-06 20:21:52] frigate.comms.dispatcher       INFO    : Turning on recordings for FrontDoor
2023-02-07 01:21:54.068499967  [2023-02-06 20:21:54] frigate.comms.dispatcher       INFO    : Turning off detection for FrontDoor
2023-02-07 01:21:55.412411114  [2023-02-06 20:21:55] frigate.comms.dispatcher       INFO    : Turning on detection for FrontDoor
2023-02-07 01:21:56.341517705  [2023-02-06 20:21:56] frigate.comms.dispatcher       INFO    : Turning off detection for FrontDoor
2023-02-07 01:21:58.908635068  [2023-02-06 20:21:58] frigate.comms.dispatcher       INFO    : Turning on detection for FrontDoor
2023-02-07 01:22:00.718927561  [2023-02-06 20:22:00] frigate.comms.dispatcher       INFO    : Turning off recordings for FrontDoor
2023-02-07 01:22:01.341356354  [2023-02-06 20:22:01] frigate.comms.dispatcher       INFO    : Turning on snapshots for FrontDoor
2023-02-07 01:22:02.436211055  [2023-02-06 20:22:02] frigate.comms.dispatcher       INFO    : Turning off snapshots for FrontDoor
2023-02-07 01:24:48.111830840  [2023-02-06 20:24:48] frigate.record                 WARNING : Unable to find file from recordings database: /media/frigate/recordings/2023-02/06/01/FrontDoor/56.15.mp4

FFprobe output from your camera

"[\n  {\n    \"return_code\": 0,\n    \"stderr\": {},\n    \"stdout\": {}\n  }\n]"

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

Reolink RLC-810A

Any other information that may be helpful

No response

NickM-27 commented 1 year ago

There are some things that are unclear from your explanation so I'd ask what you answer these questions.

  1. What cameras in your config and which camera models?
  2. What is actually not working? (Give a numbered list)
  3. What device (CPU, GPU) are you running on?

Things to be aware of:

  1. It's recommended to use a sub stream for detect.
  2. Do be aware you should not set detect fps to 25, it can be lower than your cameras fps. Recommended value is 5
  3. I'd suggest leaving detect output args alone. Also you shouldn't be using rtmp role, it is deprecated in favor of the new go2rtc restream.
ghost commented 1 year ago

What cameras in your config and which camera models? -FrontDoor = Amcrest AD410 -Tempo = Reolink RLC-810A What is actually not working? (Give a numbered list) 1- I can't use my Reolink in 4K, have to downscale to 1440P in order to use the H.264 steam since I get a green screen with the H.265 2- My AD410 runs at 5FPS for some reason 3- Since I've upgraded to 0.12 Beta, I can't go back to the timeline (Timeline View) to play video (Detection work and those clip works.) 4- No Audio 5- No Hardware Acceleration What device (CPU, GPU) are you running on? -CPU = Intel Core i5-10400 -GPU = iGPU (Intel UHD Graphics 630) -RAM = 32GB DDR4

NickM-27 commented 1 year ago

What is actually not working? (Give a numbered list) 1- I can't use my Reolink in 4K, have to downscale to 1440P in order to use the H.264 steam since I get a green screen with the H.265

You need to switch it back to H.265 and show the logs for that error otherwise there is no way to help.

2- My AD410 runs at 5FPS for some reason

What runs at 5 fps?

3- Since I've upgraded to 0.12 Beta, I can't go back to the timeline (Timeline View) to play video (Detection work and those clip works.)

What timeline view? It is unclear what you are referring to

4- No Audio

https://deploy-preview-4055--frigate-docs.netlify.app/troubleshooting/faqs#audio-in-recordings

5- No Hardware Acceleration

https://deploy-preview-4055--frigate-docs.netlify.app/configuration/hardware_acceleration

AshtonKem commented 1 year ago

Here's what I have working so far for my 810A. Unfortunately, this is not full resolution.

          shed:
            record:
              enabled: True
            detect:
              width: 3840
              height: 2160
              fps: 25          
            ffmpeg:
              input_args:
                - -avoid_negative_ts
                - make_zero
                - -fflags
                - nobuffer+genpts+discardcorrupt
                - -flags
                - low_delay
                - -strict
                - experimental
                - -analyzeduration
                - 1000M
                - -probesize
                - 1000M
                - -rw_timeout
                - "5000000"
              inputs:
                - path: http://10.0.0.232/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=frigate&password={FRIGATE_REOLINK_PASSWORD}
                  roles:
                    - rtmp
                    - detect
                    - record
github-actions[bot] commented 1 year 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.