[HW Accel Support]: #15403
-
Describe the problem you are havingCannot get FFMPEG to recognize RTX 3090 despite nvidia-smi showing proper information and FFMPEG within the container seeing the capabilities. FFMPEG keeps crashing, and thus I am no longer able to utilize hardware video acceleration. Version0.14.1-f4f3cfa Frigate config filemqtt:
enabled: True
host: 10.20.0.2
port: 1883
snapshots:
enabled: True
retain:
default: 1
birdseye:
enabled: False
detectors:
coral:
type: edgetpu
device: usb
ffmpeg:
hwaccel_args: preset-nvidia-h264
cameras:
front: # <----- FRONT CAMERA ---------->
objects:
track:
- person
- cat
- dog
- package
filters:
person:
min_score: 0.6
mask:
- 697,0,0,0,61,356
cat:
min_score: 0.6
dog:
min_score: 0.6
package:
min_score: 0.6
ffmpeg:
inputs:
- path: rtsp://admin:****@10.20.0.5:554/cam/realmonitor?channel=1&subtype=0
roles:
- record
- path: rtsp://admin:****@10.20.0.5:554/cam/realmonitor?channel=1&subtype=1
roles:
- detect
copy -c:a aac
detect:
width: 1280
height: 720
record:
enabled: True
retain:
days: 2
mode: all
events:
retain:
default: 7
mode: motion
zones:
walkway:
coordinates: 1063,31,1280,198,1280,288,1191,419,940,720,385,720,263,509,297,496,267,421,595,243
dropoff:
coordinates: 908,720,1280,305,987,90,807,205,806,248,738,287,606,234,251,416,390,720
version: 0.14 docker-compose file or Docker CLI commandversion: "3.9"
services:
frigate: # <----------------------------------------------- RUN FRIGATE
container_name: frigatenew
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
deploy: # <------------- Nvidia hardware deployment
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu, utility, video, compute]
shm_size: "512mb" # 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
volumes:
- /etc/localtime:/etc/localtime:ro
- /mnt/data/frigate-new/config/config.yml:/config/config.yml
- /mnt/data/frigate-new/media:/media/frigate
# - /dev/bus/usb:/dev/bus/usb
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "6060:5000"
- "9554:8554" # RTSP feeds
- "9555:8555/tcp" # WebRTC over tcp
- "9555:8555/udp" # WebRTC over udp
environment:
FRIGATE_RTSP_PASSWORD: "****"
# PLUS_API_KEY: "****" Relevant Frigate log output2024-12-08 14:15:08.808809802 [2024-12-08 14:15:08] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x5643b63e5bc0] Could not dynamically load CUDA
2024-12-08 14:15:08.808859593 [2024-12-08 14:15:08] ffmpeg.front.detect ERROR : Device creation failed: -1.
2024-12-08 14:15:08.808912823 [2024-12-08 14:15:08] ffmpeg.front.detect ERROR : [h264 @ 0x5643b63b6c80] No device available for decoder: device type cuda needed for codec h264.
2024-12-08 14:15:08.808961284 [2024-12-08 14:15:08] ffmpeg.front.detect ERROR : Device setup failed for decoder on input stream #0:0 : Operation not permitted
2024-12-08 14:15:10.872606092 [2024-12-08 14:15:10] frigate.video ERROR : front: Unable to read frames from ffmpeg process.
2024-12-08 14:15:10.872692793 [2024-12-08 14:15:10] frigate.video ERROR : front: ffmpeg process is not running. exiting capture thread...
2024-12-08 14:15:13.547327028 [2024-12-08 14:15:13] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for front. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-12-08 14:15:18.821621729 [2024-12-08 14:15:18] watchdog.front ERROR : Ffmpeg process crashed unexpectedly for front.
2024-12-08 14:15:18.821715980 [2024-12-08 14:15:18] watchdog.front ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-08 14:15:18.821779791 [2024-12-08 14:15:18] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x5557565a6700] Cannot load libcuda.so.1
2024-12-08 14:15:18.821833461 [2024-12-08 14:15:18] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x5557565a6700] Could not dynamically load CUDA
2024-12-08 14:15:18.821880192 [2024-12-08 14:15:18] ffmpeg.front.detect ERROR : Device creation failed: -1.
2024-12-08 14:15:18.821928852 [2024-12-08 14:15:18] ffmpeg.front.detect ERROR : [h264 @ 0x5557564b2540] No device available for decoder: device type cuda needed for codec h264.
2024-12-08 14:15:18.821972893 [2024-12-08 14:15:18] ffmpeg.front.detect ERROR : Device setup failed for decoder on input stream #0:0 : Operation not permitted
2024-12-08 14:15:20.870118170 [2024-12-08 14:15:20] frigate.video ERROR : front: Unable to read frames from ffmpeg process.
2024-12-08 14:15:20.870206961 [2024-12-08 14:15:20] frigate.video ERROR : front: ffmpeg process is not running. exiting capture thread...
2024-12-08 14:15:23.558175884 [2024-12-08 14:15:23] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for front. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-12-08 14:15:28.833537052 [2024-12-08 14:15:28] watchdog.front ERROR : Ffmpeg process crashed unexpectedly for front.
2024-12-08 14:15:28.833630943 [2024-12-08 14:15:28] watchdog.front ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-08 14:15:28.833696204 [2024-12-08 14:15:28] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x563f6c0f5540] Cannot load libcuda.so.1
2024-12-08 14:15:28.833752474 [2024-12-08 14:15:28] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x563f6c0f5540] Could not dynamically load CUDA
2024-12-08 14:15:28.833804015 [2024-12-08 14:15:28] ffmpeg.front.detect ERROR : Device creation failed: -1.
2024-12-08 14:15:28.833854055 [2024-12-08 14:15:28] ffmpeg.front.detect ERROR : [h264 @ 0x563f6c0f07c0] No device available for decoder: device type cuda needed for codec h264.
2024-12-08 14:15:28.833901486 [2024-12-08 14:15:28] ffmpeg.front.detect ERROR : Device setup failed for decoder on input stream #0:0 : Operation not permitted
2024-12-08 14:15:30.884041354 [2024-12-08 14:15:30] frigate.video ERROR : front: Unable to read frames from ffmpeg process.
2024-12-08 14:15:30.884131625 [2024-12-08 14:15:30] frigate.video ERROR : front: ffmpeg process is not running. exiting capture thread...
2024-12-08 14:15:33.562081793 [2024-12-08 14:15:33] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for front. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-12-08 14:15:33.738564475 [2024-12-08 14:15:33] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected
2024-12-08 14:15:38.846618196 [2024-12-08 14:15:38] watchdog.front ERROR : Ffmpeg process crashed unexpectedly for front.
2024-12-08 14:15:38.846720347 [2024-12-08 14:15:38] watchdog.front ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-08 14:15:38.846826788 [2024-12-08 14:15:38] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x55df8a6371c0] Cannot load libcuda.so.1
2024-12-08 14:15:38.846913838 [2024-12-08 14:15:38] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x55df8a6371c0] Could not dynamically load CUDA
2024-12-08 14:15:38.846997429 [2024-12-08 14:15:38] ffmpeg.front.detect ERROR : Device creation failed: -1.
2024-12-08 14:15:38.847068540 [2024-12-08 14:15:38] ffmpeg.front.detect ERROR : [h264 @ 0x55df8a644e80] No device available for decoder: device type cuda needed for codec h264.
2024-12-08 14:15:38.847134751 [2024-12-08 14:15:38] ffmpeg.front.detect ERROR : Device setup failed for decoder on input stream #0:0 : Operation not permitted
2024-12-08 14:15:41.008021807 [2024-12-08 14:15:41] frigate.video ERROR : front: Unable to read frames from ffmpeg process.
2024-12-08 14:15:41.008107468 [2024-12-08 14:15:41] frigate.video ERROR : front: ffmpeg process is not running. exiting capture thread...
2024-12-08 14:15:43.568668798 [2024-12-08 14:15:43] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for front. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-12-08 14:15:48.860065920 [2024-12-08 14:15:48] watchdog.front ERROR : Ffmpeg process crashed unexpectedly for front.
2024-12-08 14:15:48.860178061 [2024-12-08 14:15:48] watchdog.front ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-08 14:15:48.860274612 [2024-12-08 14:15:48] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x560b4b0cfd40] Cannot load libcuda.so.1
2024-12-08 14:15:48.860361213 [2024-12-08 14:15:48] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x560b4b0cfd40] Could not dynamically load CUDA
2024-12-08 14:15:48.860440744 [2024-12-08 14:15:48] ffmpeg.front.detect ERROR : Device creation failed: -1.
2024-12-08 14:15:48.860511435 [2024-12-08 14:15:48] ffmpeg.front.detect ERROR : [h264 @ 0x560b4b0e1540] No device available for decoder: device type cuda needed for codec h264.
2024-12-08 14:15:48.860579635 [2024-12-08 14:15:48] ffmpeg.front.detect ERROR : Device setup failed for decoder on input stream #0:0 : Operation not permitted
2024-12-08 14:15:50.830552601 [2024-12-08 14:15:50] frigate.video ERROR : front: Unable to read frames from ffmpeg process.
2024-12-08 14:15:50.830627321 [2024-12-08 14:15:50] frigate.video ERROR : front: ffmpeg process is not running. exiting capture thread...
2024-12-08 14:15:53.576595860 [2024-12-08 14:15:53] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for front. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-12-08 14:15:58.873642413 [2024-12-08 14:15:58] watchdog.front ERROR : Ffmpeg process crashed unexpectedly for front.
2024-12-08 14:15:58.873756224 [2024-12-08 14:15:58] watchdog.front ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-08 14:15:58.873851265 [2024-12-08 14:15:58] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x563dbe0021c0] Cannot load libcuda.so.1
2024-12-08 14:15:58.873939056 [2024-12-08 14:15:58] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x563dbe0021c0] Could not dynamically load CUDA
2024-12-08 14:15:58.874015776 [2024-12-08 14:15:58] ffmpeg.front.detect ERROR : Device creation failed: -1.
2024-12-08 14:15:58.874084397 [2024-12-08 14:15:58] ffmpeg.front.detect ERROR : [h264 @ 0x563dbe00f0c0] No device available for decoder: device type cuda needed for codec h264.
2024-12-08 14:15:58.874151608 [2024-12-08 14:15:58] ffmpeg.front.detect ERROR : Device setup failed for decoder on input stream #0:0 : Operation not permitted
2024-12-08 14:16:00.941002341 [2024-12-08 14:16:00] frigate.video ERROR : front: Unable to read frames from ffmpeg process.
2024-12-08 14:16:00.941110202 [2024-12-08 14:16:00] frigate.video ERROR : front: ffmpeg process is not running. exiting capture thread...
2024-12-08 14:16:03.584714128 [2024-12-08 14:16:03] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for front. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-12-08 14:16:08.886997055 [2024-12-08 14:16:08] watchdog.front ERROR : Ffmpeg process crashed unexpectedly for front.
2024-12-08 14:16:08.887109446 [2024-12-08 14:16:08] watchdog.front ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-08 14:16:08.887201327 [2024-12-08 14:16:08] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x55947a186d40] Cannot load libcuda.so.1
2024-12-08 14:16:08.887288938 [2024-12-08 14:16:08] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x55947a186d40] Could not dynamically load CUDA
2024-12-08 14:16:08.887367088 [2024-12-08 14:16:08] ffmpeg.front.detect ERROR : Device creation failed: -1.
2024-12-08 14:16:08.887436399 [2024-12-08 14:16:08] ffmpeg.front.detect ERROR : [h264 @ 0x55947a19aa40] No device available for decoder: device type cuda needed for codec h264.
2024-12-08 14:16:08.887503310 [2024-12-08 14:16:08] ffmpeg.front.detect ERROR : Device setup failed for decoder on input stream #0:0 : Operation not permitted
2024-12-08 14:16:10.942575693 [2024-12-08 14:16:10] frigate.video ERROR : front: Unable to read frames from ffmpeg process.
2024-12-08 14:16:10.942681604 [2024-12-08 14:16:10] frigate.video ERROR : front: ffmpeg process is not running. exiting capture thread...
2024-12-08 14:16:13.591494723 [2024-12-08 14:16:13] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for front. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-12-08 14:16:18.900446847 [2024-12-08 14:16:18] watchdog.front ERROR : Ffmpeg process crashed unexpectedly for front.
2024-12-08 14:16:18.900557888 [2024-12-08 14:16:18] watchdog.front ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-08 14:16:18.900655549 [2024-12-08 14:16:18] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x560b9d83d100] Cannot load libcuda.so.1
2024-12-08 14:16:18.900743550 [2024-12-08 14:16:18] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x560b9d83d100] Could not dynamically load CUDA
2024-12-08 14:16:18.900820591 [2024-12-08 14:16:18] ffmpeg.front.detect ERROR : Device creation failed: -1.
2024-12-08 14:16:18.900889382 [2024-12-08 14:16:18] ffmpeg.front.detect ERROR : [h264 @ 0x560b9d6cdc00] No device available for decoder: device type cuda needed for codec h264.
2024-12-08 14:16:18.900956022 [2024-12-08 14:16:18] ffmpeg.front.detect ERROR : Device setup failed for decoder on input stream #0:0 : Operation not permitted
2024-12-08 14:16:20.870249843 [2024-12-08 14:16:20] frigate.video ERROR : front: Unable to read frames from ffmpeg process.
2024-12-08 14:16:20.870342614 [2024-12-08 14:16:20] frigate.video ERROR : front: ffmpeg process is not running. exiting capture thread...
2024-12-08 14:16:23.601439224 [2024-12-08 14:16:23] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for front. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-12-08 14:16:28.911060047 [2024-12-08 14:16:28] watchdog.front ERROR : Ffmpeg process crashed unexpectedly for front.
2024-12-08 14:16:28.911148458 [2024-12-08 14:16:28] watchdog.front ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-08 14:16:28.911220479 [2024-12-08 14:16:28] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x55decf8861c0] Cannot load libcuda.so.1
2024-12-08 14:16:28.911288099 [2024-12-08 14:16:28] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x55decf8861c0] Could not dynamically load CUDA
2024-12-08 14:16:28.911351470 [2024-12-08 14:16:28] ffmpeg.front.detect ERROR : Device creation failed: -1.
2024-12-08 14:16:28.911407641 [2024-12-08 14:16:28] ffmpeg.front.detect ERROR : [h264 @ 0x55decf893a00] No device available for decoder: device type cuda needed for codec h264.
2024-12-08 14:16:28.911460021 [2024-12-08 14:16:28] ffmpeg.front.detect ERROR : Device setup failed for decoder on input stream #0:0 : Operation not permitted
2024-12-08 14:16:30.874713866 [2024-12-08 14:16:30] frigate.video ERROR : front: Unable to read frames from ffmpeg process.
2024-12-08 14:16:30.874808797 [2024-12-08 14:16:30] frigate.video ERROR : front: ffmpeg process is not running. exiting capture thread...
2024-12-08 14:16:33.611400704 [2024-12-08 14:16:33] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for front. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-12-08 14:16:33.797460312 [2024-12-08 14:16:33] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected
2024-12-08 14:16:38.923244489 [2024-12-08 14:16:38] watchdog.front ERROR : Ffmpeg process crashed unexpectedly for front.
2024-12-08 14:16:38.923344210 [2024-12-08 14:16:38] watchdog.front ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-08 14:16:38.923432521 [2024-12-08 14:16:38] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x55fb58bfce00] Cannot load libcuda.so.1
2024-12-08 14:16:38.923519642 [2024-12-08 14:16:38] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x55fb58bfce00] Could not dynamically load CUDA
2024-12-08 14:16:38.923602913 [2024-12-08 14:16:38] ffmpeg.front.detect ERROR : Device creation failed: -1.
2024-12-08 14:16:38.923674873 [2024-12-08 14:16:38] ffmpeg.front.detect ERROR : [h264 @ 0x55fb58aa32c0] No device available for decoder: device type cuda needed for codec h264.
2024-12-08 14:16:38.923741374 [2024-12-08 14:16:38] ffmpeg.front.detect ERROR : Device setup failed for decoder on input stream #0:0 : Operation not permitted
2024-12-08 14:16:40.940316896 [2024-12-08 14:16:40] frigate.video ERROR : front: Unable to read frames from ffmpeg process.
2024-12-08 14:16:40.940386366 [2024-12-08 14:16:40] frigate.video ERROR : front: ffmpeg process is not running. exiting capture thread...
2024-12-08 14:16:43.621331060 [2024-12-08 14:16:43] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for front. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-12-08 14:16:48.936480549 [2024-12-08 14:16:48] watchdog.front ERROR : Ffmpeg process crashed unexpectedly for front.
2024-12-08 14:16:48.936591320 [2024-12-08 14:16:48] watchdog.front ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-08 14:16:48.936682271 [2024-12-08 14:16:48] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x56216285b780] Cannot load libcuda.so.1
2024-12-08 14:16:48.936768182 [2024-12-08 14:16:48] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x56216285b780] Could not dynamically load CUDA
2024-12-08 14:16:48.936841032 [2024-12-08 14:16:48] ffmpeg.front.detect ERROR : Device creation failed: -1.
2024-12-08 14:16:48.936908333 [2024-12-08 14:16:48] ffmpeg.front.detect ERROR : [h264 @ 0x5621627030c0] No device available for decoder: device type cuda needed for codec h264.
2024-12-08 14:16:48.936972484 [2024-12-08 14:16:48] ffmpeg.front.detect ERROR : Device setup failed for decoder on input stream #0:0 : Operation not permitted
2024-12-08 14:16:50.939548514 [2024-12-08 14:16:50] frigate.video ERROR : front: Unable to read frames from ffmpeg process.
2024-12-08 14:16:50.939636775 [2024-12-08 14:16:50] frigate.video ERROR : front: ffmpeg process is not running. exiting capture thread...
2024-12-08 14:16:53.631248723 [2024-12-08 14:16:53] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for front. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-12-08 14:16:58.949611862 [2024-12-08 14:16:58] watchdog.front ERROR : Ffmpeg process crashed unexpectedly for front.
2024-12-08 14:16:58.949721763 [2024-12-08 14:16:58] watchdog.front ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-08 14:16:58.949814804 [2024-12-08 14:16:58] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x55910e647d40] Cannot load libcuda.so.1
2024-12-08 14:16:58.949902304 [2024-12-08 14:16:58] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x55910e647d40] Could not dynamically load CUDA
2024-12-08 14:16:58.949974455 [2024-12-08 14:16:58] ffmpeg.front.detect ERROR : Device creation failed: -1.
2024-12-08 14:16:58.950042466 [2024-12-08 14:16:58] ffmpeg.front.detect ERROR : [h264 @ 0x55910e657980] No device available for decoder: device type cuda needed for codec h264.
2024-12-08 14:16:58.950108216 [2024-12-08 14:16:58] ffmpeg.front.detect ERROR : Device setup failed for decoder on input stream #0:0 : Operation not permitted
2024-12-08 14:17:00.941622854 [2024-12-08 14:17:00] frigate.video ERROR : front: Unable to read frames from ffmpeg process.
2024-12-08 14:17:00.941706995 [2024-12-08 14:17:00] frigate.video ERROR : front: ffmpeg process is not running. exiting capture thread...
2024-12-08 14:17:02.180062025 [2024-12-08 14:17:02] frigate.comms.mqtt ERROR : Unable to publish to camera_activity: client is not connected
2024-12-08 14:17:03.640335154 [2024-12-08 14:17:03] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for front. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-12-08 14:17:08.963067096 [2024-12-08 14:17:08] watchdog.front ERROR : Ffmpeg process crashed unexpectedly for front.
2024-12-08 14:17:08.963121556 [2024-12-08 14:17:08] watchdog.front ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-08 14:17:08.963200307 [2024-12-08 14:17:08] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x5571fea8f1c0] Cannot load libcuda.so.1
2024-12-08 14:17:08.963271698 [2024-12-08 14:17:08] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x5571fea8f1c0] Could not dynamically load CUDA
2024-12-08 14:17:08.963343059 [2024-12-08 14:17:08] ffmpeg.front.detect ERROR : Device creation failed: -1.
2024-12-08 14:17:08.963413269 [2024-12-08 14:17:08] ffmpeg.front.detect ERROR : [h264 @ 0x5571fea9d7c0] No device available for decoder: device type cuda needed for codec h264.
2024-12-08 14:17:08.963481030 [2024-12-08 14:17:08] ffmpeg.front.detect ERROR : Device setup failed for decoder on input stream #0:0 : Operation not permitted
2024-12-08 14:17:11.011915567 [2024-12-08 14:17:11] frigate.video ERROR : front: Unable to read frames from ffmpeg process.
2024-12-08 14:17:11.012006227 [2024-12-08 14:17:11] frigate.video ERROR : front: ffmpeg process is not running. exiting capture thread...
2024-12-08 14:17:13.650459120 [2024-12-08 14:17:13] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for front. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-12-08 14:17:18.976426476 [2024-12-08 14:17:18] watchdog.front ERROR : Ffmpeg process crashed unexpectedly for front.
2024-12-08 14:17:18.976512447 [2024-12-08 14:17:18] watchdog.front ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-08 14:17:18.976577057 [2024-12-08 14:17:18] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x562c8c0a98c0] Cannot load libcuda.so.1
2024-12-08 14:17:18.976632788 [2024-12-08 14:17:18] ffmpeg.front.detect ERROR : [AVHWDeviceContext @ 0x562c8c0a98c0] Could not dynamically load CUDA
2024-12-08 14:17:18.976683328 [2024-12-08 14:17:18] ffmpeg.front.detect ERROR : Device creation failed: -1.
2024-12-08 14:17:18.976733199 [2024-12-08 14:17:18] ffmpeg.front.detect ERROR : [h264 @ 0x562c8c0b6a00] No device available for decoder: device type cuda needed for codec h264.
2024-12-08 14:17:18.976781819 [2024-12-08 14:17:18] ffmpeg.front.detect ERROR : Device setup failed for decoder on input stream #0:0 : Operation not permitted
2024-12-08 14:17:21.019734730 [2024-12-08 14:17:21] frigate.video ERROR : front: Unable to read frames from ffmpeg process.
2024-12-08 14:17:21.019814011 [2024-12-08 14:17:21] frigate.video ERROR : front: ffmpeg process is not running. exiting capture thread...
2024-12-08 14:17:23.660443791 [2024-12-08 14:17:23] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for front. Keeping the 6 most recent segments out of 7 and discarding the rest... Relevant go2rtc log output2024-12-08 14:02:06.957082495 [INFO] Preparing new go2rtc config...
2024-12-08 14:02:07.143946945 [INFO] Starting go2rtc...
2024-12-08 14:02:07.223928024 14:02:07.223 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
2024-12-08 14:02:07.223948764 14:02:07.223 INF config path=/dev/shm/go2rtc.yaml
2024-12-08 14:02:07.224213796 14:02:07.224 INF [rtsp] listen addr=:8554
2024-12-08 14:02:07.224306327 14:02:07.224 INF [webrtc] listen addr=:8555/tcp
2024-12-08 14:02:07.224795720 14:02:07.224 INF [api] listen addr=:1984
2024-12-08 14:02:16.955633089 [INFO] Starting go2rtc healthcheck service... FFprobe output from your camera[rtsp @ 0x55c1e2458140] max delay reached. need to consume packet
[rtsp @ 0x55c1e2458140] RTP: missed 65 packets
[h264 @ 0x55c1e245d380] error while decoding MB 71 105, bytestream -9
[h264 @ 0x55c1e245d380] concealing 7178 DC, 7178 AC, 7178 MV errors in P frame
Input #0, rtsp, from 'rtsp://admin:****@10.20.0.5:554':
Metadata:
title : Media Server
Duration: N/A, start: 0.040000, bitrate: N/A
Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 15 fps, 100 tbr, 90k tbn
Stream #0:1: Audio: pcm_alaw, 16000 Hz, mono, s16, 128 kb/s Install methodDocker Compose Object DetectorCoral Network connectionWired Camera make and modelAmcrest 5mp Screenshots of the Frigate UI's System metrics pagesAny other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
The nvidia runtime does not seem to be applied / installed correctly See https://github.com/blakeblackshear/frigate/issues?q=is%3Aissue+Cannot+load+libcuda.so.1+is%3Aclosed for other users that solved this issue |
Beta Was this translation helpful? Give feedback.
-
you need to add count to your docker compose. version: "3.9"
services:
frigate: # <----------------------------------------------- RUN FRIGATE
container_name: frigatenew
privileged: true # this may not be necessary for all setups
runtime: nvidia # add this too, but to be honest, I'm not sure if it is required.
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
deploy: # <------------- Nvidia hardware deployment
resources:
reservations:
devices:
- driver: nvidia
count: all # missing
capabilities: [gpu] # gpu is the only flag needed, it allows the rest of the flags anyway.
shm_size: "512mb" # 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
volumes:
- /etc/localtime:/etc/localtime:ro
- /mnt/data/frigate-new/config/config.yml:/config/config.yml
- /mnt/data/frigate-new/media:/media/frigate
# - /dev/bus/usb:/dev/bus/usb
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "6060:5000"
- "9554:8554" # RTSP feeds
- "9555:8555/tcp" # WebRTC over tcp
- "9555:8555/udp" # WebRTC over udp
environment:
FRIGATE_RTSP_PASSWORD: "****"
# PLUS_API_KEY: "****" |
Beta Was this translation helpful? Give feedback.
-
strongly suggest using go2rtc as well. you are specifying a FRIGATE_RTSP_PASSWORD env var in your docker compose, that can be used in the config like. Allowing easier copy/paste for support. - path: rtsp://admin:{FRIGATE_RTSP_PASSWORD}@10.20.0.5:554/cam/realmonitor?channel=1&subtype=0 you can also add similar env vars for anything you want to protect in your config file. It just needs to start with FRIGATE. eg. FRIGATE_SUPER_SECURE_USERNAME - path: rtsp://{FRIGATE_SUPER_SECURE_USERNAME}:{FRIGATE_RTSP_PASSWORD}@10.20.0.5:554/cam/realmonitor?channel=1&subtype=0 |
Beta Was this translation helpful? Give feedback.
you need to add count to your docker compose.