annotate remuxaudio.py @ 133:0d8eabdd12ab default tip

create: write H:MM:SS timestamps, add option to fill with gaussian-blur instead of black many albums are longer than one hour so writing H:MM:SS is a necessity. if anything there will just be verbose info that isn't important for my use-case. however the gaussian-blur is simply broken. It works, and it plays locally just fine, but YouTube in particular elongates the video to fit the full width. I'm not entirely sure why it does this, but it makes it useless and ugly.
author Paper <paper@tflc.us>
date Sat, 03 Jan 2026 20:25:38 -0500
parents 2aa9614cb39a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
40
Paper <mrpapersonic@gmail.com>
parents: 29
diff changeset
1 import os
29
41bf22504479 add remuxaudio.py
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
2
41bf22504479 add remuxaudio.py
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
3 count = 0
41bf22504479 add remuxaudio.py
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
4 for path, folder, files in os.walk("./"):
41bf22504479 add remuxaudio.py
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
5 for file in files:
41bf22504479 add remuxaudio.py
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
6 if file.endswith('.mkv'):
41bf22504479 add remuxaudio.py
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
7 count += 1
41bf22504479 add remuxaudio.py
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
8 file_mod = file[:len(file) - 15]
41bf22504479 add remuxaudio.py
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
9 file_mod = f'KIZNAIVER - {count:02} [{file_mod[7:]}]'
41bf22504479 add remuxaudio.py
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
10 os.system(f'mkvmerge -o "output\{file_mod}.mkv" --audio-tracks 2 --subtitle-tracks 6 "{file}"')
40
Paper <mrpapersonic@gmail.com>
parents: 29
diff changeset
11 os.system(f'mkvpropedit --delete-attachment mime-type:image/jpeg "output\{file_mod}.mkv"')