Sepia Server

Sepia Server is a small server that runs next to Plex Media Server. It’s free and open source (MIT), and it runs on your own hardware.

What it does

  • Finds intros and credits. In episodes it listens: it compares the start and the end of every episode in a season and finds the part they share. In movies it looks: dark frames and rolling text at the end. The Sepia TV player asks it where the intro and credits are, and skips them. Without Sepia Server the player uses the file’s chapters and TheIntroDB, which cover fewer episodes and are less precise.
  • Sends your files when you’re away. Outside your home network, Sepia TV gets the video from Sepia TV Server.
  • Keeps per-show settings. Timing corrections and the dub you picked for a show are shared by all your devices.

It only looks at what Plex knows about, reads files without write access, and works on one file at a time at low priority.

What you need

  • Plex Media Server. Plex Pass isn’t needed.
  • A computer or NAS with 64-bit Linux and Docker that has the same files Plex plays. The image is built for x86-64 and arm64, and Docker picks the right one: PCs and NAS boxes with Intel or AMD, Raspberry Pi 4 and 5 with a 64-bit OS, ARM NAS boxes.
  • Plex on Windows won’t do yet: there Plex shows paths like D:\Movies\…, which Sepia Server can’t open.
  • The Plex token of the server’s owner. Plex explains how to find it in its support article.

Install

  1. Download compose.yaml and the example settings into a folder of their own:

    mkdir ~/sepia-server && cd ~/sepia-server
    curl -fsSLO https://raw.githubusercontent.com/sepiatv/server/main/compose.yaml
    curl -fsSLO https://raw.githubusercontent.com/sepiatv/server/main/.env.example
    cp .env.example .env
    
  2. Fill in .env:

    • PLEX_URL: your Plex server’s address on your home network, for example http://192.168.1.10:32400. Not 127.0.0.1 or localhost: inside the container that’s the container itself.
    • PLEX_TOKEN: the Plex server owner’s token. It stays on this computer.
    • MEDIA_DIR: the folder with your movies and shows on this computer. Sepia Server gets it read-only.
    • MEDIA_PATH_IN_PLEX: only when Plex runs in Docker and sees the files under another path. Plex Web shows the path: a movie’s “…” menu, Get Info. Enter the path to the same folder as Plex sees it, for example /media. A folder inside /data (like /data/media) is fine, /data itself isn’t: that’s where Sepia Server keeps its database.

    The other lines in .env are optional.

  3. Adjust compose.yaml if you need to:

    • More than one library folder: add a line for each under volumes:, the path on this computer on the left and the path Plex sees on the right, for example - /mnt/tv:/mnt/tv:ro.
    • Sepia Server runs as the user with uid 1000 and has to be able to read the files. If only a group can read them, add it to the service: group_add: ["<group id>"].
  4. Start it and watch the log:

    docker compose up -d
    docker compose logs -f
    

    listening means the server is up. Every 15 minutes it gets the library list from Plex, and pass done marks the end of a pass. The first pass goes through the whole library one file at a time at low priority: hours for a large one. Intros and credits appear as files are done. To see how much is done:

    curl -H "X-Plex-Token: your-plex-token" http://localhost:8080/v1/stats
    

Connect Sepia TV

In Sepia TV’s settings, enter Sepia Server’s address: http://<this computer's address>:8080, for example http://192.168.1.20:8080. Sepia TV sends it the same Plex token it uses for your Plex server, so Sepia Server lets in exactly the people your Plex does.

Away from home

For skipping and your files to work away from home, Sepia Server has to be reachable from the internet over HTTPS: behind a reverse proxy with a certificate (Caddy, nginx or your router’s proxy) on your own domain. Give Sepia TV that address — it works at home too. Don’t expose Sepia Server over plain HTTP: every request carries your Plex token.

Updating

cd ~/sepia-server
docker compose pull
docker compose up -d

compose.yaml uses the :main image, the latest build. To stay on one version, put it in the image: line, for example ghcr.io/sepiatv/sepia-server:0.6.0. Versions are listed under the tags on GitHub.

Your data

Sepia Server’s database holds only what it learned from Plex (paths and durations), what it found (audio fingerprints, intros and credits) and per-show settings. It lives in the Docker volume loge-server-data: docker compose down keeps it, docker compose down -v deletes it.

Sepia Server checks the token of each request with your Plex and sends it nowhere else. It sends nothing to us. Once a day it updates its built-in yt-dlp, which it uses to find trailer videos, from GitHub; to turn that off, add YTDLP_UPDATE: "false" under environment: in compose.yaml. If you put your own TMDB key in .env, Sepia Server asks TMDB for recommendations, trailers and titles itself.