Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: DLL load fails on Windows10 install. MFPlat.dll MF.dll #185

Closed
nzjrs opened this issue Mar 30, 2019 · 4 comments
Closed

ImportError: DLL load fails on Windows10 install. MFPlat.dll MF.dll #185

nzjrs opened this issue Mar 30, 2019 · 4 comments

Comments

@nzjrs
Copy link

nzjrs commented Mar 30, 2019

Please close (or add a note to the README).

I encountered a missing DLL error and the root cause was missing MFPlat.dll and friends. Exactly like #181 (comment)

FYI / For Google.

The page to visit to determine "which version of the media features pack should I download" is

https://support.microsoft.com/en-us/help/3145500/media-feature-pack-list-for-windows-n-editions

It would be cool if you offered / built without the MSMF (media features). -D WITH_MSMF=no as this seems to be / was recently bugged opencv/opencv#11696 and opencv/opencv#11810 in 3.4 and above.

According to opencv/opencv#11882 the priority is MSMF, DSHOW, VFW. Of those I think DSHOW has the least dependencies so maybe building with only that backend is sufficient on windows - but that might actually work worse for people where they have MF installed and an opecv version without a buggy MSMF backend.

In all cases it would be worth mentioning "Please install https://github.com/lucasg/Dependencies and open cv2.pyd to debug missing DLL issues."

@skvark
Copy link
Member

skvark commented Mar 30, 2019

I will have a look at those MSMF issues and add a note to the README.

@nzjrs
Copy link
Author

nzjrs commented Mar 30, 2019

Thanks. I learned that their is an entire version of Windows that misses these DLLs

https://www.google.com/amp/s/www.howtogeek.com/322112/what-is-an-n-or-kn-edition-of-windows/amp/

The current builds which require MSMF Will therefore always fail on this "Windows N"

@multiOTP
Copy link

multiOTP commented Apr 4, 2019

I had the same issue. You can easily fix it by freely downloading the Media Pack for Windows 10 here : https://www.microsoft.com/en-us/software-download/mediafeaturepack

@skvark
Copy link
Member

skvark commented Apr 5, 2019

There is now a note in the README about this.

DSHOW can be forced via environment variable: OPENCV_VIDEOIO_PRIORITY_LIST=DSHOW

I'm keeping the builds as is to avoid any further issues.

@skvark skvark closed this as completed Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants