Ask Your Question

Revision history [back]

Writing an mp4 video in java

Hi everyone, I'm trying to create a mp4 video in java with OpenCV 3.4.2

the next lines will create an empty file, no errors.

VideoWriter vw = new VideoWriter("vid.mp4", VideoWriter.fourcc('M', 'P', 'G', '4'), 1, temp.size()); vw.write(temp);

(temp is a Mat object)

can someone help?