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

Building Opencv4 is successful but doesn't download opencv_ffmpeg.dll and gives no error until you try to use video capture #12587

Closed
ferjif opened this issue Jul 27, 2020 · 5 comments · Fixed by #15162
Assignees
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist

Comments

@ferjif
Copy link

ferjif commented Jul 27, 2020

The Bug is
I recently installed opencv and it built and installed fine. but the problem is the opencv_ffmpeg.dll didn't download. I used both x86 and x64 windows triplets but still the file wasn't downloaded.
Environment

  • OS: windows 10
  • Compiler: MSVC 19
    To Reproduce
    Steps to reproduce the behavior:
  1. ./vcpkg install opencv opencv[ffmpeg]
  2. No errors builds just fine

Expected behavior
Opencv builds successfully and you can use it just fine until you want to use cv::VideoCapture(idx, cv::CAP_FFMPEG) which fails to open a capture object

@JackBoosY JackBoosY self-assigned this Jul 27, 2020
@JackBoosY
Copy link
Contributor

Hi @ferjif, thanks for reporting this issue.
Could you try #11130 changes?

Thanks.

@ferjif
Copy link
Author

ferjif commented Jul 27, 2020

ok. i'll try it and get back to you.
Thanks

@ferjif
Copy link
Author

ferjif commented Jul 29, 2020

@JackBoosY sorry i didn't have time to use the pull request but the prebuilt version from opencv even with opencv_ffmpeg.dll failed to use it. so i used cv::CAP_ANY and it worked on both the vcpkg version and the prebuilt version from sourceforge.

@JackBoosY
Copy link
Contributor

@cenit What do you think?

@cenit
Copy link
Contributor

cenit commented Jul 30, 2020

opencv_ffmpeg.dll is a custom ffmpeg build. You cannot find it inside vcpkg, because we use the normal ffmpeg build which is a superset of it (we have aligned windows with Linux and osx, where libopencv_ffmpeg never existed)

@JackBoosY JackBoosY added the category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist label Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants