FFmpeg in ClipCatalog's video player (ffmpeg-9.dll)
Source code, build and licence notice
===================================================

ClipCatalog's in-app video player plays video through the MDK-SDK
library (mdk.dll), which loads the FFmpeg runtime library ffmpeg-9.dll
from the ClipCatalog installation folder. ClipCatalog redistributes
ffmpeg-9.dll unchanged, exactly as it is published inside the MDK-SDK
release that ClipCatalog is built against.

This is not the FFmpeg that indexes your videos. That is the separate
ffmpeg.exe, a different build under a different licence version, with
its own licence text in licenses\ffmpeg\.


Version
-------
ffmpeg-9.dll reports the FFmpeg version string

    git-2026-09-17-590fb40-avbuild

and carries its full configure line, which any strings tool shows.


Licence
-------
The library is licensed under the GNU Lesser General Public License,
version 2.1 or (at your option) any later version (LGPL-2.1-or-later).
The full licence text follows this notice. The build is configured
without --enable-gpl, --enable-nonfree and --enable-version3, and each
of its libraries reports "LGPL version 2.1 or later".

avbuild's own repository is licensed under version 3 of the LGPL. Its
patches are written as changes to FFmpeg, and the files they add keep
FFmpeg's "version 2.1 or later" licence header, so ClipCatalog
distributes the library under LGPL-2.1-or-later. Anyone who reads
avbuild's patches as covered by version 3 can use the whole library
under version 3, which the "or later" grant allows.


Source code
-----------
The avbuild project of Wang Bin, who also publishes MDK-SDK, built
ffmpeg-9.dll on 2026-09-18 from FFmpeg's source with avbuild's patches
applied. It was built from:

1. FFmpeg, commit 590fb407b09bbf19aac0ea2fbd0ba16f93494601 (2026-09-17)
   https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/590fb407b09bbf19aac0ea2fbd0ba16f93494601
   https://github.com/FFmpeg/FFmpeg/tree/590fb407b09bbf19aac0ea2fbd0ba16f93494601

2. avbuild, commit d91e8a9505ea38746053a8986a3a438c7261bed7 (2026-09-18)
   https://github.com/wang-bin/avbuild/tree/d91e8a9505ea38746053a8986a3a438c7261bed7

   avbuild holds:
   - the patches. avbuild.sh applies the files in patches/master/ and
     then those in patches/common/ to the FFmpeg tree, in file-name
     order, and skips any patch, or part of one, that does not apply.
     In this build every patch in patches/master/ applied; of
     patches/common/, only the second change in
     0001-lavu-monotonic-av_gettime_relative-for-msvc.patch did;
   - the build scripts, avbuild.sh and tools/vcbuild.bat;
   - the build configuration, config-lite.sh (the build copies it to
     config.sh);
   - the build workflow, .github/workflows/build.yml (job "VS2026",
     configuration "lite", target "windows-desktop"; run 35299810794).

3. Inputs the build took from outside those two commits:
   - NVIDIA's codec headers (nv-codec-headers, MIT, notice below):
     master at commit eddcea9e27f6b772057c9b3f87de2cc1737faffc, plus
     versions 9.1, 11.1, 12.0 and 12.1 at the commits avbuild pins in
     its tools/ folder,
     https://github.com/FFmpeg/nv-codec-headers
   - AMD's AMF headers, version 1.5.2 (MIT, notice below),
     https://github.com/GPUOpen-LibrariesAndSDKs/AMF/releases/tag/v1.5.2
   - Khronos' Vulkan headers, at the commit avbuild pins in
     tools/Vulkan-Headers (see the Vulkan entry).
   - avbuild's prebuilt dependency packages: dep.7z from
     https://sourceforge.net/projects/avbuild/files/dep/ (replaced in
     place by later uploads), and the package that
     https://github.com/wang-bin/devpkgs built at commit
     5e7b21a7d98033be4b1c7e603cd8aa6d9f78b148. The libraries from them
     that are linked into the DLL are listed below.


Other code inside ffmpeg-9.dll
------------------------------
- The Intel Video Processing Library (Intel VPL) dispatcher, version
  2.17.0, statically linked: see the "Intel VPL dispatcher (libvpl)"
  entry, licenses\libvpl\.
- libva_loader by Wang Bin, statically linked: see the "libva_loader"
  entry, licenses\libva-loader\.
- zlib 1.3.2 by Jean-loup Gailly and Mark Adler, statically linked:
  see the "zlib" entry, licenses\zlib\.
- Code compiled from the NVIDIA and AMD headers named above. Their
  notices follow.

NVIDIA codec headers (nv-codec-headers). nvEncodeAPI.h,
dynlink_cuviddec.h and dynlink_nvcuvid.h carry this notice, the older
versions with earlier years (2010-2019 in version 9.1);
dynlink_loader.h and dynlink_cuda.h carry it with "Copyright (c) 2016":

  Copyright (c) 2010-2026 NVIDIA Corporation

  Permission is hereby granted, free of charge, to any person
  obtaining a copy of this software and associated documentation
  files (the "Software"), to deal in the Software without
  restriction, including without limitation the rights to use,
  copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the software, and to permit persons to whom the
  software is furnished to do so, subject to the following
  conditions:

  The above copyright notice and this permission notice shall be
  included in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  OTHER DEALINGS IN THE SOFTWARE.

AMD AMF headers. Each header carries this notice with its own year,
from 2017 to 2022; most say 2018:

  Notice Regarding Standards.  AMD does not provide a license or
  sublicense to any Intellectual Property Rights relating to any
  standards, including but not limited to any audio and/or video
  codec technologies such as MPEG-2, MPEG-4; AVC/H.264; HEVC/H.265;
  AAC decode/FFMPEG; AAC encode/FFMPEG; VC-1; and MP3 (collectively,
  the "Media Technologies"). For clarity, you will pay any royalties
  due for such third party technologies, which may include the Media
  Technologies that are owed as a result of AMD providing the
  Software to you.

  MIT license

  Copyright (c) 2018 Advanced Micro Devices, Inc. All rights reserved.

  Permission is hereby granted, free of charge, to any person
  obtaining a copy of this software and associated documentation
  files (the "Software"), to deal in the Software without
  restriction, including without limitation the rights to use, copy,
  modify, merge, publish, distribute, sublicense, and/or sell copies
  of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:

  The above copyright notice and this permission notice shall be
  included in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  DEALINGS IN THE SOFTWARE.


Replacing the library
---------------------
You may replace ffmpeg-9.dll in the ClipCatalog installation folder
with a compatible build of your own, including one you have modified,
and keep using ClipCatalog with it. To the extent the LGPL requires it,
you may also modify ClipCatalog for your own use and reverse engineer
it to debug such modifications. These permissions apply notwithstanding
any restriction in ClipCatalog's End User License Agreement, but they
do not extend the licence to use ClipCatalog that the Agreement grants.
