Skip to content

Commit

Permalink
Merge pull request #293939 from iynaix/init-mpv-dynamic-crop
Browse files Browse the repository at this point in the history
mpvScripts.dynamic-crop: init at 0-unstable-2023-12-22
  • Loading branch information
pbsds authored Apr 12, 2024
2 parents 70db7c7 + 8e3ed28 commit cfd6b5f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/applications/video/mpv/scripts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ let
chapterskip = callPackage ./chapterskip.nix { };
convert = callPackage ./convert.nix { };
cutter = callPackage ./cutter.nix { };
dynamic-crop = callPackage ./dynamic-crop.nix { };
inhibit-gnome = callPackage ./inhibit-gnome.nix { };
modernx = callPackage ./modernx.nix { };
modernx-zydezu = callPackage ./modernx-zydezu.nix { };
Expand Down
26 changes: 26 additions & 0 deletions pkgs/applications/video/mpv/scripts/dynamic-crop.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ lib
, fetchFromGitHub
, unstableGitUpdater
, buildLua
}:
buildLua {
pname = "dynamic-crop";

version = "0-unstable-2023-12-22";
src = fetchFromGitHub {
owner = "Ashyni";
repo = "mpv-scripts";
rev = "c79a46ba03631eb2a9b4f598aab0b723f03fc531";
hash = "sha256-W4Dj2tyJHeHLqAndrzllKs4iwMe3Tu8rfzEGBHuke6s=";
};
passthru.scriptName = "dynamic-crop.lua";

passthru.updateScript = unstableGitUpdater { };

meta = {
description = ''Script to "cropping" dynamically, hard-coded black bars detected with lavfi-cropdetect filter for Ultra Wide Screen or any screen (Smartphone/Tablet).'';
homepage = "https://github.com/Ashyni/mpv-scripts";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.iynaix ];
};
}

0 comments on commit cfd6b5f

Please sign in to comment.