Unverified Commit 60c9ceb3 authored by Olmo Kramer's avatar Olmo Kramer
Browse files

mpvScripts.encode: init at 0-unstable-2024-01-11

parent 1aea8cb8
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -92,7 +92,12 @@ let
        autodeint
        autoload
        ;
      inherit (callPackage ./occivink.nix { }) blacklistExtensions crop seekTo;
      inherit (callPackage ./occivink.nix { })
        blacklistExtensions
        crop
        encode
        seekTo
        ;

      buildLua = callPackage ./buildLua.nix { };
      autosubsync-mpv = callPackage ./autosubsync-mpv.nix { };
+10 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  fetchFromGitHub,
  unstableGitUpdater,
  buildLua,
  ffmpeg,
}:

let
@@ -47,4 +48,13 @@ lib.mapAttrs (name: lib.makeOverridable (mkScript name)) {
  crop.meta.description = "Crop the current video in a visual manner.";
  seekTo.meta.description = "Mpv script for seeking to a specific position";
  blacklistExtensions.meta.description = "Automatically remove playlist entries based on their extension.";

  encode = {
    meta.description = "Make an extract of the video currently playing using ffmpeg.";

    postPatch = ''
      substituteInPlace scripts/encode.lua \
          --replace-fail '"ffmpeg"' '"${lib.getExe ffmpeg}"'
    '';
  };
}