# Corresponding source for @ffmpeg/core 0.12.10 (single-threaded)

Every file listed in SHA256SUMS. Revisions, licences and provenance: ../compliance-manifest.json.

## Reassemble split archives

    cat FFmpeg-n5.1.4.tar.gz.part0 FFmpeg-n5.1.4.tar.gz.part1 > FFmpeg-n5.1.4.tar.gz
    cat harfbuzz-5.2.0.tar.gz.part[0-4] > harfbuzz-5.2.0.tar.gz
    cat emscripten-3.1.40.tar.gz.part[0-3] > emscripten-3.1.40.tar.gz
    cat SDL-release-2.24.2.zip.part0 SDL-release-2.24.2.zip.part1 > SDL-release-2.24.2.zip
    sha256sum -c --ignore-missing SHA256SUMS

## Build

1. Extract `ffmpeg.wasm-71aa99d.tar.gz`. It contains the `Dockerfile`, `Makefile`, `build/*.sh`, the
   modified FFmpeg command-line sources (`src/fftools`) and JavaScript bindings (`src/bind`).
2. The upstream Dockerfile fetches each library with `ADD <git url>#<ref>`. To build from this package
   instead, replace each `ADD` with `COPY` of the matching extracted archive to `/src` (the FFmpeg archive
   for the `ffmpeg-base` stage; zimg via `COPY` instead of `git clone`).
3. Run `make prd` (Docker buildx; base image `emscripten/emsdk:3.1.40`). Output: `packages/core/dist/esm/`.

The Emscripten archive is included because its system libraries and JS runtime are compiled into the
binary; the prebuilt clang/LLVM binaries in the emsdk image are not included.
