Skip to content

在vite中,借助WASM,在前端通过ffmpeg实现视频转码

Notifications You must be signed in to change notification settings

Zero-Qi/viteffmpegwasm

Repository files navigation

ffmpeg + vite

这个模板能够帮助你在前端实现ffmpeg解码功能

生产环境需要设置https + nginx请求头设置

Cross-Origin-Opener-Policy same-origin

Cross-Origin-Embedder-Policy require-corp

开发环境下 需要使用插件configure-response-headers即可

start

npm install

npm run dev

ffmpeg api docs address 参考资料:https://github.com/ffmpegwasm/ffmpeg.wasm/blob/master/docs/api.md

希望能帮助到你~

About

在vite中,借助WASM,在前端通过ffmpeg实现视频转码

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published