Adding script

This commit is contained in:
Amber McCloughan 2023-01-25 18:43:44 -05:00
commit 32a5af4462
1 changed files with 10 additions and 0 deletions

10
app.sh Normal file
View File

@ -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