Last active
October 9, 2017 14:37
-
-
Save nshtg/4ccd89da229585ea69a08e37323b4787 to your computer and use it in GitHub Desktop.
mkvmerge subtitles with different fps rate (srt: 23.976fps, mkv: 25fps)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/zsh | |
mkdir -p old | |
for var in $(ls *.srt | awk -F ".srt" '{print $1}') | |
do | |
mkvmerge --priority higher \ | |
-o "$(print $var)1.mkv" \ | |
"$(print $var).mkv" \ | |
--language 0:eng \ | |
--default-track 0:true \ | |
--language 0:eng \ | |
--sync 0:0,23.976/25 \ | |
--sub-charset 0:UTF8 \ | |
"$(print $var).srt" | |
mv "$(print $var).mkv" "old/$(print $var).mkv" | |
mv "$(print $var).srt" "old/$(print $var).srt" | |
mv "$(print $var)1.mkv" "$(print $var).mkv" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment