Created
February 26, 2015 00:59
-
-
Save policevideorequests/8f46b1d3d50dde1db40f to your computer and use it in GitHub Desktop.
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 | |
videos = [name for name in os.listdir("D:\\") if name.endswith(".mpg") or name.endswith(".mp4")] | |
for video in videos: | |
print video | |
command = 'C:\\Users\\tim\\Downloads\\ffmpeg-20150220-git-6c91afe-win64-static\\bin\\ffmpeg.exe -i D:\\%s -crf 18 -preset ultrafast -vf format=gray,format=yuv422p,"boxblur=6:4:cr=2:ar=2" -an D:\\overredacted\\%s' % (video,video) | |
print command | |
os.system(command) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment