Frigate - Nvidia GPU 0%

TobiasF

Young grasshopper
Nov 10, 2024
52
6
Germany
I am still trying about to understand Frigate and test if it is the system I want to use.

What I do not understand why my GPU load is so low. OK, there is not so much to do. The high resolution stream only is getting recorded and the low resolution stream already is coming by fps 5.
But to me it looks like my GPU is doing nothing at all.

YAML:
go2rtc:
  streams:
    Cam-rechts:
      - rtsp:/xxxxxx:yyyyyy@192.168.2.61:554/cam/realmonitor?channel=1&subtype=0
    Cam-rechts_sub2:
      - rtsp:/xxxxxx:yyyyyy@192.168.2.61:554/cam/realmonitor?channel=1&subtype=2
    Cam-links:
      - rtsp:/xxxxxx:yyyyyy@192.168.2.62:554/cam/realmonitor?channel=1&subtype=0
    Cam-links_sub2:
      - rtsp:/xxxxxx:yyyyyy@192.168.2.62:554/cam/realmonitor?channel=1&subtype=2

  webrtc:
    candidates:
      - 192.168.2.60:8555
      - stun:8555

cameras:
  Cam-rechts:
    ffmpeg:
      output_args:
        record: preset-record-generic-audio-copy
      inputs:
        # High Resolution Stream
        - path: rtsp:/127.0.0.1:8554/Cam-rechts
          roles:
            - record
        # Low Resolution Stream
        - path: rtsp:/127.0.0.1:8554/Cam-rechts_sub2
          roles:
            - detect
            - audio
    detect:
      fps: 5

  Cam-links:
    ffmpeg:
      output_args:
        record: preset-record-generic-audio-copy
      inputs:
        # High Resolution Stream
        - path: rtsp:/127.0.0.1:8554/Cam-links
          roles:
            - record
        # Low Resolution Stream
        - path: rtsp:/127.0.0.1:8554/Cam-links_sub2
          roles:
            - detect
            - audio       
     detect:
      fps: 5

1733525818168.png
 
Tobias,

I see this is an old post. I hope you have managed to get answers to your questions by now. If not:

1. I suggest you go to the Frigate Github site for better support. blakeblackshear frigate · Discussions This site looks to be focused on Blue Iris.
2. Include your detector configuration in YAML.
3. Review reference documents e.g. Object Detectors | Frigate

I am new to Frigate myself, so I am not the best one to provide detailed tech support for you. I use the Coral USB TPU for detection, and it works very well. I have had hundreds of detections and alerts since installation, and zero false positives.
 
Tobias,

I see this is an old post. I hope you have managed to get answers to your questions by now. If not:

Hello
thank you for help.

At least everything is running and so I did not searched for the reason.
The Nvidia status shows that the GPU is doing something. Two ffmpeg processes running and I have two cameras.
If I find time and do not know what to do, I will pullout the GPU and check what will happen.

nvidia.png
 
Glad that you have things working. Frigate is amazing, but not necessarily easy to configure.

My configuration (with only one camera) starts with:

mqtt:
enabled: true
host: 192.168.XXX.XXX
port: 1883
user: mqtt-user
topic_prefix: frigate
client_id: frigate
password: ********************
ffmpeg:
hwaccel_args: preset-vaapi
#output_args:
#record: preset-record-generic-audio-aac
detectors:
coral:
type: edgetpu
device: usb
record:
enabled: true
retain:
days: 10
mode: all
go2rtc:
streams:
back_yard:
- rtsp:/a<user:psw>/Preview_01_main/cam/realmonitor?channel=1&subtype=2
- "ffmpeg:back_yard#audio=aac"
back_yard_sub:
- rtsp:/<user:psw>@192.168.YY.ZZ/Preview_01_sub
webrtc:
candidates:
- 192.168.1.XXX:8555
- stun: 8555

In my case the GPU is reported as "intel-vaapi," i.e. the VAAPI library makes use of the integrated graphics on my Intel i7 processor. I believe this is just for video encoding. Frigate reports low (but non-zero) GPU use ~0.4 - 2.5% for my single camera.
 
Last edited: