1
2
3
4
5
6
7
8
9
10
import { fetchFile, toBlobURL } from "https://esm.sh/@ffmpeg/util";
import { FFmpeg } from "https://maxm-emeraldox.web.val.run/@ffmpeg/ffmpeg";
console.log("loaded");
const ffmpeg = new FFmpeg();
await ffmpeg.load({
coreURL: "https://esm.sh/@ffmpeg/core-st@0.11.1/dist/ffmpeg-core.js",
wasmURL: `https://esm.sh/@ffmpeg/core@0.12.6/dist/umd/ffmpeg-core.wasm`,
});
console.log(FFmpeg, fetchFile, toBlobURL);
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
July 12, 2024