How-to guides¶
Goal-oriented, practical recipes for someone who already knows the basics. Each guide solves one specific problem.
Available:
- Obtain a wasm module — supply the ffmpeg-wasi module from a file,
bytes, an afero fs, or a URL with checksum-verified caching (
WithModuleURL). - Run ffmpeg over an in-memory filesystem — build a
Runtime, supply the module (WithModuleFile/WithModuleBytes/WithModuleFS), transcode against anafero.MemMapFs, probe a file, and cancel a render. - Compose a command with the builder — assemble any
invocation (inputs / filtergraph / outputs) as typed data and run it with
RunJob(JobSpec()).
The WASM engine itself — current FFmpeg compiled to wasm32-wasi, with its process/probe
job spec — is the companion ffmpeg-wasi project;
grab a released module via obtain a module.