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]: Need expertise with finetuning my config. #8544

Closed BelgarionNL closed 10 months ago

BelgarionNL commented 1 year ago

Describe the problem you are having

I believe I am getting 5fps on my main stream for recording I would like to increase it to 15.

plus I might be missing some additional configuration parameters that will improve the overall quality/performance.

right now its running on my rpi for testing for my parents house but I will be copying it over to my i5 8th gen Unraid server.

Version

0.13.0-65E3E67

Frigate config file

mqtt:
  host: 192.168.1.57
  user: frigate
  password: frigate

# RPI CPU SETTINGS
ffmpeg:
  hwaccel_args: preset-rpi-64-h264

# UNRAID CPU SETTINGS
  # ffmpeg:
  # hwaccel_args: preset-vaapi

detectors:
  coral:
    type: edgetpu
    device: usb

go2rtc:
  # log:
  #   exec: trace
  streams:
    Deurbel:
      - "ffmpeg:http://192.168.1.51/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=123Dw1#video=copy#audio=copy#audio=opus"
    Deurbel_sub:
      - "ffmpeg:http://192.168.1.51/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=123Dw1"

cameras:
  Deurbel:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Deurbel
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/Deurbel_sub
          input_args: preset-rtsp-restream
          roles:
            - detect
        - path: rtsp://127.0.0.1:8554/Deurbel_sub?audio
          input_args: preset-rtsp-restream
          roles:
            - audio

Relevant log output

-

FFprobe output from your camera

-

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Network connection

Wired

Camera make and model

Reolink Doorbell POE, Dahua IPC-HDBW2431F-AS-S2

Any other information that may be helpful

No response

NickM-27 commented 1 year ago

Recordings are copied from the camera stream directly, if your recordings are 5 fps then that's because the camera is setup incorrectly.

BelgarionNL commented 1 year ago

using the reolink app I am getting smooth playback.

am I simply misunderstanding this: image

NickM-27 commented 1 year ago

That is for detection not recording, based on your config you have not enabled recordings.

luke3butler commented 11 months ago

FYI, when moving to your i5 machine you have the option of using "preset-intel-qsv-h264" or "preset-intel-qsv-h265" instead of your current (commented out) "preset-vaapi" if you wanted to.

The docs say you need ">=10th Generation only", but according to the Quick Sync Wikipedia page 8th-gen should work too. I just set up my i7-8700 machine using "preset-intel-qsv-h264" and it works great, as I expected it would.

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.