annotate intro.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 37f231f85a67
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
40
Paper <mrpapersonic@gmail.com>
parents: 27
diff changeset
1 import os
Paper <mrpapersonic@gmail.com>
parents: 27
diff changeset
2 import ffmpeg
Paper <mrpapersonic@gmail.com>
parents: 27
diff changeset
3
Paper <mrpapersonic@gmail.com>
parents: 27
diff changeset
4 amt = 1
Paper <mrpapersonic@gmail.com>
parents: 27
diff changeset
5 for files in os.walk("./"):
Paper <mrpapersonic@gmail.com>
parents: 27
diff changeset
6 for file in files:
Paper <mrpapersonic@gmail.com>
parents: 27
diff changeset
7 ext = os.path.splitext(file)[-1].lower()
Paper <mrpapersonic@gmail.com>
parents: 27
diff changeset
8 if ext == ".mkv":
Paper <mrpapersonic@gmail.com>
parents: 27
diff changeset
9 stream = ffmpeg.input(file)
41
37f231f85a67 add tabs to some c++ files and fix win95kg.cpp
Paper <mrpapersonic@gmail.com>
parents: 40
diff changeset
10 os.system(f'ffmpeg -i "{file}" -t 30 -pix_fmt yuv420p "Clips\\intro_{amt}.mp4"')
40
Paper <mrpapersonic@gmail.com>
parents: 27
diff changeset
11 amt += 1