AisIceEyes

merge-mkv-video-files.sh

Oct 18th, 2021
937
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. # https://unix.stackexchange.com/a/568840
  4. # https://forums.bunsenlabs.org/viewtopic.php?id=4529
  5.  
  6. for i in *.mkv; do
  7.     if [ -f "${i%.*}".ass ] && [ ! -e "${i%.*}"-[HPriest].mkv ]; then
  8.         mkvmerge -o ./merged/"${i%.*}"-HPriest.mkv "$i" "${i%.*}".ass --attach-file "Arial_Bold.ttf" "Arialbi.TTF"
  9.     fi
  10. done
RAW Paste Data