Mercurial > codedump
diff remuxaudio.py @ 29:41bf22504479
add remuxaudio.py
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 31 May 2021 13:02:36 -0400 |
parents | |
children | 2aa9614cb39a |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/remuxaudio.py Mon May 31 13:02:36 2021 -0400 @@ -0,0 +1,11 @@ +import os, sys + +count = 0 +for path, folder, files in os.walk("./"): + for file in files: + if file.endswith('.mkv'): + count += 1 + file_mod = file[:len(file) - 15] + file_mod = f'KIZNAIVER - {count:02} [{file_mod[7:]}]' + os.system(f'mkvmerge -o "output\{file_mod}.mkv" --audio-tracks 2 --subtitle-tracks 6 "{file}"') + os.system(f'mkvpropedit --delete-attachment mime-type:image/jpeg "output\{file_mod}.mkv"') \ No newline at end of file