FFmpeg corresponding-source preparation for Omnimule Desktop
Electron 44.7.0; Linux and Windows x64 only

PREPARED, NOT PUBLISHED. No source rebuild was performed. A prospective URL is
not a live source offer. Source-to-binary association is official release-source
provenance and exact ZIP-member equality, not a reproduced-build attestation.

Identity, notices and configuration
----------------------------------
Omnimule Desktop includes FFmpeg (from Electron 44.7.0), licensed under the GNU
Lesser General Public License version 2.1 or later, with accompanying permissive
notices. Preserve the entire notices/FFmpeg-CREDITS.chromium and
notices/COPYING.LGPLv2.1, also present in the original source. The distributed
LICENSES.chromium.html contains this complete FFmpeg entry. Electron's MIT licence
and a short SPDX label cannot replace its full copyright/grant/warranty notices.

Linux x64: libffmpeg.so, 2801752 bytes
SHA-256 c4c805e46f957356f6b80be31999459e5f07e8b0c351221544ad43a16c980638
Windows x64: ffmpeg.dll, 3113472 bytes
SHA-256 d38957b4351486a16141bdd3162643b811564ba6bfa1d12f374c13b70207dc11

These match the FULL official Electron application ZIP members. The separate
ffmpeg-v44.7.0 ZIPs contain different candidate replacement libraries and do not
identify the source configuration of these shipped bytes. The SOURCE-MANIFEST.json
records exact archive identities; no runtime ZIP or library binary is included.

Pins:
Electron 44.7.0: 61f55c4ce540416b3e43f75f6c0f125d22e5e908
Chromium 152.0.7977.130: 2c592105bbcd9490a9894df48d0fe59b2c512651
Chromium FFmpeg fork: 2b68d2babae73714846961fb0ee47e3b3d2e39a9
Chromium Opus wrapper and real src: same Chromium pin, not a gitlink
Opus upstream reference: 55513e81d8f606bd75d0ff773d2144e5f2a732f5
Last FFmpeg upstream merge: a5e6c0175a7245fc1a9f4639da2810156128aa8b
The upstream references and generated git-2026-07-15-db0156ccfb string do not
substitute for the complete Chromium fork and its modified Opus copy.

Electron build/args/all.gn and release.gn select:
  ffmpeg_branding = "Chrome"
  proprietary_codecs = true
  is_component_build = false
  is_component_ffmpeg = true
  is_official_build = true
  target_cpu = "x64"
  target_os = "linux" or "win"
Both contained Chrome configs set CONFIG_GPL, CONFIG_NONFREE, CONFIG_VERSION3,
CONFIG_GPLV3 and CONFIG_LGPLV3 to 0; H.264, AAC and libopus decoding are enabled.
HEVC decoding/parsing and libx264/libx265 are disabled. Electron ffmpeg.gn instead
selects Chromium branding/proprietary_codecs=false and is NOT this release recipe.
These are published source defaults; actual CI args/overrides were not obtained.
Any version, library, configuration, patch or source change needs a new exact
version/hash/source/notice binding; later versions inherit no reviewed association.

Source payload and extraction layout
------------------------------------
Each full original source archive and full member hash/mode inventory is included:

1. ffmpeg-2b68d2babae73714846961fb0ee47e3b3d2e39a9.tar.gz
   Extract at src/third_party/ffmpeg; paths are directly relative to that directory.
   Full fork, headers, configure, ffbuild/version.sh, GN/GNI targets and generated
   lists, Chrome/{linux,win}/x64 configs, licences and all other tracked files.
2. chromium-opus-2c592105bbcd9490a9894df48d0fe59b2c512651.tar.gz
   Extract at src/third_party/opus; paths are directly relative to that directory.
   Entire Chromium wrapper, BUILD.gn, src, tests, COPYING and
   LICENSE_PLEASE_READ.txt, including original patent-notice references.
3. chromium-ffmpeg-scripts-2c592105bbcd9490a9894df48d0fe59b2c512651.tar.gz
   Extract at src/media/ffmpeg/scripts; directly relative paths. All 29 files,
   including build_ffmpeg.py, generate_gn.py and their remaining directory inputs.
