Skip to content

[Config Support]: Reolink delay & (Reolink E1) camera specific config #9464

Description

@albotroz

Describe the problem you are having

After some time of testing my cameras within Frigate, I noticed that my Reolink camera reaches a delay of 20(!) seconds after about one day.
This is noticeable in the Frigate Addon, HassOS Frigate Card and Hass-Android-App etc.
Everything else worked so well and now I'm back to playing with the configs just because of this.

This is what the config for the Reolink camera looked like.
HD stream (without sound - I don't want sound in records because of Law-Stuff in my country) records events. SD stream for livestream and I added a button within Frigate Card to switch between HD and SD livestream with sound in the HAOS dashboard/frigate card.

No problems at all. Until the delay after one day of working.

ffmpeg:
  hwaccel_args: preset-rpi-64-h264

rtmp:
  enabled: false

go2rtc:
  streams:
    front:
      - rtsp://NAME:PW@192.168.xxx.xxx:554/h264Preview_01_main
      - "ffmpeg:front#audio=opus"
    front_sub:
      - rtsp://NAME:PW@192.168.xxx.xxx:554/h264Preview_01_sub
      - "ffmpeg:front_sub#audio=opus"

#  webrtc:
#    candidates:
#      - 192.168.xxx.xx:8555
#      - stun:8555
cameras:
  front:
    ffmpeg:
      output_args:
        record: preset-record-generic
      inputs:
        - path: rtsp://127.0.0.1:8554/front # RTSP Stream High Res
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/front_sub # RTPS Stream Low Res
          input_args: preset-rtsp-restream
          roles:
            - detect

I then changed it as in the docs. https://docs.frigate.video/configuration/camera_specific/#reolink-cameras
So far I haven't noticed any delay.
However, this means that the sound in the live stream sounds laggy and there are no more recordings for events.
Yes, next time I will get the cameras that Frigate recommended in the docs.

This is how I changed it:

ffmpeg:
  hwaccel_args: preset-rpi-64-h264

rtmp:
  enabled: false

go2rtc:
  streams:
    front:
      - "ffmpeg:http://192.168.xxx.xxx/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=NAME&password=PW#video=copy#audio=copy#audio=opus"
    front_sub:
      - "ffmpeg:http://192.168.xxx.xxx/flv?port=1935&app=bcs&stream=channel0_sub.bcs&user=NAME&password=PW"

#  webrtc:
#    candidates:
#      - 192.168.xxx.xx:8555
#      - stun:8555
cameras:
  front:
    ffmpeg:
#      output_args:
#        record: preset-record-generic
      inputs:
        - path: rtsp://127.0.0.1:8554/front?video=copy&audio=acc # RTSP Stream High Res
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/front_sub?video=copy # RTPS Stream Low Res
          input_args: preset-rtsp-restream
          roles:
            - detect

How should I interpret the FFmpeg parameters?
Are the streams taken from the camera with video=copy and audio=copy without transcoding or how?
What if only audio=opus is set? Then it is also taken without transcoding and transcoded within Raspberry to opus?
I want to understand the purpose of the FFmpeg parameters and not just to solve my problems.
And if I adopt the setting of Frigate-Reolink-Doc, then it causes a CPU utilization of almost 100% and temperature rises to 90 degrees + when watching the livestream.

Version

0.12.1

Frigate config file

.

Relevant log output

.

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Any other information that may be helpful

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions