blakeblackshear / frigate

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

[Config Support]: Reolink PoE Doorbell Config #7786

Closed nmcrae85 closed 10 months ago

nmcrae85 commented 1 year ago

Describe the problem you are having

Trying to get a simple Reolink camera setup, specifically for Reolink doorbell and using http.

Version

latest

Frigate config file

mqtt:

  host: 192.168.150.26
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  user: mqtt
  password: Tessian
  stats_interval: 300

record:
  enabled: True
  retain:
    days: 7
    mode: motion
  events:
    retain:
      default: 30
      mode: active_objects

timestamp_style:
  format: "%m/%d/%Y %H:%M:%S"
  color:
    red: 255
    green: 255
    blue: 255
  thickness: 2
  effect: shadow

go2rtc:
  streams:
    your_reolink_camera: 
      - "ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus"
    your_reolink_camera_sub: 
      - "ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password"

cameras:
  reolink:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/your_reolink_camera?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/your_reolink_camera_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect

    detect:
      width: 1920
      height: 1080
      fps: 5
    objects:
      track:
        - person
        - dog
        - bicycle
        - cat
        - car
      filters:
        car:
          min_area: 15000
        person:
          min_area: 500
    snapshots:
      enabled: true
      timestamp: true
      bounding_box: true
      required_zones:
        - UG-House-FrontDoor-Bell_in_area
        - UG-House-FrontDoor-Bell_whole_area
      crop: True
      height: 500
      retain:
        default: 3
    zones:
      UG-House-FrontDoor-Bell_in_area:
        coordinates: 1200,296,1501,262,838,94,698,99,845,201,1092,290
        objects:
          - car
          - person
          - cat
          - bicycle
      UG-House-FrontDoor-Bell_whole_area:
        coordinates: 1195,558,1242,605,1479,598,1555,546,1920,1080,0,1080,0,627,1122,573
        objects:
          - car
          - person
          - cat
          - bicycle
    motion:
      mask:
        - 1228,0,692,0,1214,551,1252,39
    record:
      enabled: True
      retain:
        days: 0
      events:
        retain:
          default: 5
          mode: motion
        required_zones:
          - UG-House-FrontDoor-Bell_in_area
          - UG-House-FrontDoor-Bell_whole_area
        pre_capture: 5
        post_capture: 15

detectors:
  ov:
    type: openvino
    device: AUTO
    model:
      path: /openvino-model/ssdlite_mobilenet_v2.xml

model:
  width: 300
  height: 300
  input_tensor: nhwc
  input_pixel_format: bgr
  labelmap_path: /openvino-model/coco_91cl_bkgr.txt

rtmp:
  enabled: false

birdseye:
  enabled: True
  width: 1280
  height: 1080
  quality: 1
  mode: objects

Relevant log output

2023-09-12 23:10:57.591267143  [2023-09-12 23:10:57] watchdog.reolink               ERROR   : No new recording segments were created for reolink in the last 120s. restarting the ffmpeg record process...
2023-09-12 23:10:57.591360381  [2023-09-12 23:10:57] watchdog.reolink               INFO    : Terminating the existing ffmpeg process...
2023-09-12 23:10:57.591437365  [2023-09-12 23:10:57] watchdog.reolink               INFO    : Waiting for ffmpeg to exit gracefully...
2023-09-12 23:10:57.669083790  [2023-09-12 23:10:57] frigate.video                  ERROR   : reolink: Unable to read frames from ffmpeg process.
2023-09-12 23:10:57.669578139  [2023-09-12 23:10:57] frigate.video                  ERROR   : reolink: ffmpeg process is not running. exiting capture thread...
2023-09-12 23:11:07.600223899  [2023-09-12 23:11:07] watchdog.reolink               ERROR   : Ffmpeg process crashed unexpectedly for reolink.
2023-09-12 23:11:07.600498060  [2023-09-12 23:11:07] watchdog.reolink               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-09-12 23:11:07.600803070  [2023-09-12 23:11:07] ffmpeg.reolink.detect          ERROR   : [rtsp @ 0x55c97d8c5c40] method DESCRIBE failed: 404 Not Found
2023-09-12 23:11:07.601030738  [2023-09-12 23:11:07] ffmpeg.reolink.detect          ERROR   : rtsp://127.0.0.1:8554/your_reolink_camera_sub?video=copy: Server returned 404 Not Found
2023-09-12 23:11:07.612074311  [2023-09-12 23:11:07] watchdog.reolink               ERROR   : No new recording segments were created for reolink in the last 120s. restarting the ffmpeg record process...
2023-09-12 23:11:07.612205326  [2023-09-12 23:11:07] watchdog.reolink               INFO    : Terminating the existing ffmpeg process...
2023-09-12 23:11:07.612310404  [2023-09-12 23:11:07] watchdog.reolink               INFO    : Waiting for ffmpeg to exit gracefully...
2023-09-12 23:11:07.742428469  [2023-09-12 23:11:07] frigate.video                  ERROR   : reolink: Unable to read frames from ffmpeg process.
2023-09-12 23:11:07.742495392  [2023-09-12 23:11:07] frigate.video                  ERROR   : reolink: ffmpeg process is not running. exiting capture thread...
2023-09-12 23:11:17.627604305  [2023-09-12 23:11:17] watchdog.reolink               ERROR   : Ffmpeg process crashed unexpectedly for reolink.
2023-09-12 23:11:17.627707175  [2023-09-12 23:11:17] watchdog.reolink               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-09-12 23:11:17.627809095  [2023-09-12 23:11:17] ffmpeg.reolink.detect          ERROR   : [rtsp @ 0x562fdb04ec40] method DESCRIBE failed: 404 Not Found
2023-09-12 23:11:17.627885961  [2023-09-12 23:11:17] ffmpeg.reolink.detect          ERROR   : rtsp://127.0.0.1:8554/your_reolink_camera_sub?video=copy: Server returned 404 Not Found
2023-09-12 23:11:17.637050311  [2023-09-12 23:11:17] watchdog.reolink               ERROR   : No new recording segments were created for reolink in the last 120s. restarting the ffmpeg record process...
2023-09-12 23:11:17.637199303  [2023-09-12 23:11:17] watchdog.reolink               INFO    : Terminating the existing ffmpeg process...
2023-09-12 23:11:17.637308699  [2023-09-12 23:11:17] watchdog.reolink               INFO    : Waiting for ffmpeg to exit gracefully...
2023-09-12 23:11:17.731752558  [2023-09-12 23:11:17] frigate.video                  ERROR   : reolink: Unable to read frames from ffmpeg process.
2023-09-12 23:11:17.732390643  [2023-09-12 23:11:17] frigate.video                  ERROR   : reolink: ffmpeg process is not running. exiting capture thread...

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Any other information that may be helpful

No response

nmcrae85 commented 1 year ago

other logs

2023-09-12 23:15:08.351924044 23:15:08.351 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera 2023-09-12 23:15:11.852363050 23:15:11.852 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-12 23:15:11.972696896 23:15:11.972 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-12 23:15:12.069073951 23:15:12.068 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-12 23:15:12.191549731 23:15:12.191 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-12 23:15:12.310018703 23:15:12.309 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-12 23:15:12.310076943 23:15:12.309 ERR github.com/AlexxIT/go2rtc/cmd/mjpeg/mjpeg.go:159 > error="source 0 error: exec: exit status 1" 2023-09-12 23:15:18.248348173 23:15:18.248 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password 2023-09-12 23:15:18.248359529 23:15:18.248 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera_sub 2023-09-12 23:15:18.275642297 23:15:18.275 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-12 23:15:18.368692979 23:15:18.368 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-12 23:15:18.368751610 23:15:18.368 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera

NickM-27 commented 1 year ago

Enable trace logs in go2rtc

go2rtc:
  log:
    exec: trace
  streams: ...
nmcrae85 commented 1 year ago

2023-09-13 09:33:07.944185556 [INFO] Preparing go2rtc config... 2023-09-13 09:33:08.171283613 [INFO] Starting go2rtc... 2023-09-13 09:33:08.270374776 09:33:08.270 INF go2rtc version 1.2.0 linux/amd64 2023-09-13 09:33:08.270582033 09:33:08.270 INF [api] listen addr=:1984 2023-09-13 09:33:08.270802283 09:33:08.270 INF [rtsp] listen addr=:8554 2023-09-13 09:33:08.271049903 09:33:08.271 INF [srtp] listen addr=:8443 2023-09-13 09:33:08.271290408 09:33:08.271 INF [webrtc] listen addr=:8555 2023-09-13 09:33:08.946282453 09:33:08.946 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password 2023-09-13 09:33:08.946307593 09:33:08.946 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera_sub 2023-09-13 09:33:08.966140303 09:33:08.966 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-13 09:33:09.046324559 09:33:09.046 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-13 09:33:09.046346654 09:33:09.046 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera 2023-09-13 09:33:17.946142205 [INFO] Starting go2rtc healthcheck service... 2023-09-13 09:33:28.989342454 09:33:28.989 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password 2023-09-13 09:33:28.989354055 09:33:28.989 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera_sub 2023-09-13 09:33:29.011502400 09:33:29.011 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-13 09:33:29.137498479 09:33:29.137 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-13 09:33:29.137509987 09:33:29.137 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera 2023-09-13 09:33:39.032792453 09:33:39.032 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password 2023-09-13 09:33:39.032865671 09:33:39.032 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera_sub 2023-09-13 09:33:39.053451068 09:33:39.053 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-13 09:33:39.149011661 09:33:39.148 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-13 09:33:39.149023171 09:33:39.148 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera

NickM-27 commented 1 year ago

Doesn't look like the config was edited correctly, the logs are the same

nmcrae85 commented 1 year ago
image
NickM-27 commented 1 year ago

spacing is incorrect, double check my example

