commit 32a5af44622092a52138cb1a0b9faba4e15a3455 Author: Amber Date: Wed Jan 25 18:43:44 2023 -0500 Adding script diff --git a/app.sh b/app.sh new file mode 100644 index 0000000..2ac3700 --- /dev/null +++ b/app.sh @@ -0,0 +1,10 @@ +# Remove all single quotes from all MKV file names in the directory. +for i in *.mkv; do + ABC="${i//\'}" + mv ./"$i" ./"$ABC" +done + +# Render all MKV files in the directory with burned-in subtitles and Japanese audio. +for i in *.mkv; do + ffmpeg -i "$i" -vf "subtitles='$i'" -map 0:v -map 0:a:1 "$i.mp4"; +done