Merge pull request #161599 from rileyinman/mpv-scripts

mpv-scripts: init autocrop, autodeint

authored by

Lassulus and committed by
GitHub
8ef828fc 9815ffdc

+38
+19
pkgs/applications/video/mpv/scripts/autocrop.nix
··· 1 + { stdenvNoCC, mpv-unwrapped, lib }: 2 + 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "mpv-autocrop"; 5 + version = mpv-unwrapped.version; 6 + src = "${mpv-unwrapped.src.outPath}/TOOLS/lua/autocrop.lua"; 7 + dontBuild = true; 8 + dontUnpack = true; 9 + installPhase = '' 10 + install -Dm644 ${src} $out/share/mpv/scripts/autocrop.lua 11 + ''; 12 + passthru.scriptName = "autocrop.lua"; 13 + 14 + meta = { 15 + description = "This script uses the lavfi cropdetect filter to automatically insert a crop filter with appropriate parameters for the currently playing video."; 16 + homepage = "https://github.com/mpv-player/mpv/blob/master/TOOLS/lua/autocrop.lua"; 17 + license = lib.licenses.gpl2Plus; 18 + }; 19 + }
+19
pkgs/applications/video/mpv/scripts/autodeint.nix
··· 1 + { stdenvNoCC, mpv-unwrapped, lib }: 2 + 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "mpv-autodeint"; 5 + version = mpv-unwrapped.version; 6 + src = "${mpv-unwrapped.src.outPath}/TOOLS/lua/autodeint.lua"; 7 + dontBuild = true; 8 + dontUnpack = true; 9 + installPhase = '' 10 + install -Dm644 ${src} $out/share/mpv/scripts/autodeint.lua 11 + ''; 12 + passthru.scriptName = "autodeint.lua"; 13 + 14 + meta = { 15 + description = "This script uses the lavfi idet filter to automatically insert the appropriate deinterlacing filter based on a short section of the currently playing video."; 16 + homepage = "https://github.com/mpv-player/mpv/blob/master/TOOLS/lua/autodeint.lua"; 17 + license = lib.licenses.gpl2Plus; 18 + }; 19 + }