FFmpeg Build
============

This repo contains build scripts and dependencies to build shared (LGPL-compatible) ffmpeg libraries, used
for video encode/decode with ETX proxy and client.

The output zips can be used as Meson wraps, or downloaded directly, and contain the libs and headers necessary to compile, PDBs for debugging, and DLLs and a license file for distribution.

Build Setup
-----------

Tested on Windows 10.

 * Expects Visual Studio 2019 in default location. (build.cmd can be tweaked to call any vsvars.bat)
 * Download the latest msys2 https://www.msys2.org/
 * Install to `C:\msys64`
 * Inside the msys shell:
   ```
   pacman -Syu
   pacman -S make
   pacman -S diffutils
   pacman -S yasm
   pacman -S pkg-config
   pacman -S zip
   mv /usr/bin/link.exe /usr/bin/link.exe.disable
   ``` 

Building
--------
 In a new Windows cmd shell:
 * `git clone --recursive <this repo>` or if already checked out `git pull && git submodule update` 
 * `cd ffmpegbuild`
 * `build.cmd 32 [opts]`
 * `build.cmd 64 [opts]`
 * Valid options are:
   * `release` produce a release build
   * `debug` produce a debug build
   * `tools` build command line ffmpeg executable tools
   * `pkg` run Artifactory package and upload step only

