2024-01-12, 03:14 AM 
(This post was last modified: 2024-01-12, 03:23 AM by Brad T. Edited 1 time in total.)
		
	
	
		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.
	
	  
	
	
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

