Request for Corresponding Source of Bundled Windows FFmpeg DLL
Dear OpenCV Maintainers,
I am developing StudioPro360, a Windows desktop photography business management application using opencv-python 5.0.0.93.
I intend to distribute it initially as a free beta and later as a commercial product.
My installed OpenCV package contains:
- DLL: opencv_videoio_ffmpeg500_64.dll
- File Version: 2024.11.0
- SHA256: 7AABFF029D1FA47CF56EDE4DBBE05DC62DA3208F07CD16471D4C966A33F9AA31
For proper open-source license compliance, kindly provide:
- Exact license applicable to this DLL.
- Complete corresponding source code.
- Build scripts, patches and configuration.
- Applicable third-party license notices.
- Redistribution and relinking requirements for proprietary desktop applications.
Thank you for your assistance.
Not a maintainer, but most of this is already published in opencv/opencv_3rdparty. Here's how it maps for your wheel.
opencv-python tag 93 pins OpenCV 40738fb, and its 3rdparty/ffmpeg/ffmpeg.cmake downloads the DLL from the ffmpeg/5.x_20260602 branch (commit 06dc20c). The "2024.11.0" file version is a bit misleading. That build's opencv_ffmpeg.rc still carries FILEVERSION 2024,11,0,0 from an older build, so the version string doesn't tell you the build date.
- License: LGPL 2.1 or later. FFmpeg is configured without
--enable-gpl/--enable-nonfree(seeffmpeg/make_mingw.sh), and the branch haslicense.txtandreadme.txt. - Source: the matching
ffmpeg/5.x_20260602_srcbranch has the archives undersources/:ffmpeg-src-n7.1.tar.xz,libvpx-src-v1.16.0.tar.xz,aom-src-v3.14.1.tar.xz,openh264-api-headers-v2.5.0.tar.xz, plus the OpenCV wrapper sources (opencv_ffmpeg.tar.xz,opencv-videoio-ffmpeg.tar.xz). - Build scripts and config: in the same branch:
ffmpeg/download_src.sh(exact tags),make_mingw.sh(configure flags),build_via_docker.shanddocker/Dockerfile(MinGW cross-build). - Third-party notices: FFmpeg (LGPL 2.1+), libvpx (BSD-3), libaom (BSD-2 plus the AOM patent license). OpenH264 isn't bundled: the wrapper only uses its API headers and loads Cisco's binary at runtime if one is present.
- Relinking:
opencv_videoioloads the DLL at runtime and falls back to other backends if it's missing, so you can ship it as a separate, replaceable file. Excluding it from your distribution is also an option (seereadme.txt). For a commercial product, have someone check the final LGPL obligations, but these are the pieces they'll ask for.
To confirm it's the same binary, compare your SHA256 with ffmpeg/opencv_videoio_ffmpeg_64.dll on the ffmpeg/5.x_20260602 branch. The wheel only renames it to opencv_videoio_ffmpeg500_64.dll.