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

This commit is contained in:
Olmo Kramer
2024-08-10 20:37:21 +02:00
parent 1aea8cb834
commit 60c9ceb3e6
2 changed files with 16 additions and 1 deletions
@@ -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 { };
@@ -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}"'
'';
};
}