Advertisement
AisIceEyes

merge-mkv-video-files.sh

Oct 18th, 2021
1,336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement