Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   python opencv VideoCapture ffmpeg libraries failure (http://www.chiefdelphi.com/forums/showthread.php?t=127644)

mhaeberli 09-03-2014 14:24

python opencv VideoCapture ffmpeg libraries failure
 
I have python OpenCV vision code that works on some machines but not on others. In particular, on many WindowsXP machines, I don't get any image from the camera, even when the camera is working.
There are a lot of suggestions that the problem somehow is my ffmpeg dll library configurations.
Advice would be welcome.
Thanks,
Martin

virtuald 09-03-2014 20:28

Re: python opencv VideoCapture ffmpeg libraries failure
 
Possibly true -- though, you're not using OS-specific functionality to connect to the camera, so I can't imagine *what* specifically would be different. Are you using the same binaries on all machines?

Also, make sure you have SP3 installed on XP.

mhaeberli 09-03-2014 20:51

Re: python opencv VideoCapture ffmpeg libraries failure
 
Thanks - I'll check re SP3. Other paths I think I have checked already. It would be nice to get an error dump from python or something that tells me _why_ the VideoCapture failed. On some systems, it fails for the webcam but not for the built-in cam...

mhaeberli 19-03-2014 13:06

Re: python opencv VideoCapture ffmpeg libraries failure
 
Turns out that my Windows PATH (Path) variable was not set to correctly include OpenCV. It should include something like:
C:\opencv\build\x86\vc10\bin;
...
at the beginning.
(This is set in System / Advanced / Environment Variables)
My educated guess is that this can work also if another appropriate \bin directory is chosen.


All times are GMT -5. The time now is 02:33.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi