I have written a code to collect all image files from one folder, so that I can make a video out of it.
But while compiling I getting an error saying "Error creating movie, return code: 4 Try running with --verbose-debug"
#import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import glob, os
from PIL import Image
fig = plt.figure()
#size = 128, 128
ims=[]
#print(len(ims))
#im=Image.open(ims[5])
#im.show()
for infile in glob.glob("*.png"):
file, ext = os.path.splitext(infile)
im = Image.open(infile)
im1=plt.imshow(im)
ims.append([im1])
print(len(ims))
ani = animation.ArtistAnimation(fig, ims)
ani.save('MovWave.mpeg', writer="ffmpeg")
plt.show()