fix: make mpv configuration usable

This commit is contained in:
Lucien Cartier-Tilet 2025-05-04 14:27:15 +02:00
parent 5254cde754
commit 08bb83e21c
Signed by: phundrak
SSH Key Fingerprint: SHA256:CE0HPsbW3L2YiJETx1zYZ2muMptaAqTN2g3498KrMkc

View File

@ -3,16 +3,14 @@
enable = true; enable = true;
config = { config = {
force-window = "immediate"; force-window = "immediate";
ytdl-format = "bestvideo[height<=1080]+bestaudio";
force-seekable = true; # force streams to be seekable force-seekable = true; # force streams to be seekable
cache-default = 4000000;
slang = "jpn,jp,eng,en,fra,fr"; slang = "jpn,jp,eng,en,fra,fr";
alang = "eng,en,fra,fr"; alang = "eng,en,fra,fr";
gpu-api = "vulkan"; gpu-api = "vulkan";
osc = true; osc = true;
profile = "gpu-hq"; profile = "gpu-hq";
geometry = "50%x50%"; # geometry = "50%x50%";
autofit-larger = "90%x90%"; # autofit-larger = "90%x90%";
# Screenshots # Screenshots
screenshot-format = "png"; screenshot-format = "png";
@ -24,14 +22,12 @@
deband-iterations = 2; deband-iterations = 2;
deband-threshold = 35; deband-threshold = 35;
deband-range = 20; deband-range = 20;
deband-grand = 5;
dither-depth = "auto"; dither-depth = "auto";
sub-auto = "fuzzy"; sub-auto = "fuzzy";
scale = "ewa_lanczossharp"; scale = "ewa_lanczossharp";
dscale = "mitchel";
cscale = "ewa_lanczossharp"; cscale = "ewa_lanczossharp";
}; };
scripts = with pkgs.mpvScripts; [ scripts = with pkgs.mpvScripts; [
@ -43,7 +39,7 @@
quality-menu quality-menu
sponsorblock sponsorblock
thumbfast thumbfast
# twitch-chat twitch-chat
youtube-chat youtube-chat
youtube-upnext youtube-upnext
]; ];