-
Notifications
You must be signed in to change notification settings - Fork 865
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
MacOS builds with FFMPEG shared libraries #49
Comments
Yes, that is correct as long as the FFmpeg version is LGPL and compiled with I have already experimented with FFmpeg LGPL builds on the Cent OS 5 containers and it seems that it should be possible to add FFmpeg support for Linux also. Thanks for your work in advance :) |
@skvark The default FFmpeg build on homebrew is built using --enabled-shared so the main issue is building without I'm also glad to hear the Linux work appears possible since I was going to look at fixing that next. I'm fairly familiar with building things from source on linux but having not really used CentOS much I was concerned the build toolchain might be prohibitively difficult. Its one thing to compile some libraries from source code before compiling a program from sources, its another thing to need to build something like all of LLVM & clang using gcc because gcc is the only prebuilt compiler and the program won't compile with anything but clang. |
@skvark I think I may have this working, but its a little hard to tell if it worked without the assets at the end and my travis-ci run didn't publish them anywhere useful. techdragon@b487193 @skvark do you want a PR regardless? or do you know a way I can get the wheel after travis is done in order to test these versions? |
Sorry for the slow answer. As fas as I can see, the build does not have FFmpeg enabled:
This is due to this error in brew recipe:
You have to remove You can test if the video support is ok by enabling macOS test here: https://github.com/skvark/opencv-python/blob/master/tests/test.py |
Thanks for dissecting the output there @skvark, due to some how homebrew flags work, it seems I did indeed misconfigure things. I'll dig back into this again and now I know I should see some useful information in the OpenCV log output hopefully I'll know if it worked this time. 😄 |
@skvark I've gotten this working in my fork, but the complete build time is too slow and causes Travis-CI to fail for all four of the Mac + OpenCV + OpenCV Contrib modules combinations. Are there any possible speedups in the MultiBuild repo you can think of? |
You could contact Travis and ask for an increased time limit. |
Like @ofek said, I'll have contact Travis and ask if they can increase the time limit. There's no way to speed it up because brew builds FFmpeg from scratch. Luckily this problem concerns only macOS since we can precompile FFmpeg on the Docker containers. |
@skvark let me know once Travis-CI have raised the build timeout limit and I'll submit the PR. |
I sent an email about build time limit increase to Travis. Waiting for an answer. |
@techdragon Travis has now increased the build time limits. Feel free to create pull request. |
@techdragon any way I could help you on this PR? Let me know |
@techdragon Same here. Anything I can do to help with for Mac OS or Linux builds with FFMPEG, let me know. |
PR #56 opened. Hopefully the build doesn't time out. |
Let's see, the build timeout limit should be at 90 minutes. |
I've just taken my first attempt to get the homebrew formula for FFMPEG to support compiling an LGPL version -> Homebrew/homebrew-core#18909
If I've read your FAQ answer correctly... Assuming I can get those changes into HomeBrew, or I include an appropriately customised homebrew formula in this repo, it should be possible to build a version of FFMPEG suitable for use in a MacOS wheel. Is this correct?
The text was updated successfully, but these errors were encountered: