mpvScripts.encode: init at 0-unstable-2024-01-11
This commit is contained in:
@@ -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}"'
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user