annotate remuxaudio.py @ 41:37f231f85a67
add tabs to some c++ files and fix win95kg.cpp
author |
Paper <mrpapersonic@gmail.com> |
date |
Wed, 30 Jun 2021 02:38:59 -0400 |
parents |
2aa9614cb39a |
children |
|
rev |
line source |
40
|
1 import os
|
29
|
2
|
|
3 count = 0
|
|
4 for path, folder, files in os.walk("./"):
|
|
5 for file in files:
|
|
6 if file.endswith('.mkv'):
|
|
7 count += 1
|
|
8 file_mod = file[:len(file) - 15]
|
|
9 file_mod = f'KIZNAIVER - {count:02} [{file_mod[7:]}]'
|
|
10 os.system(f'mkvmerge -o "output\{file_mod}.mkv" --audio-tracks 2 --subtitle-tracks 6 "{file}"')
|
40
|
11 os.system(f'mkvpropedit --delete-attachment mime-type:image/jpeg "output\{file_mod}.mkv"')
|