about summary refs log tree commit diff
path: root/pkgs/applications/video/mpv/scripts/dynamic-crop.nix
blob: 541c83d5258ffd3cb995668d3efb8987a1e3e4d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  lib,
  fetchFromGitHub,
  unstableGitUpdater,
  buildLua,
}:
buildLua {
  pname = "dynamic-crop";

  version = "0-unstable-2024-06-22";
  src = fetchFromGitHub {
    owner = "Ashyni";
    repo = "mpv-scripts";
    rev = "1fadd5ea3e31818db33c9372c40161db6fc1bdd3";
    hash = "sha256-nC0Iw+9PSGxc3OdYhEmFVa49Sw+rIbuFhgZvAphP4cM=";
  };
  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 ];
  };
}