Skip to content

Instantly share code, notes, and snippets.

@policevideorequests
Created February 26, 2015 00:59
Show Gist options
  • Save policevideorequests/8f46b1d3d50dde1db40f to your computer and use it in GitHub Desktop.
Save policevideorequests/8f46b1d3d50dde1db40f to your computer and use it in GitHub Desktop.
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