From e4ad1f1ad2808104f569c2e8ecb20f3c33af9a75 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sat, 2 May 2020 17:07:28 +0300 Subject: [PATCH] Simpler profiles selection for mpv --- bin/bin/mp | 3 +++ mpv/.mpv/config | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100755 bin/bin/mp diff --git a/bin/bin/mp b/bin/bin/mp new file mode 100755 index 0000000..9f03422 --- /dev/null +++ b/bin/bin/mp @@ -0,0 +1,3 @@ +#!/usr/bin/env perl + +exec "mpv", map { s/^([A-Z][A-Z])$/--profile=$1/ ; $_ } @ARGV; diff --git a/mpv/.mpv/config b/mpv/.mpv/config index 6f4df67..364b280 100644 --- a/mpv/.mpv/config +++ b/mpv/.mpv/config @@ -12,9 +12,9 @@ ytdl=no gapless-audio=yes autosync=30 -[extao] +[AO] audio-device=oss//dev/dsp3 oss-mixer-device=/dev/mixer3 -[volnorm] +[VN] af=lavfi=loudnorm -- 2.44.0