KeplerGrid FFmpeg source materials, macOS arm64
Release line: KeplerGrid 1.0.0 / Electron 45.3.3

The FFmpeg source is the Chromium fork at 9db86ce5b5b454dfc96c435f9f0723012980c37f.
Electron applies four patches in the order in patches/series. The Opus source archive
contains Chromium's vendored tree, including its local build files and changes.
The retained COPYING notices identify the original licensors and terms. The
recipient-marker patch is optional and adds only a version marker for testing.

Build the library with Apple's Xcode and the Electron GN toolchain. This was tested
on Apple Silicon with Xcode 27.2. Allow room for a shallow Electron/Chromium
checkout, its dependencies, and build output. Use a scratch directory with no
spaces. Upstream setup:
https://www.electronjs.org/docs/latest/development/build-instructions-gn
https://www.electronjs.org/docs/latest/development/build-instructions-macos

1. Check out depot_tools at the commit in BUILD-PINS.json. Configure gclient with
   src/electron as its unmanaged solution and check out Electron at the exact
   commit in BUILD-PINS.json. Run gclient sync --no-history --nohooks with that
   explicit Electron revision. The pinned Electron DEPS selects the Chromium
   version. Check Chromium and FFmpeg against BUILD-PINS.json before hooks.
2. Run the pinned gclient hooks from the checkout root. They apply Electron's
   upstream patches and prepare the tools. Do not reapply patches already applied
   by the hooks. Confirm all four FFmpeg patches are present before making changes.
3. From the Chromium src directory, optionally edit the covered FFmpeg source.
   To reproduce the marker experiment, apply patches/recipient-marker.patch
   in src/third_party/ffmpeg after the upstream patches. From src run:
   buildtools/mac/gn gen out/KeplerGridFFmpeg --args='import("//electron/build/args/ffmpeg.gn") target_cpu="arm64" is_debug=false ffmpeg_branding="Chrome" proprietary_codecs=true enable_dsyms=false chrome_pgo_phase=0 symbol_level=0 thin_lto_enable_cache=false use_remoteexec=false use_system_xcode=true is_chrome_branded=false'
   third_party/ninja/ninja -C out/KeplerGridFFmpeg electron:electron_ffmpeg_zip
   The output includes libffmpeg.dylib inside ffmpeg.zip. These local build
   settings preserve the interface and codec choices. The output is not expected
   to be bit-for-bit identical to the vendor's optimized release.
4. Use a separate developer copy of upstream Electron 45.3.3 for arm64. Its
   documented replacement test copies the rebuilt library into the framework's
   Libraries directory. Keep your installed KeplerGrid app untouched. The
   developer fixture uses fresh application data, cache and logs. Exact final
   KeplerGrid application objects and instructions for their placement must
   accompany a published binary. They are excluded from this pre-signing archive.
   https://raw.githubusercontent.com/electron/electron/v45.3.3/script/verify-ffmpeg.py
   https://www.electronjs.org/docs/latest/tutorial/application-distribution

This archive is an offline pre-signing input. Public release requires the final
object materials and approved release-specific notices and terms.
