Writing an mp4 video in java [closed]
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?
if you're on windows, make sure, opencv_ffmpeg_64.dll is on the PATH. (or next to your app).
Thanks berak, I decided to use jcodec instead of openCV