Mercurial > codedump
view set-flac-tracknums.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 | 7b9795a60e59 |
| children |
line wrap: on
line source
#!/usr/bin/env python3 import glob import subprocess # list of Popen classes to wait on # this allows us to run metaflac independently on # a huge list of files concurrently processes = list() i = 1 # glob the files in order files = glob.glob("*.flac") files.sort() for g in files: processes.append(subprocess.Popen(["metaflac", "--set-tag=TRACKNUMBER=%d" % (i), g])) i += 1 for p in processes: p.wait()
