OpenCV VideoWriter Android Issue

240 Views Asked by At

I am working on app that converts Images into Video. In Java, I think the Class is Videowriter but unfortunately I can't Initialize that class.

VideoWriter video;
video = new VideoWriter("/storage/emulated/0/test.avi", forcc, 20.0, new Size(640, 
480), true);
if (video.isOpened()) {
       Toast.makeText(this, "Yes", Toast.LENGTH_SHORT).show();
} else {
       Toast.makeText(this, "No", Toast.LENGTH_SHORT).show();
}
video.release();

Here video.isOpened() always return false. Can somebody help me?

0

There are 0 best solutions below