blakeblackshear / frigate

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

[Support]: White screen on camera live #6149

Closed moseisleydk closed 1 year ago

moseisleydk commented 1 year ago

Describe the problem you are having

I have 4 Reoliunk cams.

I have tried every config possible - http, rtsp, rtmp..

https://www.digimoot.com/frigate-nvr-reolink-camera-configuration/ https://docs.frigate.video/configuration/camera_specific

**Nomatter what, in 95% of the cases, a camera view as http://10.0.0.183:5000/cameras/frigate_carport_cam

are just a white square....**

Going to the "Debug" screen for the cam, its a stale pciture from the last start time of frigate. Also the "overview" is just 4 stills from last restart.

Stats on the debug page does not change.

Tested in chrome, safari and Firefox on osx.

Version

0.11.1-2EADA21

Frigate config file

mqtt:
  host: 10.0.0.183
cameras:
  frigate_front_door_cam:
    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: http://10.0.0.151/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=***
          roles:
            - detect
            - clips
    rtmp:
      enabled: False
    detect:
      width: 2560
      height: 1920
      fps: 7
    objects:
      track:
        - person
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: True
      retain:
        default: 2
  frigate_garden_cam:
    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: http://10.0.0.108/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=***
          roles:
            - detect
            - clips
    rtmp:
      enabled: False
    detect:
      width: 2560
      height: 1920
      fps: 7
  frigate_behind_house_cam:
    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: http://10.0.0.176/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=***
          roles:
            - detect
            - clips
    rtmp:
      enabled: False
    detect:
      width: 2560
      height: 1920
      fps: 7
  frigate_carport_cam:
    ffmpeg:
      input_args:
        - -avoid_negative_ts
        - make_zero
      inputs:
        - path: rtmp://10.0.0.191:1935/bcs/channel0_main.bcs?channel=0&stream=0&user=admin&password=***
          roles:
            - detect
            - clips
    rtmp:
      enabled: False
    detect:
      width: 2560
      height: 1920
      fps: 7
    objects:
      track:
        - person
        - car
detectors:
  coral:
    type: edgetpu
    device: usb

Relevant log output

Docker logs "just shows":

2023-04-18T20:51:41.456356007Z [2023-04-18 22:51:41] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36440]
2023-04-18T20:51:43.087193897Z [2023-04-18 22:51:43] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36440]
2023-04-18T20:51:43.142256100Z [2023-04-18 22:51:43] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36454]
2023-04-18T20:51:43.751329981Z [2023-04-18 22:51:43] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36454]
2023-04-18T20:51:43.807231356Z [2023-04-18 22:51:43] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36464]
2023-04-18T20:51:44.300303230Z [2023-04-18 22:51:44] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36464]
2023-04-18T20:51:44.352896366Z [2023-04-18 22:51:44] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36468]
2023-04-18T20:51:48.493283874Z [2023-04-18 22:51:48] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:50536]
2023-04-18T20:51:49.651904682Z [2023-04-18 22:51:49] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36468]
2023-04-18T20:51:49.652759108Z [2023-04-18 22:51:49] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:50536]
2023-04-18T20:51:49.702571824Z [2023-04-18 22:51:49] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:42942]
2023-04-18T20:51:49.746500943Z [2023-04-18 22:51:49] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:50542]
2023-04-18T20:51:51.096318673Z [2023-04-18 22:51:51] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:50542]
2023-04-18T20:51:53.102264597Z [2023-04-18 22:51:53] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:50554]
2023-04-18T20:51:55.151897852Z [2023-04-18 22:51:55] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:50554]
2023-04-18T20:53:17.469078091Z [2023-04-18 22:53:17] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:42942]
2023-04-18T20:54:00.901671686Z [2023-04-18 22:54:00] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:53586]

FFprobe output from your camera

n/a

Frigate stats

{"detection_fps":90.39,"detectors":{"coral":{"detection_start":0.0,"inference_speed":30.8,"pid":216}},"frigate_behind_house_cam":{"camera_fps":0.45,"capture_pid":238,"detection_fps":41.26,"pid":226,"process_fps":0.43,"skipped_fps":0.0},"frigate_carport_cam":{"camera_fps":1.44,"capture_pid":243,"detection_fps":21.03,"pid":229,"process_fps":0.74,"skipped_fps":0.0},"frigate_front_door_cam":{"camera_fps":2.22,"capture_pid":231,"detection_fps":18.3,"pid":220,"process_fps":1.38,"skipped_fps":0.0},"frigate_garden_cam":{"camera_fps":3.66,"capture_pid":234,"detection_fps":9.8,"pid":223,"process_fps":2.96,"skipped_fps":0.0},"service":{"latest_version":"0.12.0","storage":{"/dev/shm":{"free":14.8,"mount_type":"tmpfs","total":67.1,"used":52.3},"/media/frigate/clips":{"free":2134339.9,"mount_type":"ext4","total":3936820.7,"used":1602424.7},"/media/frigate/recordings":{"free":2134339.9,"mount_type":"ext4","total":3936820.7,"used":1602424.7},"/tmp/cache":{"free":1000.0,"mount_type":"tmpfs","total":1000.0,"used":0.0}},"temperatures":{},"uptime":678,"version":"0.11.1-2eada21"}}

Operating system

Other Linux

Install method

Docker CLI

Coral version

USB

Network connection

Wired

Camera make and model

Reolink RLC-510WA and RLC-510A

Any other information that may be helpful

No response

NickM-27 commented 1 year ago

for one, would highly suggest updating to 0.12 and using ffmpeg presets instead of the args that are being used here

moseisleydk commented 1 year ago

Hi @NickM-27

I appologise, I can see that Repo is moved from DockerHub (a lot of people seem to make that mistake), problably as many Youtube videos regarding Frigate use DockerHub. I will change and report back - have a nice day.

BR,

Normann

moseisleydk commented 1 year ago

I am closing this. A clean up of different "recommendations" for Reolink etc and setting --shm-size=256m seem to have solved problems..

I have started some blogging here: https://www.mos-eisley.dk/display/it/Frigate+with+Reolink