I have a series of high resolution images I want to convert to an MP4 file in Python(3.6) using ImageIO. Is there any way I can do it without compression or losing quality?
Currently I use the code :
fileList = []
path = "./Images/MP4/relu-3layers-32units-M1/"
name = "img"
for file in os.listdir(path):
if file.startswith(name):
complete_path = path + file
fileList.append(complete_path)
writer = imageio.get_writer('test.mp4', fps = 30)
for im in fileList:
writer.append_data(imageio.imread(im))
writer.close()
It generates the video, but the quality is substantially reduced. Any way to fix this?