opencv-python icon indicating copy to clipboard operation
opencv-python copied to clipboard

Request for Corresponding Source of Bundled Windows FFmpeg DLL

Open Ram511991 opened this issue 1 week ago • 1 comments

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:

  1. Exact license applicable to this DLL.
  2. Complete corresponding source code.
  3. Build scripts, patches and configuration.
  4. Applicable third-party license notices.
  5. Redistribution and relinking requirements for proprietary desktop applications.

Thank you for your assistance.

Ram511991 avatar Nov 26 '26 07:11 Ram511991

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.

  1. License: LGPL 2.1 or later. FFmpeg is configured without --enable-gpl / --enable-nonfree (see ffmpeg/make_mingw.sh), and the branch has license.txt and readme.txt.
  2. Source: the matching ffmpeg/5.x_20260602_src branch has the archives under sources/: 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).
  3. Build scripts and config: in the same branch: ffmpeg/download_src.sh (exact tags), make_mingw.sh (configure flags), build_via_docker.sh and docker/Dockerfile (MinGW cross-build).
  4. 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.
  5. Relinking: opencv_videoio loads 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 (see readme.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.

emreyoleridev avatar Nov 27 '26 06:11 emreyoleridev