From 0acc52f5556027b7e76dc2c9b914180fcda8a861 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 10 Aug 2019 16:48:21 +0000 Subject: [PATCH] Add ssim shell function --- home/.zshrc.local | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/.zshrc.local b/home/.zshrc.local index f18b93a..1857022 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -125,6 +125,10 @@ function mkvextract-all-attachments() { mkvextract $1 attachments $(mkvmerge --identify $1|grep "Attachment ID"|sed "s/Attachment ID \([0-9]*\): .*/\1/") } +function ssim() { + ffmpeg -loglevel fatal -i "$1" -i "$2" -lavfi 'ssim=/dev/stdout' -f null - +} + # Audacious does not support symlinks; hack around that function audacious-hack() ( IFS=$'\n'