Skip to content

[HW Accel Support]: ffmpeg: hwaccel_args: preset-nvidia #17632

Closed Answered by lyett
lyett asked this question in Hardware Acceleration Support
Discussion options

You must be logged in to vote

Answer:

  1. Check the Runtime field: docker inspect frigate | grep -i runtime || You should see: "Runtime": "nvidia",
  2. If that fails (you see "Runtime": "runc"...) then force the runtime globally: nano /etc/docker/daemon.json: and add the below
{
 "default-runtime": "nvidia",
 "runtimes": {
   "nvidia": {
     "path": "nvidia-container-runtime",
     "runtimeArgs": []
   }
 }
}
  1. Restart docker: systemctl restart docker
  2. Verify CUDA is accessible inside the container: docker info | grep -i nvidia || You should see: Runtimes: nvidia runc, Default Runtime: nvidia
  3. Re-deploy Frigate: docker-compose down & then docker-compose up -d inside frigate docker directory.
  4. Check passthrough works docker in…

Replies: 3 comments 3 replies

Comment options

NickM-27
Apr 10, 2025
Collaborator Sponsor

You must be logged in to vote
1 reply
@lyett
Comment options

Comment options

You must be logged in to vote
1 reply
@NickM-27
Comment options

NickM-27 Apr 10, 2025
Collaborator Sponsor

Comment options

You must be logged in to vote
1 reply
@NickM-27
Comment options

NickM-27 Apr 11, 2025
Collaborator Sponsor

Answer selected by NickM-27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment