Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I import from esm.sh? Seems like it would be easier than unpkg.com examples which give a 404 #770

Open
ralyodio opened this issue Aug 1, 2024 · 2 comments

Comments

@ralyodio
Copy link

ralyodio commented Aug 1, 2024

	const baseURL = 'https://esm.sh/v135/@ffmpeg/[email protected]/es2022/';

		await ffmpeg.load({
			coreURL: await toBlobURL(`${baseURL}/core-mt.mjs`, 'text/javascript'),
			wasmURL: await toBlobURL(`${baseURL}/ffmpeg-core.wasm`, 'application/wasm'),
			workerURL: await toBlobURL(`${baseURL}/ffmpeg-core.worker.js`, 'text/javascript')
		});

This file: ffmpeg-core.worker.js is missing not sure where it lives. I can't find it anywhere. I only see a worker.ts but no build output that I can find.

@izogfif
Copy link

izogfif commented Sep 18, 2024

You can build ffmpeg.wasm manually and then find the results in folder ffmpeg.wasm/packages/core/dist/esm.

@opheliagame
Copy link

@ralyodio
https://ffmpegwasm.netlify.app/docs/getting-started/installation
the documentation page here says that you cannot use it from a cdn and self hosting is the best option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants