diff --git a/home/.zshrc.local b/home/.zshrc.local index 5720689..98c6314 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -125,6 +125,14 @@ function mkvextract-all-attachments() { mkvextract $1 attachments $(mkvmerge --identify $1|grep "Attachment ID"|sed "s/Attachment ID \([0-9]*\): .*/\1/") } +function mkvpropedit-add-attachments() ( + file="$1" + shift + for attachment in $@; do + mkvpropedit --attachment-mime-type font/sfnt --add-attachment "$attachment" "$file" + done +) + function ssim() { ffmpeg -loglevel fatal -i "$1" -i "$2" -lavfi 'ssim=/dev/stdout' -f null - }