Skip to main content

Jellyfin (official)

Create /config and /cache

Give them permission for your user (here 998:100) as well ass your media folders :

chown -R 998:100 /config
chown --R 998:100 /cache
etc...

Deploy

version: "3.3"5"
services:
  jellyfin:
    image: lscr.io/linuxserver/jellyfin/jellyfin
    container_name: jellyfinjellyfin_off
    environment:user: - PUID=998
      - PGID=998:100
    -network_mode: TZ=Europe/Paris
    # - JELLYFIN_PublishedServerUrl=192.168.x.x #optional"host"
    volumes:
      - /srv/path/Files/Jellyfin/config:/config
      - /srv/path/Files/Jellyfin/cache:/cache
      - /srv/path/Files/Jellyfin/tvshows:/data/tvshows
      - /srv/path/Files/Jellyfin/movies:/data/movies
      - /srv/path/Files/Jellyfin/docus:/docus
      - /srv/path/Music:/data/music
    restart: "unless-stopped"
    # Optional - alternative address used for autodiscovery
 #  environment:
    #  - JELLYFIN_PublishedServerUrl=http:/opt/vc/lib:/opt/vc/lib #optional
    ports:
      - 8096:8096
    # - 8920:8920 #optional
    # - 7359:7359/udp #optional
    # - 1900:1900/udp #optional
   # devices:
    # - /dev/dri:/dev/dri #optional
    # - /dev/vcsm:/dev/vcsm #optional
    # - /dev/vchiq:/dev/vchiq #optional
    # - /dev/video10:/dev/video10 #optional
    # - /dev/video11:/dev/video11 #optional
    # - /dev/video12:/dev/video12 #optional
     restart: unless-stoppedexample.com

Full HD h264 is the absolut maximum a Raspberry Pi 4 can handle for transcoding. Everything above must be played directly because the hardware isn't good enough.
https://www.reddit.com/r/jellyfin/comments/rqzecj/how_to_get_jellyfin_to_transcode_on_raspberry_pi_4/