4. electron-61f55c4ce540416b3e43f75f6c0f125d22e5e908.tar.gz
   Strip the single electron-61f55c4ce540416b3e43f75f6c0f125d22e5e908/ prefix and
   extract at src/electron. Full tracked Electron source snapshot: all args,
   DEPS, build/packaging/install scripts, docs and all 20 declared patch sets.
   Includes all 272 Chromium patches (no filename filtering), the one FFmpeg
   patch plus manifest/config, V8 salt inputs and all patch application tooling.
   The FFmpeg patch changes macOS install_name; retain it for faithful provenance.

Git trees reconstructed from every path, mode and file/symlink blob match the four
pinned official trees. Archives preserve original source modes and safe relative
symlinks. The outer delivery tar has normalized owner/time/modes and sorted paths;
SHA-256 inventories fingerprint its source inputs. No downloaded script was run.
Full snapshots preserve optional unused sources and their licences too; this does
not enable their GPL code in the reviewed Chrome configuration.

Generic infrastructure and build prerequisites
----------------------------------------------
This bounded bundle contains the component sources and controls above. Generic
Chromium infrastructure/compilers and Electron's other nested DEPS are not bundled;
Legal permits pinned references. Resolve their exact revisions using included
Electron DEPS and evidence/cr-DEPS.txt, not current main-branch replacements.

Pinned Chromium checkout/infrastructure:
https://chromium.googlesource.com/chromium/src/+/2c592105bbcd9490a9894df48d0fe59b2c512651/
That tree includes build/config, build/toolchain, tools/generate_stubs (Windows
exports), third_party/nasm, sysroot installers and toolchain setup. Chromium DEPS
pins depot_tools 38c391feba5fb96812f9028da12413ffc39df394:
https://chromium.googlesource.com/chromium/tools/depot_tools/+/38c391feba5fb96812f9028da12413ffc39df394/
It also pins GN 641ace93dd9560e75e7add0d08f77b446fbb3b78, Ninja package
version:3@1.12.1.chromium.4 and Siso 7bc9a0bfe050ef97e1712ff61c6f11952799e951.
Compiler/sysroot versions are selected by this checkout and its nested DEPS/hooks;
this preparation has not downloaded or validated a complete toolchain closure.

Use Git, Python 3.9+ (the pinned Chromium infrastructure uses 3.11), Node.js
>=22.18.0, depot_tools/gclient, the pinned GN/Ninja or Siso tools and Clang/libc++.
For full checkout/build infrastructure, upstream recommends more than 16 GB RAM
and at least 100 GB disk; the exact FFmpeg-only minimum was not measured.
Linux: the pinned Chromium instructions target Ubuntu 22.04 and use its
build/install-build-deps.sh plus the pinned Electron sysroot configuration.
Windows: use an authorized Windows 10+ x64 build environment, NTFS, Clang-cl,
Visual Studio C++/MFC/ATL headers/tools and Windows SDK. Set
DEPOT_TOOLS_WIN_TOOLCHAIN=0 to use the locally installed toolchain per upstream.
There is a documentation discrepancy: pinned Electron docs name VS 2019/2022;
pinned Chromium docs require VS 2026, SDK 10.0.26100.7705 and debugging tools
10.0.26100.3323+. Follow the pinned Chromium toolchain requirements and validate
them in the actual build environment; no successful combination was tested here.

Read the complete included Electron docs/development/build-instructions-gn.md,
build-instructions-linux.md, build-instructions-windows.md and patches.md.
Pinned Chromium prerequisite details (also retained under evidence/):
https://chromium.googlesource.com/chromium/src/+/2c592105bbcd9490a9894df48d0fe59b2c512651/docs/linux/build_instructions.md
https://chromium.googlesource.com/chromium/src/+/2c592105bbcd9490a9894df48d0fe59b2c512651/docs/windows_build_instructions.md

Rebuild directions (upstream-based recipe; not executed here)
-----------------------------------------------------------
1. In a separate build directory/environment, follow Electron's included manual
   setup guide with the pinned depot_tools, disabling its automatic self-update
   when preserving the pin. The checkout layout must be Chromium src/ and
   Electron src/electron/. Example source setup, not commands run by preparation:
     gclient config --name "src/electron" --unmanaged https://github.com/electron/electron
     gclient sync --nohooks --with_branch_heads --with_tags --revision src/electron@61f55c4ce540416b3e43f75f6c0f125d22e5e908
   Verify Electron HEAD, Chromium HEAD/tag and FFmpeg revision against the pins.
   Preserve git checkouts: Electron patch tooling uses git to apply patches.
2. Verify each archive SHA-256 from SOURCE-MANIFEST.json, then overlay the four
   supplied source archives at the paths above, BEFORE applying hooks/patches.
   Preserve modes, symlink targets and all licence/interface files. Do not overlay
   pristine sources on an already patched checkout and silently discard changes.
3. Install the pinned prerequisites and run the checkout's normal gclient hooks
   from its root. Electron DEPS invokes script/apply_all_patches.py with
   patches/config.json and runs the required tool/sysroot/profile setup. All
   declared patches are supplied, including every Chromium patch; apply once,
   respecting each ordered .patches list. Do not infer irrelevance from filenames.
   Hooks also install Yarn dependencies and download Electron PGO profiles;
   release.gn requires the V8 builtins profile and default official PGO machinery.
   Read build/pgo_profiles/README.md and its exact state files in the archive.
   No compiler, dependency installer, hook or patch script was run in preparation.
4. From src/, generate output with the bundled release configuration, for example
   on the matching Linux build host:
     gn gen out/FFmpeg --args='import("//electron/build/args/release.gn") target_os="linux" target_cpu="x64"'
   For a Windows x64 build on its supported host, set target_os="win" and use the
   command-shell quoting shown in the included upstream GN build instructions.
   Inspect args.gn and generated source selections: Chrome/proprietary true,
   shared FFmpeg, correct platform/x64, Opus dependency, GPL/nonfree/version3 off.
   FFmpeg's BUILD.gn controls shared_library("ffmpeg") under is_component_ffmpeg;
   ffmpeg_generated.gni and ffmpeg_options.gni are included in the full fork.
5. Build the library target with the checkout's supported Ninja/Siso tooling:
     ninja -C out/FFmpeg ffmpeg
   Target: //third_party/ffmpeg:ffmpeg. Check generated target/output names; the
   resulting library is libffmpeg.so or ffmpeg.dll. Electron BUILD.gn also defines
   electron_ffmpeg_zip for packaging. If changing configuration/source selection,
   follow included media/ffmpeg/scripts/robosushi.md and build_ffmpeg.py/generate_gn.py
   rather than deleting generated configuration inputs.
6. Preserve actual tool versions, args, applied patches and logs with a rebuilt
   modified library. A successful ABI-compatible rebuild, exact CI overrides,
   bit-for-bit reproduction and full toolchain closure are NOT established here.
   Report actual missing required inputs/build failures to Engineer/Legal for
   correction; the source recipe is not a guarantee that a build has passed.

Replacing the library for your own use
--------------------------------------
You may modify LGPL-covered code for your own use and debug those modifications
under its licence. T-366 owns the controlling product Terms exception and remains
open. These instructions do not supply updater/signing keys or certify that Terms
work has shipped. Source preparation alone is not distribution completion.

Use your own application copy in an appropriate test environment. Stop YOUR OWN
application completely before swapping its library. Back up the original library
outside the application directory. Use the correct OS, x64 architecture and an
ABI/version-compatible library. Check your replacement's own hash and preserve
its required permissions. No operation on this preparation Host's installed app
is requested or was performed. Your modifications have no promise of preserving
Omnimule signatures or automatic-update behavior; an update may restore the
publisher's library, so retain your backup and modified copy separately.

Linux x64:
1. On your own system, unpack a separate Desktop AppImage/application copy and
   locate libffmpeg.so beside the executable, outside resources/.
2. After stopping your own application, back up libffmpeg.so outside that copy;
   replace it with the ABI/version-compatible Linux x64 library, retaining its
   filename and appropriate read/executable permissions. Verify its new hash.
3. Run your test copy and check application and required media functionality.
   Restore your backup if the replacement is incompatible. Keep modifications
   separately because an update can replace application files.

Windows x64:
1. On your own system, locate ffmpeg.dll beside the Desktop executable and
   resources/ in your application/test-copy directory.
2. Completely stop your own application, back up ffmpeg.dll outside that
   directory, then replace it with the ABI/version-compatible Windows x64 DLL.
   Retain the filename and verify the replacement's hash before testing.
3. Run your test copy and check application and required media functionality.
   Restore the backup if incompatible. Do not change attribution/signature
   records to represent a modified library as an official publisher update.

