📚 Encyclopedia

Servers & Hosting · updated 2026-10-13

Self-hosted video streaming with Jellyfin and Tailscale

jellyfintailscaledockervaapitranscodingmedia-server

To watch personal videos and photos from anywhere without paying for big cloud storage, run a media server on a machine at home that already has the disk space, and reach it over a private mesh VPN instead of exposing it publicly. This is the plan worked out in July 2026 for a library expected to grow from ~100 GB to multiple terabytes.

Choosing the pieces

Docker Compose setup

services:
  jellyfin:
    image: jellyfin/jellyfin:latest
    container_name: jellyfin
    user: "1000:1000"
    group_add: ["992"]            # host 'render' group gid, for the GPU device
    devices: ["/dev/dri/renderD128:/dev/dri/renderD128"]
    ports: ["8096:8096"]
    volumes:
      - ./config:/config
      - ./cache:/cache
      - ~/Videos:/media/videos:ro
      - ~/Pictures:/media/photos:ro
    restart: unless-stopped

Hardware transcoding on a hybrid-GPU laptop

Pick the GPU whose video engine actually works under the current drivers: - With NVIDIA on the open nouveau driver there is no NVENC/NVDEC and no nvidia-smi; NVENC in containers also needs the proprietary driver plus nvidia-container-toolkit (from NVIDIA's apt repo, not Pop!_OS's). - The AMD APU (Radeon 780M, VCN engine) does VAAPI out of the box with in-kernel amdgpu plus Mesa. On VictusPop it is /dev/dri/renderD128 (renderD129 is the NVIDIA card). Check which node is which with ls -l /dev/dri/by-path/. - In Jellyfin: Dashboard, Playback, Transcoding, choose VAAPI and device /dev/dri/renderD128.

The NVIDIA proprietary driver was installed later (August 2026), which makes NVENC an option, but the AMD VAAPI path needs no extra toolkit. See NVIDIA hybrid graphics on a Pop!_OS laptop (system76-power modes, PRIME).

Making a laptop behave like a server

Laptops suspend on lid close and on idle by default, and remote streaming dies the moment they do. Disable both while on AC (logind HandleLidSwitchExternalPower=ignore and the desktop's power settings) before relying on it.

See also

Sources: stream project memory