2024-06-15 11:30:01 +00:00
|
|
|
{ pkgs, ... }:
|
2022-02-03 19:38:54 +00:00
|
|
|
let
|
2023-11-10 03:13:38 +00:00
|
|
|
ffmpeg = pkgs.ffmpeg-full;
|
2024-06-15 11:30:01 +00:00
|
|
|
mpv = pkgs.mpv-unwrapped.wrapper {
|
|
|
|
mpv = pkgs.mpv-unwrapped.override { inherit ffmpeg; };
|
|
|
|
scripts = with pkgs.mpvScripts; [ sponsorblock ];
|
|
|
|
};
|
2024-03-02 03:13:17 +00:00
|
|
|
in
|
|
|
|
{
|
2023-11-10 03:13:38 +00:00
|
|
|
home.packages = [ ffmpeg ];
|
2021-07-08 01:43:45 +00:00
|
|
|
programs.mpv = {
|
|
|
|
enable = true;
|
2022-11-26 23:30:50 +00:00
|
|
|
package = mpv;
|
2021-07-08 01:43:45 +00:00
|
|
|
config = {
|
|
|
|
slang = "eng,en";
|
|
|
|
alang = "eng,en";
|
|
|
|
hwdec = "vaapi";
|
2024-07-16 18:42:36 +00:00
|
|
|
vo = "gpu-next";
|
2021-07-08 01:43:45 +00:00
|
|
|
|
2021-08-05 14:01:03 +00:00
|
|
|
audio-display = "no";
|
|
|
|
audio-normalize-downmix = "yes";
|
2021-07-08 01:43:45 +00:00
|
|
|
replaygain = "track";
|
2022-06-28 00:06:42 +00:00
|
|
|
|
2024-03-02 03:13:17 +00:00
|
|
|
script-opts-set = "sponsorblock-local_database=no,sponsorblock-skip_categories=[sponsor,intro,selfpromo]";
|
2021-07-08 01:43:45 +00:00
|
|
|
};
|
|
|
|
|
2022-01-14 14:45:22 +00:00
|
|
|
# 1.5 times speed, ≈702 cents pitch up
|
|
|
|
profiles.wat = {
|
|
|
|
speed = "1.5";
|
|
|
|
audio-pitch-correction = "no";
|
|
|
|
};
|
|
|
|
|
2021-07-08 01:43:45 +00:00
|
|
|
bindings = {
|
|
|
|
WHEEL_UP = "ignore";
|
|
|
|
WHEEL_DOWN = "ignore";
|
|
|
|
WHEEL_LEFT = "ignore";
|
|
|
|
WHEEL_RIGHT = "ignore";
|
|
|
|
k = "add sub-scale -0.1";
|
|
|
|
K = "add sub-scale +0.1";
|
2021-08-01 19:48:12 +00:00
|
|
|
"[" = "add speed -0.1";
|
|
|
|
"]" = "add speed 0.1";
|
|
|
|
"{" = "add speed -1";
|
|
|
|
"}" = "add speed 1";
|
2021-07-08 01:43:45 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|