nmcrae85 commented 1 year ago
2023-09-13 14:28:29.749641619  [INFO] Preparing go2rtc config...
2023-09-13 14:28:29.992463074  [INFO] Starting go2rtc...
2023-09-13 14:28:30.068539780  14:28:30.068 INF go2rtc version 1.2.0 linux/amd64
2023-09-13 14:28:30.068772781  14:28:30.068 INF [api] listen addr=:1984
2023-09-13 14:28:30.069060457  14:28:30.069 INF [rtsp] listen addr=:8554
2023-09-13 14:28:30.069306958  14:28:30.069 INF [srtp] listen addr=:8443
2023-09-13 14:28:30.069510952  14:28:30.069 INF [webrtc] listen addr=:8555
2023-09-13 14:28:30.676761888  14:28:30.676 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/f4d0f30faf7d26e07128d618f47517f0"
2023-09-13 14:28:30.686392131  14:28:30.686 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/f95062ba0bff80d1a716b9b459e2d802"
2023-09-13 14:28:30.767750786  http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password: End of file
2023-09-13 14:28:30.768741904  14:28:30.768 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password
2023-09-13 14:28:30.768755780  14:28:30.768 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera_sub
2023-09-13 14:28:30.826657419  http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password: End of file
2023-09-13 14:28:30.827629200  14:28:30.827 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus
2023-09-13 14:28:30.827772794  14:28:30.827 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/f95062ba0bff80d1a716b9b459e2d802"
2023-09-13 14:28:30.905735871  http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password: End of file
2023-09-13 14:28:30.906525805  14:28:30.906 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus
2023-09-13 14:28:30.906527956  14:28:30.906 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera
NickM-27 commented 1 year ago

have you enabled http in the doorbells network settings?

nmcrae85 commented 1 year ago

Yes correct

On Wed, 13 Sep 2023 at 14:32, Nicolas Mowen @.***> wrote:

have you enabled http in the doorbells network settings?

— Reply to this email directly, view it on GitHub https://github.com/blakeblackshear/frigate/issues/7786#issuecomment-1717644624, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHUULJHP3CUQDHQR7RPL2QLX2GYXDANCNFSM6AAAAAA4VPPLJE . You are receiving this because you authored the thread.Message ID: @.***>

NickM-27 commented 1 year ago

What firmware is the doorbell on?

nmcrae85 commented 1 year ago

Config Version v3.0.0.0 Firmware Version v3.0.0.1459_22102808

NickM-27 commented 1 year ago

Oh yeah, that is an old firmware, I'd suggest updating https://reolink.com/us/download-center/

nmcrae85 commented 1 year ago

Ive now gone to the latest version. Do you want the logs now?

nmcrae85 commented 1 year ago
2023-09-13 17:09:12.629677085  [INFO] Preparing go2rtc config...
2023-09-13 17:09:12.868465362  [INFO] Starting go2rtc...
2023-09-13 17:09:12.946649395  17:09:12.946 INF go2rtc version 1.2.0 linux/amd64
2023-09-13 17:09:12.946880730  17:09:12.946 INF [api] listen addr=:1984
2023-09-13 17:09:12.947087295  17:09:12.947 INF [rtsp] listen addr=:8554
2023-09-13 17:09:12.947337156  17:09:12.947 INF [srtp] listen addr=:8443
2023-09-13 17:09:12.947559594  17:09:12.947 INF [webrtc] listen addr=:8555
2023-09-13 17:09:13.531346413  17:09:13.531 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/f4d0f30faf7d26e07128d618f47517f0"
2023-09-13 17:09:13.540584351  17:09:13.540 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/f95062ba0bff80d1a716b9b459e2d802"
2023-09-13 17:09:13.619995184  http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password: End of file
2023-09-13 17:09:13.621056640  17:09:13.620 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password
2023-09-13 17:09:13.621058967  17:09:13.621 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera_sub
2023-09-13 17:09:13.659252580  http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password: End of file
2023-09-13 17:09:13.660178775  17:09:13.660 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus
2023-09-13 17:09:13.660227434  17:09:13.660 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/f95062ba0bff80d1a716b9b459e2d802"
2023-09-13 17:09:13.739932458  http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password: End of file
2023-09-13 17:09:13.740860437  17:09:13.740 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus
2023-09-13 17:09:13.740898655  17:09:13.740 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera
NickM-27 commented 1 year ago

what does your network settings page look like?

Screen Shot 2023-09-13 at 10 11 13 AM

nmcrae85 commented 1 year ago
image
NickM-27 commented 1 year ago

May want to try updating go2rtc, seems weird though as this setup has been confirmed working on the doorbell by many users including myself https://docs.frigate.video/configuration/advanced#custom-go2rtc-version

nmcrae85 commented 1 year ago

How can I validate which version im running?

NickM-27 commented 1 year ago

it is in the go2rtc logs, you are running 1.2.0 which is the default included version for frigate 0.12

nmcrae85 commented 1 year ago

tried this but still saying its running 1.2.0

Use the terminal within Home Assistant Run cd config Run wget https://github.com/AlexxIT/go2rtc/releases/download/v1.6.2/go2rtc_linux_arm64 Run mv go2rtc_linux_arm64 go2rtc Run chmod +x go2rtc

nmcrae85 commented 1 year ago

2023-09-13 18:05:55.022933659 [INFO] Preparing go2rtc config... 2023-09-13 18:05:55.651090866 [INFO] Starting go2rtc... 2023-09-13 18:05:55.724389268 18:05:55.724 INF go2rtc version 1.2.0 linux/amd64 2023-09-13 18:05:55.724572121 18:05:55.724 INF [api] listen addr=:1984 2023-09-13 18:05:55.724777732 18:05:55.724 INF [rtsp] listen addr=:8554 2023-09-13 18:05:55.725005993 18:05:55.724 INF [srtp] listen addr=:8443 2023-09-13 18:05:55.725200921 18:05:55.725 INF [webrtc] listen addr=:8555 2023-09-13 18:05:56.989190306 18:05:56.989 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/f4d0f30faf7d26e07128d618f47517f0" 2023-09-13 18:05:56.989619738 18:05:56.989 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/f95062ba0bff80d1a716b9b459e2d802" 2023-09-13 18:05:57.066014599 http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password: End of file 2023-09-13 18:05:57.071372028 18:05:57.071 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password 2023-09-13 18:05:57.071393915 18:05:57.071 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera_sub 2023-09-13 18:05:57.104746257 http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password: End of file 2023-09-13 18:05:57.105608073 18:05:57.105 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-13 18:05:57.105676189 18:05:57.105 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/f95062ba0bff80d1a716b9b459e2d802" 2023-09-13 18:05:57.204463198 http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password: End of file 2023-09-13 18:05:57.205529162 18:05:57.205 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-13 18:05:57.205550304 18:05:57.205 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera

nmcrae85 commented 1 year ago

I tried to use - https://github.com/AlexxIT/go2rtc/releases/download/v1.6.2/go2rtc_linux_amd64

NickM-27 commented 1 year ago

try chmod 777 go2rtc

nmcrae85 commented 1 year ago

Still the same..

2023-09-13 18:37:25.761775725 [INFO] Preparing go2rtc config... 2023-09-13 18:37:25.987241825 [INFO] Starting go2rtc... 2023-09-13 18:37:26.085127861 18:37:26.085 INF go2rtc version 1.2.0 linux/amd64 2023-09-13 18:37:26.085362958 18:37:26.085 INF [api] listen addr=:1984 2023-09-13 18:37:26.085601639 18:37:26.085 INF [rtsp] listen addr=:8554 2023-09-13 18:37:26.085799855 18:37:26.085 INF [srtp] listen addr=:8443 2023-09-13 18:37:26.085991085 18:37:26.085 INF [webrtc] listen addr=:8555 2023-09-13 18:37:26.655891093 18:37:26.655 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/f4d0f30faf7d26e07128d618f47517f0" 2023-09-13 18:37:26.662622297 18:37:26.662 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/f95062ba0bff80d1a716b9b459e2d802" 2023-09-13 18:37:26.739311605 http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password: End of file 2023-09-13 18:37:26.740479952 18:37:26.740 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password 2023-09-13 18:37:26.740482361 18:37:26.740 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera_sub 2023-09-13 18:37:26.774871401 http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password: End of file 2023-09-13 18:37:26.775871669 18:37:26.775 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-13 18:37:26.775901010 18:37:26.775 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/f95062ba0bff80d1a716b9b459e2d802" 2023-09-13 18:37:26.854903553 http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password: End of file 2023-09-13 18:37:26.855990349 18:37:26.855 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus 2023-09-13 18:37:26.856004573 18:37:26.855 WRN [rtsp] error="source 0 error: exec: exit status 1" stream=your_reolink_camera

NickM-27 commented 1 year ago

which frigate addon are you running?

nmcrae85 commented 1 year ago

Starting Frigate (0.12.1-367d724)

NickM-27 commented 1 year ago

right but which version (standard or full access)

nmcrae85 commented 1 year ago

How do I know that?

NickM-27 commented 1 year ago

open the addons page, click on frigate, and see what the title is

nmcrae85 commented 1 year ago

Im running on docker

NickM-27 commented 1 year ago

oh, you filled out the support request wrong then, addon was selected. In that case the issue is your docker config. You need to make sure the entire /config directory is mapped not just the config file

nmcrae85 commented 1 year ago

Sorry my bad......

This is what I have.

services: frigate: image: "ghcr.io/blakeblackshear/frigate:0.12.1" container_name: "frigate" domainname: "yours.com" hostname: "frigate" privileged: true restart: "unless-stopped" shm_size: "128mb" # adjust devices:

NickM-27 commented 1 year ago

So you should change

- "/home/docker/Documents/frigate/config/config.yml:/config/config.yml"

to

- "/home/docker/Documents/frigate/config/:/config/"

nmcrae85 commented 1 year ago

Ok done. I will try the upgrade again

NickM-27 commented 1 year ago

and to be clear the go2rtc file needs to be downloaded into /home/docker/Documents/frigate/config/

nmcrae85 commented 1 year ago

docker@docker-HP-EliteDesk-800-G3-SFF:/$ cd /home/docker/Documents/frigate/config/ docker@docker-HP-EliteDesk-800-G3-SFF:~/Documents/frigate/config$ wget https://github.com/AlexxIT/go2rtc/releases/download/v1.6.2/go2rtc_linux_amd64 --2023-09-13 20:29:36-- https://github.com/AlexxIT/go2rtc/releases/download/v1.6.2/go2rtc_linux_amd64 Resolving github.com (github.com)... 140.82.121.3, 64:ff9b::8c52:7903 Connecting to github.com (github.com)|140.82.121.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/526081371/bcb26f72-1859-488e-8471-58ed909d5c8f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230913%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230913T192908Z&X-Amz-Expires=300&X-Amz-Signature=61d9f736cebc55182663950a1ac08683a2d1fb06a8c81fca982972f2727556d6&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=526081371&response-content-disposition=attachment%3B%20filename%3Dgo2rtc_linux_amd64&response-content-type=application%2Foctet-stream [following] --2023-09-13 20:29:36-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/526081371/bcb26f72-1859-488e-8471-58ed909d5c8f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230913%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230913T192908Z&X-Amz-Expires=300&X-Amz-Signature=61d9f736cebc55182663950a1ac08683a2d1fb06a8c81fca982972f2727556d6&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=526081371&response-content-disposition=attachment%3B%20filename%3Dgo2rtc_linux_amd64&response-content-type=application%2Foctet-stream Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.109.133, 185.199.111.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 5419132 (5.2M) [application/octet-stream] Saving to: ‘go2rtc_linux_amd64’

go2rtc_linux_amd64 100%[===========================================================>] 5.17M 6.29MB/s in 0.8s

2023-09-13 20:29:37 (6.29 MB/s) - ‘go2rtc_linux_amd64’ saved [5419132/5419132]

docker@docker-HP-EliteDesk-800-G3-SFF:~/Documents/frigate/config$ mv go2rtc_linux_amd64 go2rtc docker@docker-HP-EliteDesk-800-G3-SFF:~/Documents/frigate/config$ chmod 777 go2rtc

2023-09-13 20:30:15.730150010 20:30:15.730 INF go2rtc version 1.2.0 linux/amd64

NickM-27 commented 1 year ago

did you run docker compose up after making the change to apply it?

if you get a shell in the frigate container and run ls /config/ what do you see?

nmcrae85 commented 1 year ago

This wht you mean????

