[Config Support]: Streaming & Recording is limited to 5 fps & low iGPU usage (intel 12th gen) #15841
-
Describe the problem you are havingI'm playing with frigate for quite some time and could not figure why frigate is restricting stream to 5fps while the camera is configured at 15 fps (working through VLC). Also, I find my CPU usage quite important while I'd like just to record without transcoding (from the documentation I understand that it should be possible to record directly h265). I'm using a Annke C800 with the configuration provided in frigate docs: https://docs.frigate.video/configuration/camera_specific/#annke-c800 Version0.13.2-6476f8a Frigate config fileffmpeg:
hwaccel_args: preset-vaapi
cameras:
annkec800_sd: #named _sd for legacy but will be updated
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/Streaming/Channels/101
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -tag:v hvc1 -bsf:v hevc_mp4toannexb -c:a aac
detect:
enabled: false
record:
enabled: True
retain:
days: 3
mode: all
events:
retain:
default: 60
mode: motion Relevant Frigate log outputroot@frigate:~/frigate-0.13.2# docker compose logs -f
frigate | s6-overlay-suexec: warning: unable to gain root privileges (is the suid bit set?)
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 frigate successfully started
frigate | s6-rc: info: service nginx: starting
frigate | s6-rc: info: service go2rtc-healthcheck successfully started
frigate | s6-rc: info: service nginx successfully started
frigate | s6-rc: info: service legacy-services: starting
frigate | 2025-01-06 11:40:45.370993842 [INFO] Preparing Frigate...
frigate | 2025-01-06 11:40:45.372005002 [INFO] Starting NGINX...
frigate | 2025-01-06 11:40:45.372992391 [INFO] Preparing new go2rtc config...
frigate | s6-rc: info: service legacy-services successfully started
frigate | 2025-01-06 11:40:45.397698650 [INFO] Starting Frigate...
frigate | 2025-01-06 11:40:45.738372778 [INFO] Starting go2rtc...
frigate | 2025-01-06 11:40:45.827346394 11:40:45.827 INF go2rtc version 1.8.4 linux/amd64
frigate | 2025-01-06 11:40:45.827865287 11:40:45.827 INF [api] listen addr=:1984
frigate | 2025-01-06 11:40:45.828071643 11:40:45.827 INF [rtsp] listen addr=:8554
frigate | 2025-01-06 11:40:45.828335259 11:40:45.828 INF [webrtc] listen addr=:8555
frigate | 2025-01-06 11:40:46.891697261 [2025-01-06 11:40:46] frigate.app INFO : Starting Frigate (0.13.2-6476f8a)
frigate | 2025-01-06 11:40:46.891891308 [2025-01-06 11:40:46] frigate.app INFO : Creating directory: /tmp/cache
frigate | 2025-01-06 11:40:49.641156718 2025/01/06 11:40:49 [error] 142#142: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.104, server: , request: "GET /ws HTTP/1.1", upstream: "http://127.0.0.1:5002/", host: "XXX
frigate | 2025-01-06 11:40:49.641185168 192.168.0.104 - - [06/Jan/2025:11:40:49 +0100] "GET /ws HTTP/1.1" 502 559 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" "192.168.1.1"
frigate | 2025-01-06 11:40:50.172150334 [2025-01-06 11:40:50] peewee_migrate.logs INFO : Starting migrations
frigate | 2025-01-06 11:40:50.192520579 [2025-01-06 11:40:50] peewee_migrate.logs INFO : There is nothing to migrate
frigate | 2025-01-06 11:40:50.201190329 [2025-01-06 11:40:50] frigate.app INFO : Recording process started: 459
frigate | 2025-01-06 11:40:50.203684124 [2025-01-06 11:40:50] frigate.app INFO : go2rtc process pid: 89
frigate | 2025-01-06 11:40:50.224622759 [2025-01-06 11:40:50] detector.cpu INFO : Starting detection process: 468
frigate | 2025-01-06 11:40:50.233268912 [2025-01-06 11:40:50] frigate.app INFO : Output process started: 470
frigate | 2025-01-06 11:40:50.234500720 [2025-01-06 11:40:50] frigate.detectors WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
frigate | 2025-01-06 11:40:50.254415703 [2025-01-06 11:40:50] frigate.app INFO : Camera processor started for annkec800_transcode: 476
frigate | 2025-01-06 11:40:50.259320088 [2025-01-06 11:40:50] frigate.app INFO : Camera processor started for annkec800_sd: 477
frigate | 2025-01-06 11:40:50.265383806 [2025-01-06 11:40:50] frigate.app INFO : Capture process started for annkec800_transcode: 479
frigate | 2025-01-06 11:40:50.270909772 [2025-01-06 11:40:50] frigate.app INFO : Capture process started for annkec800_sd: 483
frigate | 2025-01-06 11:40:50.317195731 2025/01/06 11:40:50 [error] 143#143: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", upstream: "http://127.0.0.1:5001version", host: "127.0.0.1:5000"
frigate | 2025-01-06 11:40:55.371854820 [INFO] Starting go2rtc healthcheck service...
frigate | 2025-01-06 11:41:55.664323184 192.168.0.104 - - [06/Jan/2025:11:41:55 +0100] "GET /ws HTTP/1.1" 101 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" "192.168.1.1" Relevant go2rtc log outputNo go2rtc output Frigate statsNo response Operating systemProxmox Install methodProxmox via Docker docker-compose file or Docker CLI commandservices:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:0.13.2
shm_size: "456mb" # update for your cameras based on calculation above
devices:
- /dev/dri/renderD128
volumes:
- /etc/localtime:/etc/localtime:ro
- /mnt/proxmox-services/frigate/config:/config
- /mnt/nfs/frigate:/media/frigate
- /dev/dri:/dev/dri
- /dev/bus/usb:/dev/bus/usb
ports:
- "5000:5000"
- "8554:8554" # RTSP feeds
- "8555:8555" # WebRTC over tcp
user: root
environment:
- LIBVA_DRIVER_NAME=iHD
- PUID=0
- PGID=0
- DISPLAY=:0
- LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri
- FRIGATE_RTSP_PASSWORD="password" Object DetectorCPU (no coral) Screenshots of the Frigate UI's System metrics pagesAny other information that may be helpful
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You need to use go2rtc if you want a more fluent live view. See the official documentation: |
Beta Was this translation helpful? Give feedback.
-
Thanks again @hawkeye217 I can confirm that even UI is mentioning 5fps for the corresponding stream, videos are recorded at 15fps. Setting up the 2 streams under the same cameras solved the CPU issue! |
Beta Was this translation helpful? Give feedback.
No, don't need go2rtc for that. Just use the HD stream for the
record
role, and your low-res stream for thedetect
role.https://docs.frigate.video/configuration/cameras/#setting-up-camera-inputs