From df789057781bd6090a1a97f3f32c151c1328f520 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 24 Feb 2025 14:09:04 +0100 Subject: [PATCH] mpv: Refactor into more simple config Using some of the advice from here: , we can simplify the configuration a little. --- multimedia/.config/mpv/mpv.conf | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/multimedia/.config/mpv/mpv.conf b/multimedia/.config/mpv/mpv.conf index fd148db..781b6b2 100644 --- a/multimedia/.config/mpv/mpv.conf +++ b/multimedia/.config/mpv/mpv.conf @@ -9,9 +9,17 @@ fullscreen=no # if playing the last file in e.g. a playlist, simply pause after finishing keep-open=yes +# restart where we left off +save-position-on-quit=yes +autofit-larger=80%x80% # allow remote operation through ipc, see https://mpv.io/manual/stable/#json-ipc input-ipc-server=/tmp/mpv-socket +# video decode options +vo=gpu-next +gpu-api=auto +hwdec=auto-safe + # display a little seek bar in term term-osd-bar=yes # colorful term output @@ -73,24 +81,12 @@ sub-spacing=0.5 ### Audio -volume=80 volume-max=150 # find audio files even if slightly mismatched audio-file-auto=fuzzy # playing at different speed will pitch-correct audio-pitch-correction=yes -### Video - -hwdec=auto -opengl-early-flush=auto -opengl-pbo=no -# ever so slightly up saturation -saturation=12 -# interpolation options, will take some more cpu -interpolation=yes -video-sync=display-resample - ### Cache # use cache if it seems like a networked connection @@ -137,17 +133,13 @@ loop-file=yes ytdl-raw-options=playlist-reverse= [lowquality] -scale=bilinear -cscale=ewa_lanczossharp interpolation=no video-sync=audio [highquality] -scale=ewa_lanczossharp -cscale=ewa_lanczossharp -video-sync=display-resample interpolation=yes tscale=oversample +video-sync=display-resample # default to hq profile=highquality