frigate | s6-rc: info: service s6rc-fdholder: starting frigate | s6-rc: info: service s6rc-oneshot-runner: starting frigate | s6-rc: info: service s6rc-oneshot-runner successfully started frigate | s6-rc: info: service fix-attrs: starting frigate | s6-rc: info: service s6rc-fdholder successfully started frigate | s6-rc: info: service fix-attrs successfully started frigate | s6-rc: info: service legacy-cont-init: starting frigate | s6-rc: info: service legacy-cont-init successfully started frigate | s6-rc: info: service log-prepare: starting frigate | s6-rc: info: service log-prepare successfully started frigate | s6-rc: info: service nginx-log: starting frigate | s6-rc: info: service go2rtc-log: starting frigate | s6-rc: info: service frigate-log: starting frigate | s6-rc: info: service nginx-log successfully started frigate | s6-rc: info: service frigate-log successfully started frigate | s6-rc: info: service go2rtc-log successfully started frigate | s6-rc: info: service go2rtc: starting frigate | s6-rc: info: service go2rtc successfully started frigate | s6-rc: info: service go2rtc-healthcheck: starting frigate | s6-rc: info: service frigate: starting frigate | s6-rc: info: service go2rtc-healthcheck successfully started frigate | s6-rc: info: service frigate successfully started frigate | s6-rc: info: service nginx: starting frigate | s6-rc: info: service nginx successfully started frigate | s6-rc: info: service legacy-services: starting frigate | 2023-09-13 20:32:56.071839373 [INFO] Preparing go2rtc config... frigate | 2023-09-13 20:32:56.072483176 [INFO] Starting Frigate... frigate | 2023-09-13 20:32:56.077247662 [INFO] Starting NGINX... frigate | s6-rc: info: service legacy-services successfully started frigate | Traceback (most recent call last): frigate | File "/usr/local/go2rtc/create_config.py", line 23, in frigate | with open(config_file) as f: frigate | FileNotFoundError: [Errno 2] No such file or directory: '/config/config.yml' compreface | /usr/lib/python3/dist-packages/supervisor/options.py:474: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security. compreface | self.warnings.warn( compreface | 2023-09-13 12:32:56,332 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message. compreface | 2023-09-13 12:32:56,332 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing compreface | 2023-09-13 12:32:56,337 INFO RPC interface 'supervisor' initialized compreface | 2023-09-13 12:32:56,337 CRIT Server 'unix_http_server' running without any HTTP authentication checking compreface | 2023-09-13 12:32:56,338 INFO supervisord started with pid 1 frigate | 2023-09-13 20:32:56.359067519 [INFO] The go2rtc service exited with code 1 (by signal 0) frigate | 2023-09-13 20:32:57.147169638 frigate | 2023-09-13 20:32:57.147173042 frigate | 2023-09-13 20:32:57.147174846 Your config file is not valid! frigate | 2023-09-13 20:32:57.147176519 Please check the docs at frigate | 2023-09-13 20:32:57.147177860 https://docs.frigate.video/configuration/index frigate | 2023-09-13 20:32:57.147195444 frigate | 2023-09-13 20:32:57.147196937 frigate | 2023-09-13 20:32:57.147198209 Config Validation Errors frigate | 2023-09-13 20:32:57.147199560 frigate | 2023-09-13 20:32:57.147201030 [Errno 2] No such file or directory: '/config/config.yml' frigate | 2023-09-13 20:32:57.147942274 Traceback (most recent call last): frigate | 2023-09-13 20:32:57.147943941 File "/opt/frigate/frigate/app.py", line 351, in start frigate | 2023-09-13 20:32:57.147944935 self.init_config() frigate | 2023-09-13 20:32:57.147946017 File "/opt/frigate/frigate/app.py", line 80, in init_config frigate | 2023-09-13 20:32:57.147947031 user_config = FrigateConfig.parse_file(config_file) frigate | 2023-09-13 20:32:57.147948112 File "/opt/frigate/frigate/config.py", line 1070, in parse_file frigate | 2023-09-13 20:32:57.147949069 with open(config_file) as f: frigate | 2023-09-13 20:32:57.147950545 FileNotFoundError: [Errno 2] No such file or directory: '/config/config.yml' frigate | 2023-09-13 20:32:57.147965492
frigate | 2023-09-13 20:32:57.147966723
frigate | 2023-09-13 20:32:57.147979732 End Config Validation Errors frigate | 2023-09-13 20:32:57.147981239 *** frigate | 2023-09-13 20:32:57.148323925 [2023-09-13 20:32:57] frigate.app INFO : Starting Frigate (0.12.1-367d724) compreface | 2023-09-13 12:32:57,342 INFO spawned: 'startup' with pid 7 compreface | 2023-09-13 12:32:57,349 INFO spawned: 'compreface-core' with pid 8 frigate | 2023-09-13 20:32:57.372953919 [INFO] Preparing go2rtc config... compreface | [uWSGI] getting INI configuration from uwsgi.ini compreface | 2023-09-13 12:32:57,381 INFO success: startup entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) compreface | 2023-09-13 12:32:57,382 INFO success: compreface-core entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) compreface | * Starting uWSGI 2.0.19 (64bit) on [Wed Sep 13 12:32:57 2023] compreface | compiled with version: 10.2.1 20210110 on 07 October 2022 08:24:18 compreface | os: Linux-6.2.0-32-generic #32~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 18 10:40:13 UTC 2 compreface | nodename: e2ad415d05d1 compreface | machine: x86_64 compreface | clock source: unix compreface | detected number of CPU cores: 8 compreface | current working directory: /app/ml compreface | detected binary path: /usr/local/bin/uwsgi compreface | !!! no internal routing support, rebuild with pcre support !!! compreface | setgid() to 33 compreface | setuid() to 33 compreface | your processes number limit is 63157 compreface | your memory page size is 4096 bytes compreface | detected max file descriptor number: 1024 compreface | lock engine: pthread robust mutexes compreface | thunder lock: disabled (you can enable it with --thunder-lock) compreface | uwsgi socket 0 bound to TCP address 0.0.0.0:3000 fd 3 compreface | Python version: 3.7.14 (default, Oct 5 2022, 16:16:25) [GCC 10.2.1 20210110] compreface | Starting compreface-postgres-db compreface | Python main interpreter initialized at 0x564a1d3b38b0 compreface | python threads support enabled compreface | your server socket listen backlog is limited to 100 connections compreface | your mercy for graceful operations on workers is 60 seconds compreface | mapped 218712 bytes (213 KB) for 2 cores compreface | Operational MODE: preforking compreface | 2023-09-13 12:32:57,590 INFO spawned: 'compreface-postgres-db' with pid 13 compreface | 2023-09-13 12:32:57,591 INFO success: compreface-postgres-db entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) compreface | compreface-postgres-db: started frigate | Traceback (most recent call last): frigate | File "/usr/local/go2rtc/create_config.py", line 23, in frigate | with open(config_file) as f: frigate | FileNotFoundError: [Errno 2] No such file or directory: '/config/config.yml' frigate | 2023-09-13 20:32:57.622665715 [INFO] The go2rtc service exited with code 1 (by signal 0) compreface | 2023-09-13 19:32:57.702 UTC [13] LOG: starting PostgreSQL 13.8 (Debian 13.8-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit compreface | 2023-09-13 19:32:57.702 UTC [13] LOG: listening on IPv4 address "127.0.0.1", port 5432 compreface | 2023-09-13 19:32:57.702 UTC [13] LOG: could not bind IPv6 address "::1": Cannot assign requested address compreface | 2023-09-13 19:32:57.702 UTC [13] HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry. compreface | 2023-09-13 19:32:57.707 UTC [13] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" compreface | 2023-09-13 19:32:57.712 UTC [15] LOG: database system was interrupted; last known up at 2023-09-13 16:24:37 UTC compreface | 2023-09-13 19:32:57.845 UTC [15] LOG: database system was not properly shut down; automatic recovery in progress compreface | 2023-09-13 19:32:57.849 UTC [15] LOG: redo starts at 0/A43F288 compreface | 2023-09-13 19:32:57.849 UTC [15] LOG: invalid record length at 0/A43F370: wanted 24, got 0 compreface | 2023-09-13 19:32:57.849 UTC [15] LOG: redo done at 0/A43F338 compreface | 2023-09-13 19:32:57.882 UTC [13] LOG: database system is ready to accept connections frigate | 2023-09-13 20:32:58.328068962 [INFO] Service Frigate exited with code 1 (by signal 0) frigate | s6-rc: info: service legacy-services: stopping frigate | s6-rc: info: service legacy-services successfully stopped frigate | s6-rc: info: service nginx: stopping frigate | s6-rc: info: service go2rtc-healthcheck: stopping frigate | 2023-09-13 20:32:58.341320388 [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15) frigate | s6-rc: info: service go2rtc-healthcheck successfully stopped frigate | 2023-09-13 20:32:58.420598201 [INFO] Service NGINX exited with code 0 (by signal 0) frigate | s6-rc: info: service nginx successfully stopped frigate | s6-rc: info: service nginx-log: stopping frigate | s6-rc: info: service frigate: stopping frigate | s6-rc: info: service frigate successfully stopped frigate | s6-rc: info: service go2rtc: stopping frigate | s6-rc: info: service frigate-log: stopping frigate | s6-rc: info: service nginx-log successfully stopped frigate | s6-rc: info: service go2rtc successfully stopped frigate | s6-rc: info: service go2rtc-log: stopping frigate | s6-rc: info: service frigate-log successfully stopped frigate | s6-rc: info: service go2rtc-log successfully stopped frigate | s6-rc: info: service log-prepare: stopping frigate | s6-rc: info: service s6rc-fdholder: stopping frigate | s6-rc: info: service log-prepare successfully stopped frigate | s6-rc: info: service legacy-cont-init: stopping frigate | s6-rc: info: service s6rc-fdholder successfully stopped frigate | s6-rc: info: service legacy-cont-init successfully stopped frigate | s6-rc: info: service fix-attrs: stopping frigate | s6-rc: info: service fix-attrs successfully stopped frigate | s6-rc: info: service s6rc-oneshot-runner: stopping frigate | s6-rc: info: service s6rc-oneshot-runner successfully stopped compreface | {"severity": "INFO", "message": "{'BUILD_VERSION': 'dev', 'CALCULATION_PLUGIN': 'facenet.Calculator', 'EXTRA_PLUGINS': ['facenet.LandmarksDetector', 'agegender.AgeDetector', 'agegender.GenderDetector', 'facenet.facemask.MaskDetector', 'facenet.PoseEstimator'], 'FACE_DETECTION_PLUGIN': 'facenet.FaceDetector', 'GPU_IDX': -1, 'IMG_LENGTH_LIMIT': 640, 'INTEL_OPTIMIZATION': False, 'IS_DEV_ENV': False, 'LOGGING_LEVEL_NAME': 'DEBUG', 'ML_PORT': 3000, 'RUN_MODE': True}", "request": null, "logger": "src.app", "module": "app", "traceback": null, "build_version": "dev"} compreface | {"severity": "DEBUG", "message": "Creating new app for WSGI", "request": null, "logger": "src.app", "module": "app", "traceback": null, "build_version": "dev"} compreface | WSGI app 0 (mountpoint='') ready in 3 seconds on interpreter 0x564a1d3b38b0 pid: 8 (default app) compreface | uWSGI is running in multiple interpreter mode ** compreface | spawned uWSGI master process (pid: 8) compreface | spawned uWSGI worker 1 (pid: 38, cores: 1) compreface | spawned uWSGI worker 2 (pid: 39, cores: 1) frigate exited with code 1 frigate | s6-rc: info: service s6rc-fdholder: starting frigate | s6-rc: info: service s6rc-oneshot-runner: starting frigate | s6-rc: info: service s6rc-oneshot-runner successfully started frigate | s6-rc: info: service fix-attrs: starting frigate | s6-rc: info: service s6rc-fdholder successfully started frigate | s6-rc: info: service fix-attrs successfully started frigate | s6-rc: info: service legacy-cont-init: starting frigate | s6-rc: info: service legacy-cont-init successfully started frigate | s6-rc: info: service log-prepare: starting frigate | s6-rc: info: service log-prepare successfully started frigate | s6-rc: info: service nginx-log: starting frigate | s6-rc: info: service go2rtc-log: starting frigate | s6-rc: info: service frigate-log: starting frigate | s6-rc: info: service nginx-log successfully started frigate | s6-rc: info: service go2rtc-log successfully started frigate | s6-rc: info: service go2rtc: starting frigate | s6-rc: info: service frigate-log successfully started frigate | s6-rc: info: service go2rtc successfully started frigate | s6-rc: info: service go2rtc-healthcheck: starting frigate | s6-rc: info: service frigate: starting frigate | s6-rc: info: service go2rtc-healthcheck successfully started frigate | s6-rc: info: service frigate successfully started frigate | s6-rc: info: service nginx: starting frigate | s6-rc: info: service nginx successfully started frigate | s6-rc: info: service legacy-services: starting frigate | 2023-09-13 20:33:03.548472161 [INFO] Preparing go2rtc config... frigate | 2023-09-13 20:33:03.549426601 [INFO] Starting Frigate... frigate | 2023-09-13 20:33:03.551895242 [INFO] Starting NGINX... frigate | s6-rc: info: service legacy-services successfully started frigate | 2023-09-13 20:33:03.628689300 2023/09/13 20:33:03 [error] 134#134: 1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.150.26, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.150.2:5050" frigate | 2023-09-13 20:33:03.628720839 192.168.150.26 - - [13/Sep/2023:20:33:03 +0100] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.9.1 aiohttp/3.8.5 Python/3.11" "-"

NickM-27 commented 1 year ago

run docker exec -it frigate bash then run ls /config

nmcrae85 commented 1 year ago

and to be clear the go2rtc file needs to be downloaded into /home/docker/Documents/frigate/config/

Getting this error now. frigate | 2023-09-13 20:35:48.919426725 [Errno 2] No such file or directory: '/config/config.yml'

NickM-27 commented 1 year ago

what are the contents of /home/docker/Documents/frigate/config/ and what is your current docker compose?

nmcrae85 commented 1 year ago

Ok we have 1.6 now....

2023-09-13 20:41:42.968726998 [INFO] Preparing go2rtc config... 2023-09-13 20:41:43.183307945 [WARN] Using go2rtc binary from '/config/go2rtc' instead of the embedded one 2023-09-13 20:41:43.183314144 [INFO] Starting go2rtc... 2023-09-13 20:41:43.287804179 20:41:43.287 INF go2rtc version 1.6.2 linux/amd64 2023-09-13 20:41:43.288104838 20:41:43.288 INF [api] listen addr=0.0.0.0:1984 2023-09-13 20:41:43.288408209 20:41:43.288 INF [rtsp] listen addr=0.0.0.0:8554 2023-09-13 20:41:43.288566534 20:41:43.288 INF [webrtc] listen addr=0.0.0.0:8555/tcp 2023-09-13 20:41:43.288960366 20:41:43.288 INF [srtp] listen addr=0.0.0.0:8443 2023-09-13 20:41:44.016809819 20:41:44.016 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}" 2023-09-13 20:41:44.028376459 20:41:44.028 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -min_comp 0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}" 2023-09-13 20:41:44.396426155 http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password: End of file 2023-09-13 20:41:44.397646969 20:41:44.397 WRN [rtsp] error="exec: exit status 1" stream=your_reolink_camera_sub 2023-09-13 20:41:44.405530693 http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password: End of file 2023-09-13 20:41:44.406781500 20:41:44.406 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -min_comp 0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}" 2023-09-13 20:41:44.782640176 http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password: End of file 2023-09-13 20:41:44.783609793 20:41:44.783 WRN [rtsp] error="exec: exit status 1" stream=your_reolink_camera 2023-09-13 20:41:52.968948511 [INFO] Starting go2rtc healthcheck service...

NickM-27 commented 1 year ago

okay, then that confirms something weird and unexpected is coming from the doorbell, it is not sending a stream

nmcrae85 commented 1 year ago

is my config 100% correct? Can I validate that the stream is working via VLC or something else?

NickM-27 commented 1 year ago

yes you can try putting that same url in the vlc network stream to see if it works

http://192.168.150.15/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password

nmcrae85 commented 1 year ago

Yep doesnt work.

NickM-27 commented 1 year ago

that is the IP of the doorbell right, and there is no firewall or anything else that would be blocking the connection?

nmcrae85 commented 1 year ago

The IP is correct. I can connect to the stream ok on rtsp.

NickM-27 commented 1 year ago

very weird, http works just fine for me. You can use rtsp if it works for you, in my case it had lots of stuttering and hitching (like most reolinks) which is why http-flv is recommended

TheDescender commented 1 year ago

what does your network settings page look like?

Screen Shot 2023-09-13 at 10 11 13 AM

Wait, how are you even running the stream over port 1935, when you have this port assigned to RTMP and disabled? When I try this, the stream will not load. I have the wifi version, which I believe is same as yours.