import os videosrcmd_args ext avi flv m1v mkv mov mp4 mpg mpeg webm wm

1
2
3
4
5
6
7
8
9
import os
videosrcmd_args = ''
ext = "avi flv m1v mkv mov mp4 mpg mpeg webm wmv".split(' ')
files = [file for file in os.listdir(os.curdir) if file.split('.')[-1] in ext]
for file in files:
os.system(f'videosrcmd.exe {file} {videosrcmd_args}')