32 lines
1.6 KiB
Plaintext
32 lines
1.6 KiB
Plaintext
# mpv defaults for the kiosk user. Installed to
|
|
# /home/<KIOSK_USERNAME>/.config/mpv/mpv.conf by build-steam-tv-box-iso.sh.
|
|
#
|
|
# input-ipc-server is what lets `media-player <file>` load into the mpv window that is
|
|
# already sitting on 4:media instead of opening a second one — two mpvs would mean two
|
|
# MPRIS players and a coin-flip as to which one the remote's play button reaches.
|
|
#
|
|
# VERIFY: `~/` expansion in an mpv.conf value is documented behaviour but has not been
|
|
# checked on this image. If the socket never appears, replace the path below with the
|
|
# absolute one for the kiosk user.
|
|
input-ipc-server=~/.mpv-socket
|
|
|
|
# Hardware decode. This box has a real GPU, which is the one place in this project
|
|
# where that is true, so 4K video should not be burning cores it could be spending on a
|
|
# game running alongside it. `auto-safe` picks a hardware decoder only from the
|
|
# combinations upstream considers reliable and silently falls back to software
|
|
# otherwise — the failure mode is a warm CPU, never a black window.
|
|
hwdec=auto-safe
|
|
|
|
# Sensible on a television: keep the aspect ratio, never letterbox into a window that
|
|
# is already fullscreen, and don't drop to a tiny window for a small file.
|
|
keep-open=yes
|
|
force-window=yes
|
|
|
|
# Audio goes to whatever WirePlumber's default sink is, which is what the agent's
|
|
# "Audio output" select actually changes. Naming a device here would silently override
|
|
# that select and make it look broken.
|
|
ao=pipewire
|
|
|
|
# Nothing here loads mpv-mpris: Debian's mpv-mpris package drops its .so into mpv's
|
|
# autoload directory, and naming it again would load the plugin twice.
|