Hardware accelerate mpv
This commit is contained in:
parent
a250cd0f42
commit
9b3564f20e
|
@ -528,12 +528,17 @@ in
|
||||||
config = {
|
config = {
|
||||||
audio-display = false;
|
audio-display = false;
|
||||||
save-position-on-quit = true;
|
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 ];
|
scripts = with pkgs.mpvScripts; [ thumbnail ];
|
||||||
scriptOpts = {
|
scriptOpts = {
|
||||||
mpv_thumbnail_script = {
|
mpv_thumbnail_script = {
|
||||||
cache_directory = "/tmp/mpv_thumbs_${config.home.username}";
|
cache_directory = "/tmp/mpv_thumbs_${config.home.username}";
|
||||||
|
mpv_hwdec = "auto-safe";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue