Add mkvpropedit-add-attachments function

This commit is contained in:
Simon Bruder 2019-11-04 13:21:18 +00:00
parent 2cb586e2f5
commit 28d5f00627
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -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 -
}