I want to create video from images using opencv in python. But unfortunately I found that the video doesn't contain all images. Then I check the size and found all images size is not same. So I resized all images before writing it into video file. Then I got error while opening the video file showing "Could not demultiplex stream". What am I missing here?
please correct me.
here is my code:
import numpy as np
for filename in image_list:
fourcc = cv2.VideoWriter_fourcc(*'mp4v')
for file in img:
resized=cv2.resize(image,(960,720)) #for my image list lowest size.