-
Notifications
You must be signed in to change notification settings - Fork 896
[Suggestions] Add a gpl binaries of opencv-python include ffmpeg x264, x265 #469
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
Comments
I was able to create a opencv python binding with static build with ffmpeg[x264,x265] with vcpkg. Is it something that interesting you? |
@sergregory |
Enabling FFmpeg GPL extensions can be very easily done by just changing the build settings in the Dockerfiles and macOS build scripts in this repository or just by building locally against local FFmpeg. For example:
On Windows, OpenCV CMake scripts download the pre-built FFmpeg binary during the build. We do not generate the binary here. For local builds, just follow the instructions in the README (FFmpeg should be picked up automatically from your computer by the CMake scripts): https://github.com/opencv/opencv-python#manual-builds About creating new binary distributions for this purpose... In my opinion, it's too risky to distribute compiled binaries containing x264 and x265 encoders. IANAL, but I believe that x264 and x265 include algorithms that are subject to software patents. That's why the Windows FFmpeg downloaded by CMake during Windows builds is LGPL and the h264 encoder must be downloaded separately by the user: https://github.com/opencv/opencv/blob/master/3rdparty/ffmpeg/readme.txt However, this is just my opinion. I'm not the main maintainer of this project anymore so it's up to the OpenCV team to decide how they would like to proceed with this and possibly seek legal advice, if needed. |
Not sure why is risky. Yes I know the license for this binary (wheel) file will be change. |
If you read my comment, the issue is not GPL but patents. Read the legal info about FFmpeg here: https://www.ffmpeg.org/legal.html I'm sure someone from the OpenCV team will express their opinion on this matter sooner or later. |
Now is more understood. Maybe to call it for private use? Not sure how to approach it from legal view. |
@skvark what do you think about openh264? |
Releasing build scripts != binaries distribution |
Can you elaborate? |
Add a gpl binaries of opencv-python include ffmpeg x264, x265.
The text was updated successfully, but these errors were encountered: