title: Convert image sequence to video using Moviepy
body: <p>I tried to convert PNG images to video by list images in directory</p>
  
  <pre><code>clips[]
  for filename in os.listdir('.'):
    if filename.endswith(".png"):
      clips.append(ImageClip(filename))
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/L321n.png" rel="noreferrer"><img src="https://i.stack.imgur.com/L321n.png" alt="enter image description here"></a></p>
  
  <p>Then convert it </p>
  
  <pre><code>video = concatenate(clips, method='compose')
  video.write_videofile('test.mp4')
  </code></pre>
  
  <p>The error is:
  <a href="https://i.stack.imgur.com/zL1lg.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zL1lg.png" alt="enter image description here"></a>
  Full code    </p>
  
  <pre><code>import os
  from moviepy.editor import *
  
  
  clips = []
  base_dir = os.path.realpath(".")
  print(base_dir)
  
  for filename in os.listdir('.'):
    if filename.endswith(".png"):
      clips.append(ImageClip(filename))
  
  video = concatenate(clips, method='compose')
  video.write_videofile('test.mp4')
  </code></pre>