title: How to make a movie out of images in python
body: <p>I currently try to make a movie out of images, but i could not find anything helpful .</p>
  
  <p>Here is my code so far:</p>
  
  <pre><code>import time
  
  from PIL import  ImageGrab
  
  x =0
  
  while True:
      try:
          x+= 1
          ImageGrab().grab().save('img{}.png'.format(str(x))
      except:
          movie = #Idontknow
          for _ in range(x):
              movie.save("img{}.png".format(str(_)))
  
  movie.save()
  </code></pre>