Fix mpv tile overlap portably; add make install/deploy

mpv 0.35 rejects --auto-window-resize, which crash-looped every player.
Drop that flag and re-assert each tile geometry on a 1s timer in the
daemon, overriding mpv auto-resize on any mpv version.

Add make install (auto-sudo, native build + copy to /usr/local/bin)
and make deploy (install + restart the kiosk getty unit).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Levi Woodard
2026-07-01 19:36:36 -05:00
parent ca74ba0070
commit 0fb731a71e
3 changed files with 52 additions and 19 deletions

View File

@@ -67,12 +67,10 @@ func (p *Player) args() []string {
"--cursor-autohide=always",
"--no-border",
"--fullscreen=no", // we tile via the compositor, not fullscreen
// Never let mpv resize its own window to the camera's native
// resolution — the compositor owns tile geometry. Without this a
// high-res camera grows its window and overlaps its neighbours.
"--auto-window-resize=no",
// Scale video to fill the tile (letterboxed to preserve aspect); the
// window size is fixed by the compositor, not by the video.
// Keep aspect (letterbox) inside the tile; the compositor owns the
// window size, not the video. mpv still resizes its window to the
// video resolution on load (and mpv 0.35 lacks the flag to disable
// that), so the daemon re-asserts each tile's geometry on a timer.
"--keepaspect=yes",
"--title=" + p.Title(),
"--input-ipc-server=" + p.ipcPath,