aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2023-04-22 23:18:51 +0500
committerAnton Bobov <anton@bobov.name>2023-04-22 23:18:51 +0500
commit5bf7733be5b40e653e3843e8fd74fcbf719a6d1b (patch)
treebe98020b4042be105279c504640197108472bae1
parent957efa8e4d19d4f887526acd87e18e065067c877 (diff)
mpv: added loud normalization profiles
-rw-r--r--files/.mpv/input.conf5
-rw-r--r--files/.mpv/mpv.conf24
2 files changed, 28 insertions, 1 deletions
diff --git a/files/.mpv/input.conf b/files/.mpv/input.conf
index 87dbe8b..40f89cd 100644
--- a/files/.mpv/input.conf
+++ b/files/.mpv/input.conf
@@ -7,3 +7,8 @@
d ignore
Alt+p run "/bin/sh" "-c" "xdotool search --class mpv | xargs -I{} xdotool key --window {} p"
+
+# default loudnorm I=-24
+# I=-15 -- louder volume
+# anull -- disable audio filter
+a cycle_values af loudnorm loudnorm=I=-15 anull
diff --git a/files/.mpv/mpv.conf b/files/.mpv/mpv.conf
index c926cd7..04fee25 100644
--- a/files/.mpv/mpv.conf
+++ b/files/.mpv/mpv.conf
@@ -15,12 +15,34 @@ hwdec=auto-safe
# If the current file is an image, kept open forever
image-display-duration=inf
-
#
screenshot-template=mpv-shot-%F-%{media-title}-%p-%n
screenshot-directory=~/mpv-screenshots
ytdl-format="bestvideo[height<=?1080]+bestaudio/best"
+#
+# PROFILES
+#
+
+[loudnorm]
+af=lavfi=[loudnorm]
+
+[audio]
+speed=1
+
+#
+# EXTENSIONS
+#
+
[extension.gif]
loop-file=yes
+
+[extension.flac]
+profile=audio
+
+[extension.mp3]
+profile=audio
+
+[extension.ogg]
+profile=audio