First time here? Check out the FAQ!
answered Jun 20 '0
the framesize of your upsampled video images does not match the size you gave to the VideoWriter, so it will reject writing frames
(out.write() has a return value, too, just saying ...)