From f17e57db6373dc65655646d9425ee7f18e495fed Mon Sep 17 00:00:00 2001 From: Brandyn / Techy Date: Sat, 31 Oct 2026 01:18:54 -0500 Subject: [PATCH] MediaMTX container TZ=America/New_York so recording filenames match the server clock Co-Authored-By: Claude Fable 5.1 --- STATUS.md | 1 + docker-compose.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/STATUS.md b/STATUS.md index 84d5155..e55e764 100644 --- a/STATUS.md +++ b/STATUS.md @@ -82,6 +82,7 @@ Source of truth: this repo, `techy/Media-Server-Setup` on the stack's own Gitea ## Verified behaviours worth remembering - **Never scp generated configs** (`mediamtx.yml`, `copyparty.conf`, `Caddyfile`, `dump-users.txt`, `.env`): a template copy wiped all streamers once. They are gitignored now; `*.example.*` are reference only. - Caddy runs in a container: anything it serves from disk must be a mount (`/srv/live` was missing → 404). +- MediaMTX stamps recording filenames in its container clock: without `TZ` it is UTC and the plugin reads names as Eastern (4 h off). `TZ=America/New_York` is set on the container. - MediaMTX 1.21 refuses to start without `webrtcAdditionalHosts` or `webrtcIPsFromInterfaces`; configure.py writes the public host in. - Jellyfin honours provider-supplied season numbers on a Shows library (day seasons appeared). Next check: Monday 04:10 ET should fold them into a week season. - A stream indexed by Jellyfin while still recording has no duration and skips to the next episode on seek — fixed by recording into `.live/` so nothing sees a file until it is finished and flat. diff --git a/docker-compose.yml b/docker-compose.yml index 7ac193a..a8d9ba1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,7 @@ services: container_name: mediamtx user: "1000:1000" # recordings owned by the debian user, so the archive pull can delete them environment: + TZ: America/New_York # recording filenames are stamped in the container's clock; must match the host LIVE_WEBHOOK_URL: ${LIVE_WEBHOOK_URL:-} LIVE_HOST: ${LIVE_HOST:-live.example.com} ports: