Add mkvpropedit-add-attachments function
This commit is contained in:
parent
2cb586e2f5
commit
28d5f00627
|
@ -125,6 +125,14 @@ function mkvextract-all-attachments() {
|
||||||
mkvextract $1 attachments $(mkvmerge --identify $1|grep "Attachment ID"|sed "s/Attachment ID \([0-9]*\): .*/\1/")
|
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() {
|
function ssim() {
|
||||||
ffmpeg -loglevel fatal -i "$1" -i "$2" -lavfi 'ssim=/dev/stdout' -f null -
|
ffmpeg -loglevel fatal -i "$1" -i "$2" -lavfi 'ssim=/dev/stdout' -f null -
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue