Skip to content

Instantly share code, notes, and snippets.

@daejinseok
Created June 13, 2021 05:39
Show Gist options
  • Save daejinseok/68b381e9bf85cc4dc2bf0946b0dc90be to your computer and use it in GitHub Desktop.
Save daejinseok/68b381e9bf85cc4dc2bf0946b0dc90be to your computer and use it in GitHub Desktop.
파일 확장자를 변경하고, cli 실행 하기
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