view remuxaudio.py @ 132:71df0cf3aa05 default tip

add create.py this is a script to render out video files from entire albums, singles, or EPs. eventually it can be edited to be more robust (such as automatically finding discogs/musicbrainz links) but I think it's pretty damn good for now. It's basically just an ffmpeg frontend with a few hardcoded options that are suitable for this kind of thing.
author Paper <paper@tflc.us>
date Fri, 02 Jan 2026 10:35:03 -0500
parents 2aa9614cb39a
children
line wrap: on
line source

import os

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"')