From 61ce7a8703d49e188975451a732ae07fed066fbc Mon Sep 17 00:00:00 2001 From: Antoine Vaure Date: Mon, 21 Oct 2024 01:02:15 +0200 Subject: [PATCH] add fish function 'ffsum' to compute a control sum of video stream --- fish.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fish.nix b/fish.nix index 6186012..fef484c 100644 --- a/fish.nix +++ b/fish.nix @@ -79,6 +79,9 @@ gitentr.body = '' ${pkgs.git}/bin/git ls-tree -r HEAD --name-only | ${pkgs.entr}/bin/entr $argv ''; + ffsum.body = '' + ${pkgs.ffmpeg}/bin/ffmpeg -hide_banner -v error $argv[..-2] -i $argv[-1] -map 0:v -f md5 - + ''; }; shellAliases = {