LS:MP - third-party notice for the bundled FFmpeg libraries
===========================================================

This folder (bin\ffmpeg\) contains libraries from the FFmpeg project
(https://ffmpeg.org), licensed under the GNU Lesser General Public License,
version 2.1 or later (LGPL-2.1-or-later). They are used ONLY by
"LS:MP Encoder" (lsmp-encoder.exe), the open source (MIT licence) program that
performs LS:MP's extended video export for the Rockstar Editor. The source
code of LS:MP Encoder is shipped with it. LSMP.exe itself never loads FFmpeg.

Files
-----
  avcodec_lsmp-62.dll     FFmpeg libavcodec 62    (encoders)
  avformat_lsmp-62.dll    FFmpeg libavformat 62   (containers: MP4/MOV, MKV/WebM, AVI, WAV, Ogg, image sequences)
  avutil_lsmp-60.dll      FFmpeg libavutil 60
  swresample_lsmp-6.dll   FFmpeg libswresample 6  (audio conversion)
  swscale_lsmp-9.dll      FFmpeg libswscale 9     (pixel format conversion)
  licenses\               full licence texts (see below)
  source\lsmp-ffmpeg-source.zip
                          the complete corresponding source of these DLLs
                          (see "Source code" below)

How the libraries are used
--------------------------
* LS:MP Encoder loads these DLLs dynamically at run time
  (LoadLibrary/GetProcAddress). No FFmpeg code is compiled into LS:MP Encoder
  or into any other LS:MP program.
* This FFmpeg build contains no GPL and no "nonfree" components. It was
  configured without --enable-gpl, --enable-nonfree and --enable-version3;
  FFmpeg reports its licence as "LGPL version 2.1 or later".
* H.264, HEVC and AV1 are encoded by your GPU driver (NVIDIA NVENC, AMD AMF,
  Intel Quick Sync, Direct3D 12 video) or by Windows Media Foundation; AAC audio
  is encoded by Windows Media Foundation. No software H.264/HEVC/AAC encoder is
  included. VP9 (libvpx), AV1 (SVT-AV1 and libaom), FFV1, PNG, OpenEXR, FLAC,
  PCM and Opus (libopus) are encoded in software.

Using your own FFmpeg build
---------------------------
You may replace these libraries with another build of FFmpeg, modified or not:
put your DLLs, with the same file names, in the folder

    bin\ffmpeg-user\

of your LS:MP installation. LS:MP Encoder loads FFmpeg from bin\ffmpeg-user\
in preference to bin\ffmpeg\. LS:MP updates never modify or delete
bin\ffmpeg-user\. Your build must be ABI-compatible with FFmpeg 8.1
(libavcodec 62, libavformat 62, libavutil 60, libswresample 6, libswscale 9).
The source archive below contains everything needed to rebuild the shipped
DLLs, as a starting point.

If you install in bin\ffmpeg-user\ an FFmpeg build that contains GPL
components (for example x264 or x265), you obtain and use that build under
its own licence. LS:MP does not distribute GPL components.

Components and licences (full texts in licenses\)
--------------------------------------------------
  FFmpeg 8.1                  LGPL-2.1-or-later  FFmpeg-COPYING.LGPLv2.1.txt, FFmpeg-LICENSE.md
  Statically linked into the FFmpeg DLLs above (permissive licences):
  libvpx 1.16.0 (VP9)         BSD-3-Clause       libvpx-LICENSE.txt, libvpx-PATENTS.txt
  libaom 3.13.1 (AV1)         BSD-2-Clause       libaom-LICENSE.txt, libaom-PATENTS.txt
  SVT-AV1 3.1.2 (AV1)         BSD-3-Clause-Clear SVT-AV1-LICENSE.md, SVT-AV1-PATENTS.md
  fast-C-src 391d5e9 (FAST corner detector, used by SVT-AV1)
                              BSD-3-Clause       fastfeat-LICENSE.txt
  libopus 1.5.2 (Opus)        BSD-3-Clause       libopus-LICENSE.txt
  zlib 1.3.1                  Zlib               zlib-LICENSE.txt
  Intel libvpl 2.16.0         MIT                libvpl-LICENSE.txt
  Headers used at build time (no separate binary):
  nv-codec-headers 13.0.19.0 (NVIDIA NVENC API)  MIT  nv-codec-headers-LICENSE.txt
  AMD AMF headers 1.5.0                          MIT  AMF-headers-LICENSE.txt

Source code
-----------
The complete corresponding source code of these FFmpeg libraries is shipped
with them, in this folder:

    bin\ffmpeg\source\lsmp-ffmpeg-source.zip

and can also be downloaded from:

    https://dl.lsmp.gg/clients/open-source/lsmp-ffmpeg-source.zip

The archive contains the exact FFmpeg 8.1 source tree used for these DLLs
(upstream release plus the build patches), CHANGES.diff (all changes against
the upstream FFmpeg 8.1 release), BUILD.txt (how the DLLs were compiled:
configure line, compiler, flags, dependency versions and their download
locations) and the build scripts. FFmpeg's upstream source is also available
at https://ffmpeg.org/download.html and https://github.com/FFmpeg/FFmpeg
(tag n8.1).

FFmpeg is a trademark of Fabrice Bellard, originator of the FFmpeg project.
