From 32a5af44622092a52138cb1a0b9faba4e15a3455 Mon Sep 17 00:00:00 2001 From: Amber Date: Wed, 25 Jan 2023 18:43:44 -0500 Subject: [PATCH] Adding script --- app.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app.sh 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