Ask Your Question
1

OpenCV 3.0 BETA - can't open video files

asked Feb 28 '15

matga gravatar image

updated Mar 1 '15

When i want to open video file with VideoCapture, the isOpened() returns everytime false. But VideoCapture works with the camera. I use build from the opencv.org. It worked few days ago, but i forgot what i did to work. :P

So my question is, what should i do, if after VideoCapture video_in("video.mp4"); video_in.isOpened() returns false? Is it wrong settings, or did i forget add some libs?

Thank you.

[EDIT] Problem solved, i coied opencv_ffmpeg300.dll to debug folder, and it works now.

Preview: (hide)

Comments

Could you specify the full path of the debug folder?

Cotangent gravatar imageCotangent (May 23 '15)edit

Could you specify the full path of the debug folder?

Deliss gravatar imageDeliss (Nov 2 '15)edit

3 answers

Sort by » oldest newest most voted
0

answered Sep 24 '15

I experienced the same problem. I resolved it adding the location of opencv_ffmpeg300_64.dll (for instance: <path_to_opencv>\opencv\build\x64\vc12\bin) to my PATH variable.

Preview: (hide)
0

answered Feb 28 '15

adliner gravatar image

updated Feb 28 '15

Perhaps some file access permission problem here? Have you tried running with privileged rights? Or maybe you should specify the full path to video file, CWD could be set to some other location than you expect.

Preview: (hide)
-1

answered Oct 24 '15

Sonny gravatar image

updated Oct 24 '15

Isn't FFMpeg GPL licensed? I think you can't use FFMpeg in a commercial application

Preview: (hide)

Question Tools

2 followers

Stats

Asked: Feb 28 '15

Seen: 1,915 times

Last updated: Oct 24 '15