# HG changeset patch # User Paper <37962225+mrpapersonic@users.noreply.github.com> # Date 1621055392 14400 # Node ID 704432ea7eacc457e217ce5046500f14a4729ac0 # Parent 7eccf59ddec0b090a799ff50d8538820b423e053 Create intro.py committer: GitHub diff -r 7eccf59ddec0 -r 704432ea7eac intro.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/intro.py Sat May 15 01:09:52 2021 -0400 @@ -0,0 +1,9 @@ +import os + +amt = 1 +for subdir, dirs, files in os.walk("./"): + for file in files: + ext = os.path.splitext(file)[-1].lower() + if ext == ".mkv": + os.system(f'ffmpeg -i "{file}" -t 30 -pix_fmt yuv420p "Clips\intro_{amt}.mp4') + amt += 1