Replacing the FFmpeg libraries in Video Cutlet for Windows

Video Cutlet uses FFmpeg under the GNU Lesser General Public License (LGPL),
version 2.1 or later. FFmpeg is supplied as six separate DLLs in the folder
that holds VideoCutlet.exe, and you may replace any of them with your own
compatible build:

  avcodec-62.dll    avformat-62.dll    avfilter-11.dll
  avutil-60.dll     swresample-6.dll   swscale-9.dll

The corresponding source code is in licenses\ffmpeg\sources, and the LGPL
and GPL license texts are in licenses\ffmpeg.

A compatible build

Build FFmpeg 8.1 for x86_64 Windows as shared libraries, so each DLL keeps
the name above. The shipped libraries were configured with these options:

  --enable-shared --disable-autodetect --enable-w32threads --enable-zlib
  --enable-schannel --enable-amf --disable-filter=amf_capture
  --enable-mediafoundation --enable-d3d11va --enable-d3d12va --enable-dxva2
  --enable-ffnvcodec --enable-nvenc --enable-libmp3lame --enable-libopus
  --enable-libvorbis --enable-libtheora --enable-libvpx --enable-libsvtav1
  --enable-libdav1d --enable-libopenmpt --enable-libsrt --enable-libvpl

A library you replace on its own needs at least the options it was built
with. For avutil-60.dll these are --enable-amf, --enable-d3d11va,
--enable-d3d12va, --enable-dxva2, --enable-ffnvcodec, and --enable-libvpl.
If a replacement lacks a function the other libraries call, Windows does not
start Video Cutlet and names the missing entry point.

Video Cutlet does not start with libraries configured with --enable-gpl or
--enable-nonfree.

Installing your build

1. Quit Video Cutlet.
2. Copy your DLL over the file of the same name in the application folder.
   The installer's default folder is %LOCALAPPDATA%\Programs\Video Cutlet;
   the portable package runs from wherever it was extracted. Keep the
   original file if you may want to go back.
3. Start Video Cutlet. A replacement DLL does not need to be signed.

From the Microsoft Store

The folder of a Store installation is read-only. Copy the whole application
folder to a folder you can write to, replace the DLL in the copy, and start
VideoCutlet.exe from the copy. This PowerShell command prints the folder to
copy:

  (Get-AppxPackage -Name ChillingMoose.VideoCutlet).InstallLocation

The copy keeps its settings apart from the Store installation.
