Hardware accelerate mpv

This commit is contained in:
Geoffrey Frogeye 2023-12-18 19:32:16 +01:00
parent a250cd0f42
commit 9b3564f20e
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -528,12 +528,17 @@ in
config = {
audio-display = false;
save-position-on-quit = true;
osc = false; # # Required by thumbnail script
osc = false; # Required by thumbnail script
# Hardware acceleration (from https://nixos.wiki/wiki/Accelerated_Video_Playback#MPV)
hwdec = "auto-safe";
vo = "gpu";
profile = "gpu-hq";
};
scripts = with pkgs.mpvScripts; [ thumbnail ];
scriptOpts = {
mpv_thumbnail_script = {
cache_directory = "/tmp/mpv_thumbs_${config.home.username}";
mpv_hwdec = "auto-safe";
};
};
};