From 32708e5df71502da1e7f87fd2e68d3d17656ca8a Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Wed, 8 Apr 2026 15:34:16 +0500 Subject: mpv: add scaletempo2 Enable pitch-preserving tempo scaling by integrating scaletempo2 audio filter alongside loudnorm. This allows adjusting playback speed without altering audio pitch while maintaining volume normalization. --- files/.config/mpv/input.conf | 2 +- files/.config/mpv/mpv.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'files') diff --git a/files/.config/mpv/input.conf b/files/.config/mpv/input.conf index 1bb8675..8af7dad 100644 --- a/files/.config/mpv/input.conf +++ b/files/.config/mpv/input.conf @@ -12,7 +12,7 @@ Alt+p run "/bin/sh" "-c" "xdotool search --class mpv | xargs -I{} xdotool key -- # default loudnorm I=-24 # I=-15 -- louder volume # anull -- disable audio filter -a cycle_values af loudnorm loudnorm=I=-15 anull +a cycle_values af loudnorm,scaletempo2 loudnorm=I=-15,scaletempo2 scaletempo2 Shift+Up add chapter 1 Shift+Down add chapter -1 diff --git a/files/.config/mpv/mpv.conf b/files/.config/mpv/mpv.conf index 4e8ae06..d043e93 100644 --- a/files/.config/mpv/mpv.conf +++ b/files/.config/mpv/mpv.conf @@ -38,7 +38,7 @@ osd-bar=no speed=1.33 # Speed up playback by the factor volume-max=100 image-display-duration=inf # If the current file is an image, kept open forever -af=loudnorm +af=loudnorm,scaletempo2 demuxer-max-bytes=500M # Cache size demuxer-max-back-bytes=100M -- cgit v1.2.3