Mercurial > codedump
annotate intro.py @ 67:9636d5dee08c
[channeldownloader.py] Python 2.7 compatibility
Also make the code a *lot* more optimized
(e.g. removing the unnecessary double for-loop)
committer: GitHub <noreply@github.com>
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Wed, 18 May 2022 18:57:58 -0400 |
parents | 37f231f85a67 |
children |
rev | line source |
---|---|
40 | 1 import os |
2 import ffmpeg | |
3 | |
4 amt = 1 | |
5 for files in os.walk("./"): | |
6 for file in files: | |
7 ext = os.path.splitext(file)[-1].lower() | |
8 if ext == ".mkv": | |
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 | 11 amt += 1 |