Mercurial > codedump
view intro.py @ 119:196cf2e3d96e
channeldownloader: insane memory optimizations
it should now use at maximum 300mb if you're using the split json files
committer: GitHub <noreply@github.com>
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Sat, 25 Mar 2023 17:02:23 -0400 |
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