Mercurial > codedump
comparison intro.py @ 40:2aa9614cb39a
flake8
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Mon, 21 Jun 2021 15:16:15 -0400 |
| parents | 0f81a012ead6 |
| children | 37f231f85a67 |
comparison
equal
deleted
inserted
replaced
| 39:a93c352af05e | 40:2aa9614cb39a |
|---|---|
| 1 import os | 1 import os |
| 2 import ffmpeg | |
| 2 | 3 |
| 3 amt = 1 | 4 amt = 1 |
| 4 for files in os.walk("./"): | 5 for files in os.walk("./"): |
| 5 for file in files: | 6 for file in files: |
| 6 ext = os.path.splitext(file)[-1].lower() | 7 ext = os.path.splitext(file)[-1].lower() |
| 7 if ext == ".mkv": | 8 if ext == ".mkv": |
| 8 os.system(f'ffmpeg -i "{file}" -t 30 -pix_fmt yuv420p "Clips\intro_{amt}.mp4') | 9 stream = ffmpeg.input(file) |
| 10 os.system( | |
| 11 f'ffmpeg -i "{file}" -t 30 -pix_fmt yuv420p "Clips\intro_{amt}.mp4') | |
| 9 amt += 1 | 12 amt += 1 |
