Ask Your Question
0

opencv 3.1 java video file not opening

asked 2016-03-04 07:10:26 -0600

novinjaiswal gravatar image

updated 2016-03-04 22:12:25 -0600

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. 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

edit retag flag offensive close merge delete

Comments

In the video path, give '/' instead of '\'

zshn25 gravatar imagezshn25 ( 2016-03-04 08:12:16 -0600 )edit

it didn't work. It a windows8 64bit machine

novinjaiswal gravatar imagenovinjaiswal ( 2016-03-04 22:04:17 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-05 03:32:38 -0600

zshn25 gravatar image

Maybe it is am ffmpeg problem, try copying the ffmpeg ddl file from opencv built folder to your application folder

edit flag offensive delete link more

Comments

Hi thanks that solved the problem.

novinjaiswal gravatar imagenovinjaiswal ( 2016-03-05 05:21:30 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-03-04 07:10:26 -0600

Seen: 615 times

Last updated: Mar 04 '16