The official separate ffmpeg-v44.7.0-linux-x64.zip / win32-x64.zip libraries are
ABI-compatible replacement candidates; their different codec configuration is
not the source identity of the shipped full-ZIP libraries. Relevant hashes:
Linux original libffmpeg.so:
  c4c805e46f957356f6b80be31999459e5f07e8b0c351221544ad43a16c980638
Linux official FFmpeg-ZIP replacement libffmpeg.so:
  dd08dcc52e083326fefcd0c8cd83d7b9b2128f55f85cdb18d694344d1344c552
Windows original ffmpeg.dll:
  d38957b4351486a16141bdd3162643b811564ba6bfa1d12f374c13b70207dc11
Windows official FFmpeg-ZIP replacement ffmpeg.dll (not runtime-tested here):
  d87163529469885c0cebbae0c78cfe0a9c1fa430fdc676aafd94a521a0c4681b
Official release: https://github.com/electron/electron/releases/tag/v44.7.0

Accepted one-time replacement evidence: (a) plus (b)
---------------------------------------------------
Legal's T-345 comment mx7z08c5ps45qbbtdvvbtc74fn8hybgn accepts the combination
below for the one-time replacement check. Engineer confirmed on 2026-11-10 that
Legal accepted the completed evidence and that static (b) covers Windows too.
The original raw report/proof predates acceptance and retains historical pending
wording; source-provenance.json records this later acceptance and report hashes.

(a) Isolated Linux stock Electron 44.7.0 decoded and played the SAME 8,024-byte
Opus/WebM sample with the original library and again with the official separate
FFmpeg-ZIP replacement above. Both played to ended=true. Process mapping and
library hashing confirmed the actual loaded libraries. The sample SHA-256 is:
  27da1c7870b86eb20962db25c7df6b03be7bc43d8bb01c4c564576f4b4fc3710
Both runs decoded 0.4799773242630386 seconds at 44,100 Hz. This was stock Electron
in isolated scratch home/profile paths, not a launch of Omnimule or a Daemon,
and used official prebuilt replacement bytes, not a rebuild from these sources.

(b) Static retained R22 and R30 package inspection covered Linux AND Windows.
Both OnlyLoadAppFromAsar and EnableEmbeddedAsarIntegrityValidation were disabled
in every inspected executable. The separate root FFmpeg library was outside the
resource attribution inventory. No direct FFmpeg filename/known-library-hash gate
or WinVerifyTrust reference was found in the inspected compiled main bundles.
Linux ELF linkage has NEEDED libffmpeg.so and $ORIGIN; the inspected retained
libraries had no IMA/EVM signature xattrs. Windows ffmpeg.dll is a DELAY import,
not a direct import; the inspected PE certificate tables were empty. These are
loader/layout facts and bounded negative checks, not a Windows runtime result.
No Omnimule-specific replacement blocker was identified by that inspection.

Strict release/package hash checks validate publisher-built distribution inputs;
they do not establish a user-startup FFmpeg hash check. None was identified in
the inspected R22/R30 startup bundles/resource inventories. Installer/update
acquisition and bundled-Daemon integrity are distinct boundaries in the retained
inspection. This does not certify every indirect check or external kernel,
IMA, WDAC or AppLocker policy, or promise signature/automatic-update preservation.
A Windows runtime test in a disposable VM remains OPTIONAL under Legal's ruling
because static (b) covers Windows; no Windows runtime test is claimed. If an
actual swap blocker or detection is found, return to Engineer/Legal.

Compatibility follow-up: recordings use WebM/VP8, but MP4/MOV attachments may
depend on H.264/AAC. Check required media before any codec removal. This source
update changes no codecs and makes no new patent or Terms determination.

Delivery and limitations
------------------------
Legal ruling: https://omnimule.com/tasks/T-345, comment
mx7pxdqacvt354ay98cq8r569x8hy6zc; replacement clarification
mx7z08c5ps45qbbtdvvbtc74fn8hybgn. Source publication, prominent actual source-link
notice and T-366 Terms remain open and parent-owned. The one-time (a)+(b)
replacement evidence is accepted as recorded above.
The external distribution.json URL is prospective only. Keep exact sources live
next to the binary downloads while distributed and at least three years after
last distribution; indefinite retention is the intended default. R22 and earlier
source gaps remain open until authorized hosting and anonymous exact-byte proof.
Legal allows delivery for earlier recipients without an old-installer takedown.
H.264/AAC patent questions remain a separate known residual, not a conclusion or
patent grant from this package. Other native/Chromium inventory is outside scope.
