Jellyfin Forum
ffmpeg path broken when I add `NVIDIA_VISIBLE_DEVICES=all` - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: ffmpeg path broken when I add `NVIDIA_VISIBLE_DEVICES=all` (/t-ffmpeg-path-broken-when-i-add-nvidia-visible-devices-all)



ffmpeg path broken when I add `NVIDIA_VISIBLE_DEVICES=all` - Brad T - 2024-01-12

In my docker-compose, when I add NVIDIA_VISIBLE_DEVICES=all, ffmpeg stops working. 
I get errors like "FFmpeg: Failed version check: /usr/lib/jellyfin-ffmpeg/ffmpeg"
When I remove the variable, everything works again but my GPU isn't utilized.

Here is my docker-compose service.

Note, that I observe the same issue when using the official jellyfin/jellyfin image.

Code:
  jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    environment:
      - TZ=Etc/UTC
      - JELLYFIN_PublishedServerUrl=192.168.0.5 #optional
      - NVIDIA_VISIBLE_DEVICES=all
    volumes:
      - ${ROOT_PATH}/jellyfin/config:/config
      - ${ROOT_PATH}/tv:/data/tvshows
      - ${ROOT_PATH}/movies:/data/movies
    ports:
      - 8096:8096
      - 8920:8920 #optional
      - 7359:7359/udp #optional
      - 1900:1900/udp #optional
    runtime: nvidia
    deploy:
      resources:
        reservations:
          devices:
            - capabilities: [gpu]
    restart: unless-stopped



RE: ffmpeg path broken when I add `NVIDIA_VISIBLE_DEVICES=all` - TheDreadPirate - 2024-01-12

Have you tried re-pulling the image?