Migrate mpv override and options

This commit is contained in:
Simon Bruder 2024-12-15 17:13:16 +01:00
parent 2c8a79ac78
commit 28e190025c
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -53,21 +53,21 @@ in
# mpv can also be useful without a display (e.g. for encoding)
enable = nixosConfig.sbruder.gui.enable || nixosConfig.sbruder.full;
package = pkgs.wrapMpv
(pkgs.mpv-unwrapped.override ({
package = pkgs.mpv-unwrapped.wrapper {
mpv = pkgs.mpv-unwrapped.override {
vapoursynthSupport = true;
vapoursynth = pkgs.vapoursynth.withPlugins (with pkgs; [
vapoursynth-mvtools
]);
ffmpeg = pkgs.ffmpeg-full;
}))
{
scripts = with pkgs.mpvScripts; [
pitchcontrol
sponsorblock
];
};
scripts = with pkgs.mpvScripts; [
pitchcontrol
sponsorblock
];
};
defaultProfiles = [
"gpu-hq" # High quality by default
];
@ -189,7 +189,7 @@ in
"[showwaves][avectorscope]hstack=shortest=1[top]"
"[top][showcqt]vstack=shortest=1,fps=${toString rate}[vo]"
];
alpha = false;
background = "color";
};
in
{