blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
18k stars 1.64k forks source link

[HW Accel Support]: Nvidia missing decode package #7538

Closed 8700nd closed 11 months ago

8700nd commented 1 year ago

Describe the problem you are having

ERROR: for frigate Cannot start service frigate: could not select device driver "nvidia" with capabilities: [[gpu]] Got this error but I have the Nvidia driver and nvidia-smi installed.

I am using Synology so no apt available. Is there a way to download and manually install the libnvidia-decode pacakges?

Version

0.12.1

Frigate config file

mqtt:
  enabled: False

cameras:
  name_of_your_camera: # <------ Name the camera
    ffmpeg:
      inputs:
        - path: rtsp://10.0.10.10:554/rtsp # <----- The stream you want to use for detection
          roles:
            - detect
    detect:
      enabled: False # <---- disable detection until you have a working camera feed
      width: 1280 # <---- update for your camera's resolution
      height: 720 # <---- update for your camera's resolution

docker-compose file or Docker CLI command

version: "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
    deploy:    # <------------- Add this section
      resources:
        reservations:
          devices:
            - driver: nvidia
              capabilities: [gpu]
    shm_size: "256mb" # 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:ro
      - /frigate/config.yml:/config/config.yml
      - /frigate:/media/frigate
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    ports:
      - "5555:5000"
      - "8554:8554" # RTSP feeds
      - "8555:8555/tcp" # WebRTC over tcp
      - "8555:8555/udp" # WebRTC over udp
    environment:
      FRIGATE_RTSP_PASSWORD: "password"

Relevant log output

ERROR: for frigate  Cannot start service frigate: could not select device driver "nvidia" with capabilities: [[gpu]]
Got this error but I have the Nvidia driver and nvidia-smi installed.

FFprobe output from your camera

.

Operating system

HassOS

Install method

HassOS Addon

Network connection

Wired

Camera make and model

Reolink

Any other information that may be helpful

No response

NickM-27 commented 1 year ago

I think this question is better suited for a synology forum, this question has nothing to do with frigate itself.

8700nd commented 1 year ago

I see. But frigate container won't start at all if there is no Nvidia decode lib?

NickM-27 commented 1 year ago

Your docker compose is telling it to mount with Nvidia gpu resources, so naturally they are required for the container to start.

github-actions[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.