view intro.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 37f231f85a67
children
line wrap: on
line source

import os
import ffmpeg

amt = 1
for files in os.walk("./"):
    for file in files:
        ext = os.path.splitext(file)[-1].lower()
        if ext == ".mkv":
            stream = ffmpeg.input(file)
            os.system(f'ffmpeg -i "{file}" -t 30 -pix_fmt yuv420p "Clips\\intro_{amt}.mp4"')
            amt += 1