Media Playground#

Run:

pnpm playground

Then open http://127.0.0.1:4173.

Media Bench playground

The workbench is a ffmpac test surface. It does not use browser-native media encoders as a substitute; static hosting runs the browser ffmpac bundle in a dedicated worker.

What It Does#

Presets#

MP3 extract is a normal ffmpac render path using the bundled LAME encoder.

Smaller MP4 video downscales with FFmpeg's native MPEG-4 encoder. The quality menu maps to -q:v, where Small uses a higher quantizer and High uses a lower quantizer.

Local Safety#

The playground server binds to 127.0.0.1 and protects render APIs with a per-server request token embedded into the served page. Cross-origin pages cannot trigger uploads or FFmpeg work without that token.

The browser client and ffmpac worker are written in TypeScript and compiled by pnpm compile, so tsgo, oxlint, and oxfmt cover the workbench code.