Browser media core r2: fixed-source build and relink delivery

This new revision adds BSD libvpx VP8 encoding, libswscale and video transforms
while retaining the fixed FFmpeg 5.1.4, LAME, Opus 1.3.1, ffmpeg.wasm 0.12.15
bindings and Emscripten 3.1.40 inputs. The supplied sources.json locks all seven
actual inputs by exact bytes, SHA-256 and archive root. libvpx is the fixed
ffmpegwasm/libvpx v1.13.1 commit 10b9492dcf05b652e2e4b370e205bd605d421972;
its archive is an explicit input to r2, without any claim about old publisher
binaries. LICENSE, PATENTS and AUTHORS are copied beside the complete archive.
No x264, x265, GPL-only, nonfree or version3 feature is enabled.

The FFmpeg demuxers include MOV/MP4/M4A/3GP, Matroska/WebM, MP3, WAV,
AAC/ADTS, FLAC, Ogg, AIFF, ASF/WMA, AVI, MPEG-TS, MPEG-PS and MPEG video.
Native video decoders include H264, HEVC, VP8, VP9, MPEG4, MJPEG, H263,
MPEG1, MPEG2 and DV; the native audio decoder inventory remains recorded.
Audio encoders are AAC, LAME MP3 and Opus. libvpx VP8 is the only video encoder.
These compiled components do not claim that every profile, browser or file is
supported by the product. Application support requires real-media acceptance.
H264/HEVC/VP8/VP9 may be copied without picture re-encoding; VP8 transcoding
is available for other verified inputs. Browser playback remains device-specific.
Protocols are limited to file,pipe, with no network protocols. The core is
single-threaded WASM SIMD with 32 MiB initial memory, an explicit 2 MiB stack and memory growth.

HOST: macOS Apple Silicon, Apple Command Line Tools, Python 3.9+, several GiB
free disk. Use a writable work directory without spaces. The fixed official
LLVM/Binaryen SDK and native Node 22.23.1 are verified before use. Compiler
binaries are standard separate build tools, not product runtime source inputs.
Bootstrap installs pinned Emscripten npm dependencies using empty local npm
configuration, and builds runtime libraries from the supplied source in its own
empty EM_CACHE; it does not use the SDK precompiled runtime cache.

OFFLINE SOURCE VALIDATION
  python3 scripts/bootstrap.py --self-check

CLEAN BUILD (from the extracted audio-studio-core-source-r2 directory)
  python3 scripts/bootstrap.py --work-dir ./work
  python3 scripts/build-core.py --work-dir ./work --jobs 8
  python3 scripts/compare-artifacts.py --output-dir ./work/output

Reuse existing verified compiler downloads when available:
  python3 scripts/bootstrap.py --work-dir ./work --sdk-archive /path/to/wasm-binaries-arm64.tbz2 --node /path/to/node

The default build phases are libraries, vpx, ffmpeg and link. All compilation,
configuration, CLI overrides and the ffprobe-return patch are in these scripts.
Outputs are work/output/ffmpeg-core.js and work/output/ffmpeg-core.wasm.
The sources.json input archives retain their own source licenses and notices.
The Emscripten derived archive omits only test/third_party and site; its original
upstream lock, derivation script and full retained/removed-member records are
included unchanged. Those two omitted trees are not needed by this recipe.

MODIFY AND REBUILD
  python3 scripts/build-core.py --work-dir ./work ffmpeg link
  python3 scripts/build-core.py --work-dir ./work libraries vpx ffmpeg link

RELINK WITH REPLACEMENT WASM ARCHIVES
  python3 scripts/relink.py --work-dir ./work --library mp3lame=/path/libmp3lame.a --library opus=/path/libopus.a --library vpx=/path/libvpx.a
The same helper accepts avcodec, avfilter, avformat, avutil, swresample and
swscale. Prepared source objects and link arguments are retained. Relink writes
to work/relinked and never overwrites the original work/output by default.

Actual build, runtime capability, source validation and relink records belong
in receipts/ and the release manifest. Byte-for-byte independent reproduction
is a separate result and must not be inferred from fixed inputs. No production
credentials, media uploads, database records, provider jobs or paid calls are
used by these build scripts. This component is provided without warranty under
its applicable licenses; this source package does not determine the license
scope of unrelated application code. Earlier r1 source/runtime bytes remain
unchanged in their own release, rather than being silently overwritten.

STACK REGRESSION AND FIX
The original implicit Emscripten 3.1.40 default is 64 KiB. A real stereo MP3
from VP8/Opus extraction plus the full pad/trim filter chain caused Opus encode
to trap with memory access out of bounds. An explicit 48 kHz output rate did
not fix it. With identical source objects and library archives, relinking a
2 MiB stack makes the same minimal and complete commands pass. The published
recipe includes -sSTACK_SIZE=2MB; initial memory, memory growth, single-thread
settings, file/pipe protocol restrictions and application timeouts remain.
The change and reproductions are documented separately in receipts/.

Video trim is explicitly enabled because FFmpeg -t inserts a trim node in
video transcode filtergraphs. Actual timed VP8+Opus AVI tests are required;
a filter inventory alone does not establish this path.

FINAL LOCAL BROWSER ACCEPTANCE
The final core passed 14 audio and 15 video Chrome cases, including actual
300-second normalized output from 301-second M4A/AAC files, HEVC/H264 copy,
VP8/VP9 WebM, MPEG4/MJPEG AVI transcode, cover art, selected first audio track,
non-zero timestamps, rotation and sample aspect ratio. Video vocals were the
prepared original audio as a local mock; these tests do not claim real AI
separation, all profiles, all browsers, paid processing or production billing.
See receipts/browser-codec-acceptance.json for exact scope and case summaries.
