2025-05-04 02:47:36 +02:00
|
|
|
{pkgs, ...}: {
|
|
|
|
programs.mpv = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
|
|
|
force-window = "immediate";
|
|
|
|
force-seekable = true; # force streams to be seekable
|
|
|
|
slang = "jpn,jp,eng,en,fra,fr";
|
|
|
|
alang = "eng,en,fra,fr";
|
|
|
|
gpu-api = "vulkan";
|
|
|
|
osc = true;
|
|
|
|
profile = "gpu-hq";
|
2025-05-04 14:27:15 +02:00
|
|
|
# geometry = "50%x50%";
|
|
|
|
# autofit-larger = "90%x90%";
|
2025-05-04 02:47:36 +02:00
|
|
|
|
|
|
|
# Screenshots
|
|
|
|
screenshot-format = "png";
|
|
|
|
screenshot-high-bit-depth = true;
|
|
|
|
screenshot-png-compression = 6;
|
|
|
|
screenshot-directory = "~/Pictures/Screenshots/mpv";
|
|
|
|
|
|
|
|
deband = true;
|
|
|
|
deband-iterations = 2;
|
|
|
|
deband-threshold = 35;
|
|
|
|
deband-range = 20;
|
|
|
|
|
|
|
|
dither-depth = "auto";
|
|
|
|
|
|
|
|
sub-auto = "fuzzy";
|
|
|
|
|
|
|
|
scale = "ewa_lanczossharp";
|
|
|
|
cscale = "ewa_lanczossharp";
|
|
|
|
};
|
|
|
|
scripts = with pkgs.mpvScripts; [
|
|
|
|
crop
|
|
|
|
encode
|
|
|
|
inhibit-gnome
|
|
|
|
mpris
|
|
|
|
mpv-cheatsheet
|
|
|
|
quality-menu
|
|
|
|
sponsorblock
|
|
|
|
thumbfast
|
2025-05-04 14:27:15 +02:00
|
|
|
twitch-chat
|
2025-05-04 02:47:36 +02:00
|
|
|
youtube-chat
|
|
|
|
youtube-upnext
|
|
|
|
];
|
|
|
|
bindings = {
|
|
|
|
Q = "quit-watch-later";
|
|
|
|
P = "show-progress";
|
|
|
|
"/" = "add volume -2";
|
|
|
|
"*" = "add volume 2";
|
|
|
|
m = "cycle mute";
|
|
|
|
M = "vf toggle hflip";
|
|
|
|
"Ctrl+r" = "cycle_values video-rotate \"90\" \"180\" \"270\" \"0\"";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|