Ask Your Question

Revision history [back]

opencv 3.1 java video file not opening

Hi

my following code is not working when i try to open a local video file using opencv 3.1 in java. but when i try to read web cam its works.

VideoCapture capture = new VideoCapture();

capture.open("C:\Test\SampleVideo_1280x720_1mb.mp4");

System.out.println("\nopen :"+ capture.isOpened()); // it print false

Thanks Novin

click to hide/show revision 2
No.2 Revision

updated 2016-03-04 07:53:17 -0600

berak gravatar image

opencv 3.1 java video file not opening

Hi

my following code is not working when i try to open a local video file using opencv 3.1 in java. but when i try to read web cam its works.

VideoCapture      capture =  new VideoCapture();

VideoCapture(); capture.open("C:\\Test\\SampleVideo_1280x720_1mb.mp4");

capture.open("C:\Test\SampleVideo_1280x720_1mb.mp4");

System.out.println("\nopen :"+ capture.isOpened()); // it print false

false

Thanks Novin

opencv 3.1 java video file not opening

Hi

my following code is not working when i try to open a local video file using opencv 3.1 in java. but when i try to read web cam its works.works. It a windows8 64bit machine

VideoCapture      capture =  new VideoCapture();

capture.open("C:\\Test\\SampleVideo_1280x720_1mb.mp4");

System.out.println("\nopen :"+ capture.isOpened()); // it print false

Thanks Novin