[Detector Support]: libnvjpeg.so not found on Jetson AGX Xavier with stable-tensorrt-jp5 image #13742
-
Checklist
Describe the problem you are havingNot able to start Steps to reproduce
Version0.14.1-f4f3cfa In which browser(s) are you experiencing the issue with?No response Frigate config filemqtt:
enabled: false
auth:
enabled: false
detect:
enabled: false
birdseye:
enabled: true
mode: motion
record:
enabled: true
retain:
days: 7
mode: motion
motion:
mask: 0.024,0.103,0.284,0.099,0.278,0.039,0.025,0.039
cameras:
camera1:
enabled: true
ffmpeg:
hwaccel_args: preset-jetson-h264
inputs:
- path: rtsp://camera1.rnd.xyz/ch0_1.h264
roles:
- audio
- detect
- record
camera2:
enabled: true
ffmpeg:
hwaccel_args: preset-jetson-h264
inputs:
- path: rtsp://camera2.rnd.xyz/ch0_1.h264
roles:
- audio
- detect
- record
camera4:
enabled: true
ffmpeg:
hwaccel_args: preset-jetson-h264
inputs:
- path: rtsp://camera4.rnd.xyz/ch0_1.h264
roles:
- audio
- detect
- record
camera5:
enabled: true
ffmpeg:
hwaccel_args: preset-jetson-h264
inputs:
- path: rtsp://camera5.rnd.xyz/ch0_1.h264
roles:
- audio
- detect
- record
version: 0.14
camera_groups:
Birdseye:
order: 1
icon: LuAsterisk
cameras: birdseye docker-compose file or Docker CLI commandversion: "3.9"
services:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable-tensorrt-jp5
runtime: nvidia
shm_size: "256mb" # update for your cameras based on calculation above
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/dustin/frigate/config:/config
- /home/dustin/frigate/media:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "8971:8971"
- "8553:8554" # RTSP feeds
- "8556:8555/tcp" # WebRTC over tcp
- "8556:8555/udp" # WebRTC over udp
environment:
FRIGATE_RTSP_PASSWORD: "password" Relevant Frigate log outputfrigate | 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 trt-model-prepare: starting
frigate | s6-rc: info: service log-prepare: starting
frigate | s6-rc: info: service log-prepare successfully started
frigate | No models to convert.
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 certsync-log: starting
frigate | s6-rc: info: service trt-model-prepare 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 certsync-log successfully started
frigate | s6-rc: info: service nginx-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 | 2024-09-14 11:16:44.377115960 [INFO] Preparing Frigate...
frigate | 2024-09-14 11:16:44.396507740 [INFO] Starting NGINX...
frigate | 2024-09-14 11:16:44.447337415 [INFO] Preparing new go2rtc config...
frigate | 2024-09-14 11:16:44.478181809 [INFO] Starting Frigate...
frigate | 2024-09-14 11:16:45.497601258 [INFO] Starting go2rtc...
frigate | 2024-09-14 11:16:45.674754186 11:16:45.674 INF go2rtc platform=linux/arm64 revision=b2399f3 version=1.9.2
frigate | 2024-09-14 11:16:45.674767499 11:16:45.674 INF config path=/dev/shm/go2rtc.yaml
frigate | 2024-09-14 11:16:45.676913938 11:16:45.676 INF [rtsp] listen addr=:8554
frigate | 2024-09-14 11:16:45.677892417 11:16:45.677 INF [webrtc] listen addr=:8555/tcp
frigate | 2024-09-14 11:16:45.678756299 11:16:45.677 INF [api] listen addr=:1984
frigate | s6-rc: info: service nginx successfully started
frigate | s6-rc: info: service certsync: starting
frigate | s6-rc: info: service certsync successfully started
frigate | s6-rc: info: service legacy-services: starting
frigate | 2024-09-14 11:16:45.717852193 [INFO] Starting certsync...
frigate | s6-rc: info: service legacy-services successfully started
frigate | 2024-09-14 11:16:45.942977154 127.0.0.1 - - [14/Sep/2024:11:16:45 -0500] "" 400 0 "-" "-" "-"
frigate | 2024-09-14 11:16:49.035136407 [2024-09-14 11:16:49] frigate.app INFO : Starting Frigate (0.14.1-f4f3cfa)
frigate | 2024-09-14 11:16:49.035754261 [2024-09-14 11:16:49] frigate.util.config INFO : Checking if frigate config needs migration...
frigate | 2024-09-14 11:16:49.079143096 [2024-09-14 11:16:49] frigate.util.config INFO : frigate config does not need migration...
frigate | 2024-09-14 11:16:49.440218740 [2024-09-14 11:16:49] frigate.util.services WARNING : Did not detect hwaccel, using a GPU for accelerated video decoding is highly recommended Relevant go2rtc log outputNot relevant? Operating systemOther Linux Install methodDocker Compose Network connectionWireless Camera make and modelYi with Yi-Hack 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 1 reply
-
I should note, this is on a slightly hacky OS setup. I flashed this Jetson with Ubuntu 20.04, then
|
Beta Was this translation helpful? Give feedback.
-
This is not a bug, the host has to provide the drivers |
Beta Was this translation helpful? Give feedback.
-
For posterity, this was a result of a couple things:
An additional thing I did to get detection running on my Xavier was to set up the detector and model parameters, nice and simple, as described in the docs. detectors:
tegra:
type: tensorrt
model:
path: /config/model_cache/tensorrt/yolov7-320.trt
input_tensor: nchw
input_pixel_format: rgb
width: 320
height: 320 |
Beta Was this translation helpful? Give feedback.
For posterity, this was a result of a couple things:
docker run
command I was using doesn't attach to an existing container or use the config fromdocker-compose.yml
, so of courselibnvjpeg
couldn't be found since nothing was being passed on from the host. This explains whyffmpeg
started without issue when running viadocker-compose up
. 100% PEBCAK.WARNING : Did not detect hwaccel ...
at the bottom of the Frigate log. This was a result of myhwaccel_args: preset-jetson-h264
being listed individually for each camera. Creating a rootffmpeg:
entry with thehwaccel_args:
as a child fixed this.An additional thing I did to get detection running on my…