Mercurial > codedump
view intro.py @ 40:2aa9614cb39a
flake8
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 21 Jun 2021 15:16:15 -0400 |
parents | 0f81a012ead6 |
children | 37f231f85a67 |
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