-
-
Notifications
You must be signed in to change notification settings - Fork 55.7k
-
-
Notifications
You must be signed in to change notification settings - Fork 55.7k
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
Fails to find FFMPEG (4) on Mac now that brew defaults to FFMPEG 5 #21600
Comments
@alalek Why did you label this incomplete? I can't easily add more information if I don't know what is missing |
There are already tickets about FFmpeg 5 build issues: #21455 #20147
Build logs related to FFmpeg detection are necessary (look for av* libraries). Between switching of dependencies versions ensure to reset CMake cache or clean build directory. |
I was able, after digging into the pkg-config processing of cmake itself, to figure out how to tell OpenCV's cmake scripts how to find ffmpeg. I needed to add The logs (even with |
By default OpenCV uses Check with and without
Consider using FFMPEG_DIR or similar variable to avoid side-effects. CMake's |
I was unable to find any alternative other than Exporting I don't believe |
System information (version)
Detailed description
I was successfully building OpenCV from source with Xcode earlier. However, I did a brew update which replaced ffmpeg (4.4.1) with ffmpeg (5), which is now the default https://formulae.brew.sh/formula/ffmpeg. I see that ffmpeg 5 is not supported, but when I uninstall ffmpeg (5) and
brew install ffmpeg@4
, the OpenCV cmake setup is failing to find ffmpeg.Steps to reproduce
Issue submission checklist
forum.opencv.org, Stack Overflow, etc and have not found any solution
The text was updated successfully, but these errors were encountered: