Skip to content

Instantly share code, notes, and snippets.

@SeaOfOcean
Last active January 15, 2018 07:50
Show Gist options
  • Save SeaOfOcean/19abbb2df6b2dabdcf424c044e2ca5c5 to your computer and use it in GitHub Desktop.
Save SeaOfOcean/19abbb2df6b2dabdcf424c044e2ca5c5 to your computer and use it in GitHub Desktop.
from scipy.misc import imsave
path = 'test.mp4'
myclip = VideoFileClip(path)
iter = myclip.iter_frames(fps=1)
i = 0
for img in iter:
i = i + 1
imsave('output/' + str(i) + ".png", img)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment