Created
June 13, 2021 05:39
-
-
Save daejinseok/68b381e9bf85cc4dc2bf0946b0dc90be to your computer and use it in GitHub Desktop.
파일 확장자를 변경하고, cli 실행 하기
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import glob | |
for l in glob.glob('*.webm'): | |
fname, ext = os.path.splitext(l.strip()) | |
cli = f'ffmpeg -i "{l}" "{fname}.mp4"' | |
os.system(cli) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment