[HW Accel Support]: #15438
[HW Accel Support]:
#15438
-
Describe the problem you are havingFrigate never detects Nvidia GPU 1030 in Proxmox LXC Free code project AI does. Driver 550.120 Version15 beta 2 Frigate config filemqtt:
enabled: false
detectors:
# deepstack:
# type: deepstack
# api_url: http://192.168.2.4:32168/v1/vision/detection
# api_timeout: 3 # seconds
cpu1:
type: cpu
num_threads: 4
cpu2:
type: cpu
num_threads: 4
cpu3:
type: cpu
num_threads: 4
#Global Object Settings
objects:
track:
- person
- cat
filters:
person:
min_area: 80
max_area: 100000
threshold: 0.7
cat:
threshold: 0.6
birdseye:
# Optional: Enable birdseye view (default: shown below)
enabled: true
# Optional: Restream birdseye via RTSP (default: shown below)
# NOTE: Enabling this will set birdseye to run 24/7 which may increase CPU usage somewhat.
restream: false
# Optional: Width of the output resolution (default: shown below)
width: 3840
# Optional: Height of the output resolution (default: shown below)
height: 2160
# Optional: Encoding quality of the mpeg1 feed (default: shown below)
# 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources.
quality: 1
# Optional: Mode of the view. Available options are: objects, motion, and continuous
# objects - cameras are included if they have had a tracked object within the last 30 seconds
# motion - cameras are included if motion was detected in the last 30 seconds
# continuous - all cameras are included always
mode: continuous
go2rtc:
log:
level: trace
api: trace
exec: trace
ngrok: trace
rtsp: trace
streams: trace
webrtc: trace
streams:
BackYard:
- ffmpeg:rtsp://192.168.2.100:554/stream0
BackYard_Sub:
- ffmpeg:rtsp://192.168.2.100:554/stream1
Window:
- ffmpeg:rtsp://192.168.2.102:554/live/main
Window_Sub:
- ffmpeg:rtsp://192.168.2.102:554/live/sub
webrtc:
candidates:
- 192.168.2.4:8555
- stun:8555
cameras:
BackYard:
birdseye:
order: 1
ffmpeg:
output_args:
record: preset-record-generic-audio-aac
inputs:
- path: rtsp://127.0.0.1:8554/BackYard?video&audio
input_args: preset-rtsp-restream
roles:
- record
- audio
- path: rtsp://127.0.0.1:8554/BackYard_Sub?video&audio
input_args: preset-rtsp-restream
roles:
- detect
live:
stream_name: BackYard
Window:
birdseye:
order: 2
ffmpeg:
output_args:
record: preset-record-generic-audio-aac
inputs:
- path: rtsp://127.0.0.1:8554/Window?video&audio
input_args: preset-rtsp-restream
roles:
- record
- audio
- path: rtsp://127.0.0.1:8554/Window_Sub?video&audio
input_args: preset-rtsp-restream
roles:
- detect
detect:
width: 640
height: 480
fps: 5
max_disappeared: 25
record:
enabled: true
retain:
days: 7
mode: motion
events:
pre_capture: 10
post_capture: 10
retain:
default: 14
mode: active_objects
snapshots:
enabled: true
retain:
default: 30 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.15.0-beta2
deploy: # <------------- Add this section
resources:
reservations:
devices:
- driver: nvidia
count: all # number of GPUs
capabilities: [gpu]
shm_size: "600.00mb" # update for your cameras based on calculation above
devices:
- /dev/bus/usb:/dev/bus/usb # passes the USB Coral, needs to be modified for other versions
- /dev/apex_0:/dev/apex_0 # passes a PCIe Coral, follow driver instructions here https://coral.ai/docs/m2/get-started/#2a-on-linux
- /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime
- /opt/frigate/config:/config
- /mnt/nfs:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 500000000
ports:
- "5000:5000"
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all Relevant Frigate log outputnfo | 2024-12-10 10:44:07 | startup | Preparing Frigate...
info | 2024-12-10 10:44:10 | startup | Starting Frigate...
info | 2024-12-10 10:44:28 | frigate.util.config | Checking if frigate config needs migration...
info | 2024-12-10 10:44:28 | frigate.util.config | frigate config does not need migration...
warning | 2024-12-10 10:44:30 | frigate.util.services | Did not detect hwaccel, using a GPU for accelerated video decoding is highly recommended
info | 2024-12-10 10:44:30 | frigate.app | Starting Frigate (0.15.0-e76f4e9)
info | 2024-12-10 10:44:30 | peewee_migrate.logs | Starting migrations
info | 2024-12-10 10:44:30 | peewee_migrate.logs | There is nothing to migrate
info | 2024-12-10 10:44:30 | frigate.app | Recording process started: 438
info | 2024-12-10 10:44:30 | frigate.app | Review process started: 439
info | 2024-12-10 10:44:30 | frigate.app | go2rtc process pid: 104
info | 2024-12-10 10:44:30 | detector.deepstack | Starting detection process: 441
info | 2024-12-10 10:44:30 | frigate.app | Output process started: 469
info | 2024-12-10 10:44:30 | frigate.app | Camera processor started for BackYard: 484
info | 2024-12-10 10:44:30 | frigate.app | Camera processor started for Window: 485
info | 2024-12-10 10:44:30 | frigate.app | Capture process started for BackYard: 496
info | 2024-12-10 10:44:30 | frigate.app | Capture process started for Window: 500
info | 2024-12-10 10:44:31 | frigate.api.fastapi_app | Starting FastAPI app
info | 2024-12-10 10:44:31 | frigate.api.fastapi_app | FastAPI started Relevant go2rtc log output2024-12-10 18:26:46.036498513 [aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443759474, current: 443759472; changing to 443759475. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:46.230505636 size=N/A time=00:24:53.17 bitrate=N/A speed= 1x
[aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443760162, current: 443760160; changing to 443760163. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:46.238320870 [aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443762834, current: 443762832; changing to 443762835. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:46.311431650 size=N/A time=07:42:16.08 bitrate=N/A speed= 1x
[aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443761474, current: 443761472; changing to 443761475. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:46.319773681 [aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443764146, current: 443764144; changing to 443764147. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:46.477594503 [aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443764162, current: 443764160; changing to 443764163. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:46.482280139 [aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443766834, current: 443766832; changing to 443766835. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:46.660006295 size=N/A time=07:42:15.32 bitrate=N/A speed= 1x
size=N/A time=07:42:15.27 bitrate=N/A speed= 1x
[aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443766850, current: 443766848; changing to 443766851. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:46.668483524 [aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443769522, current: 443769520; changing to 443769523. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:46.812395573 size=N/A time=00:24:53.67 bitrate=N/A speed= 1x
size=N/A time=07:42:16.59 bitrate=N/A speed= 1x
[aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443772210, current: 443772208; changing to 443772211. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:46.821941906 [aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443769538, current: 443769536; changing to 443769539. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:46.903007677 [aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443770866, current: 443770864; changing to 443770867. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:46.914226195 [aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443773538, current: 443773536; changing to 443773539. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:46.943769276 [aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443772210, current: 443772208; changing to 443772211. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:46.954887275 [aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443774882, current: 443774880; changing to 443774883. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.025866814 size=N/A time=07:42:15.82 bitrate=N/A speed= 1x
size=N/A time=07:42:15.77 bitrate=N/A speed= 1x
[aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443772914, current: 443772912; changing to 443772915. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.036535812 [aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443775586, current: 443775584; changing to 443775587. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.191062402 size=N/A time=00:24:54.18 bitrate=N/A speed= 1x
[aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443775602, current: 443775600; changing to 443775603. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.198983147 [aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443778274, current: 443778272; changing to 443778275. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.272461847 size=N/A time=07:42:17.09 bitrate=N/A speed= 1x
[aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443776914, current: 443776912; changing to 443776915. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.281213543 [aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443779586, current: 443779584; changing to 443779587. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.356278853 [aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443778242, current: 443778240; changing to 443778243. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.362032485 [aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443780914, current: 443780912; changing to 443780915. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.517796429 size=N/A time=07:42:16.32 bitrate=N/A speed= 1x
size=N/A time=07:42:16.28 bitrate=N/A speed= 1x
[aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443780930, current: 443780928; changing to 443780931. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.523492555 [aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443783602, current: 443783600; changing to 443783603. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.781053498 size=N/A time=00:24:54.68 bitrate=N/A speed= 1x
size=N/A time=07:42:17.59 bitrate=N/A speed= 1x
[aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443784946, current: 443784944; changing to 443784947. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.787979540 [aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443787618, current: 443787616; changing to 443787619. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.829360019 [aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443788962, current: 443788960; changing to 443788963. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.841568035 [aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443786290, current: 443786288; changing to 443786291. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.902371376 [aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443786994, current: 443786992; changing to 443786995. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.910372088 [aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443789666, current: 443789664; changing to 443789667. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.986551620 [aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443788322, current: 443788320; changing to 443788323. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:47.992131994 size=N/A time=07:42:16.83 bitrate=N/A speed= 1x
size=N/A time=07:42:16.78 bitrate=N/A speed= 1x
[aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443790994, current: 443790992; changing to 443790995. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:48.073410953 [aost#0:1/copy @ 0x560f32b80880] Non-monotonic DTS; previous: 443792322, current: 443792320; changing to 443792323. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:48.090008604 [aost#0:1/copy @ 0x6021b89df380] Non-monotonic DTS; previous: 443789650, current: 443789648; changing to 443789651. This may result in incorrect timestamps in the output file.
2024-12-10 18:26:48.257050590 size=N/A time=00:24:55.18 bitrate=N/A sp FFprobe output from your cameralibavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
Input #0, rtsp, from 'rtsp://192.168.2.100:554/stream0':
Metadata:
title : RTSP/RTP stream from anjvision ipcamera
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: hevc (Main), yuv420p(tv), 3840x2144, 23.92 tbr, 90k tbn
Stream #0:1: Audio: pcm_mulaw, 16000 Hz, mono, s16, 128 kb/s Install methodProxmox via Docker Object DetectorOther Network connectionWired Camera make and modelCTVision YM800N_WM230 Screenshots of the Frigate UI's System metrics pagesAny other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Answered by
NickM-27
Dec 11, 2024
Replies: 1 comment 3 replies
-
Set hwaccel args manually |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://deploy-preview-13787--frigate-docs.netlify.app/configuration/hardware_acceleration#setup-decoder