lab-core-1: controlled FFmpeg/x264 build and corresponding source This is a custom, reduced, single-threaded FFmpeg WebAssembly core. It is built from the exact source archives supplied in this directory. It is not the precompiled npm @ffmpeg/core binary. Two clean source builds in separate directories produced identical JS and WASM bytes. Real media tests and all 19 application harness checks passed. No written future source offer is made. SOURCE INPUTS - FFmpeg 5.1.4: 4729204c17f756e186d622060088371d10b34f7e. - x264: 33cac6b77d5b9259c552156013a817ab23119612. - ffmpeg.wasm v12.15 command/binding sources: 71aa99d37c02a7b4c435275ca9ef50e612f6efa1. - Emscripten 3.1.40 runtime/system-library sources: 5c27e79dd0a9c4e27ef2326841698cdd4f6b5784. manifest.json identifies every distributed .tar.xz archive, immutable revision, upstream download URL, exact bytes, and SHA-256. Original upstream .tar.gz checksums remain under upstream_original_archive. FFmpeg, x264 and bindings are losslessly recompressed: the tar streams are byte-identical. Emscripten is a derived packet retaining every non-test entry, test notices/readmes and test/hello_world.c. Only 4,708 other unlinked test files are omitted. Its complete src/, system/, tools/, root files and all other non-test entries remain unchanged. File-by-file content and metadata verification is in emscripten-packet-verification.json; the full original archive remains downloadable at its immutable upstream URL. No runtime/library code, build recipe or required emcc helper was removed. License and copyright notices for retained sources are preserved, along with all test notices named in the manifest. Source files are immediately downloadable beside the binary; recipients do not have to request them later. SOURCE VERIFICATION All 242 x264 files, 7,814 FFmpeg files and 299 bindings-project files present in the original source archives were compared after the successful build: none were changed or missing. The script adds configured/generated files and copies the pinned command/binding directories unchanged into the FFmpeg build tree. SDK src/, system/lib/ and system/include/ were compared to the supplied pinned Emscripten source: 3,638 files matched, zero differed, and two non-build .clang-format files were absent from the SDK. Reports are supplied here. TOOLCHAIN Official Emscripten 3.1.40 Linux SDK archive: https://storage.googleapis.com/webassembly/emscripten-releases-builds/linux/c3122846bb040798aab975f61008c37eb19476de/wasm-binaries.tbz2 Bytes: 352458204 SHA-256: 5501e750c92f5a54b27ee101f6816e7416f154cb4181b73fd0be3faae947016c The 3.1.40 emsdk manifest and version mapping identify this archive. The installed compiler reports the exact Emscripten source commit above. Compiler binaries are not redistributed in this source packet; the runtime and system library source that contributes to the output is included. Tested build environment: Linux x86_64, Node.js 24.22.1, Python 3.12.14, Bash, make, pkg-config, Git and normal Unix utilities. The SDK supplies Clang/LLVM; Docker, CMake, autoconf and a separate host C/C++ compiler are not needed. VERIFY AND EXTRACT Run sha256sum -c SHA256SUMS in this source directory. All four distributed source packets are complete .tar.xz files: no concatenation or split parts are required. Verify each file against archive_sha256 before extracting with tar -xJf. Every distributed file is smaller than 20 MiB. To independently confirm the distributed tar bytes, run xz -dc ARCHIVE.tar.xz | sha256sum and compare with uncompressed_tar_sha256 in manifest.json. BUILD FROM CLEAN SOURCE 1. Create an empty build directory with src/, sdk/, prefix/, downloads/, output/ and logs/. Copy build-minimal.sh into this build directory. 2. Extract the FFmpeg archive into src/ffmpeg/, the x264 archive into src/x264/, and the ffmpeg.wasm archive into src/bindings/. Strip each archive's single leading directory when extracting. For example: tar -xJf FFmpeg--FFmpeg--4729204c17f756e186d622060088371d10b34f7e.tar.xz --strip-components=1 -C src/ffmpeg tar -xJf ffmpegwasm--x264--33cac6b77d5b9259c552156013a817ab23119612.tar.xz --strip-components=1 -C src/x264 tar -xJf ffmpegwasm--ffmpeg.wasm--71aa99d37c02a7b4c435275ca9ef50e612f6efa1.tar.xz --strip-components=1 -C src/bindings 3. Download and verify the exact official SDK archive above. Extract it into sdk/, stripping its leading install/ directory. The paths sdk/bin/ and sdk/emscripten/emcc must exist. Emscripten's separate source archive is included for source availability/modification, not as a compiler binary. 4. Run bash build-minimal.sh. It writes a build-local Emscripten configuration, uses only the local SDK and inputs, and sets SOURCE_DATE_EPOCH=1736251200. It does not change global shell configuration or fetch packages. 5. Outputs are output/lab-core-1.js and output/lab-core-1.wasm. Verify their hashes against manifest.json. Configuration headers are also supplied. BUILD CHANGES AND SCOPE build-minimal.sh, authored 2026-11-03, adapts the original build recipe in the pinned ffmpeg.wasm source archive. No upstream C or JavaScript source files were edited. The custom configuration enables only the listed native codecs, formats, filters and protocols, links external x264 only, and omits SDL and unused external libraries. The script is the complete actual compilation/link recipe; the original upstream scripts remain inside their source archive. The output uses single-threaded SIMD WebAssembly, starts with 32 MiB memory, and permits growth up to 512 MiB. It does not require SharedArrayBuffer or cross-origin-isolation headers. SUPPORTED MEDIA SCOPE Tested inputs: MP4 H.264/AAC, WebM VP8/Opus, WebM VP9/Opus, silent video, anamorphic video and PCM WAV decoding. The clip API still requires a video track and rejects standalone audio. The configured native decoder set also includes HEVC, MPEG-4/H.263, MPEG-2, MJPEG, ProRes, MP3, Vorbis, FLAC, ALAC and selected PCM formats. This is intentionally narrower than the original full npm core; unsupported codecs fail without an external-service fallback. The only clip output is H.264 8-bit YUV420 MP4, up to 1280x720 and 30 fps, with 48 kHz stereo AAC when audio exists. HDR/BT.2020 inputs are rejected rather than silently converted without tone mapping. File/range limits remain in the readable application modules. VALIDATION candidate-validation.json records independent real-WASM media tests. app-validation.json records the full application harness (19 checks). reproducibility.json records the byte-identical clean-build comparison. The independent probes/fixtures use native ffmpeg/ffprobe solely for testing; actual clipping always executes this compiled WASM. To rerun the candidate media tests, copy test-candidate.mjs, lab-clips.js and lab-clips-worker.js next to build-minimal.sh and run node test-candidate.mjs after building, with native ffmpeg/ffprobe available. Browser/device validation is separate from Node tests. LICENSES The configured FFmpeg/x264 core is GPL-2.0-or-later. Refer to the included GPL/LGPL texts, x264 COPYING, MIT bindings notice and Emscripten/third-party notices. It is not an MIT-only distribution. No warranty is provided. license-notices.tar.gz is a convenient extract; the complete original sources preserve all notices. Keep this source packet and notices available alongside the corresponding binary. This records technical source correspondence and licensing materials; it is not a legal certification or patent opinion.