An audio/video toolkit built with pure web technologies, planned to include creation, editing, and exporting capabilities, applicable to products like live streaming, tutorial recording, video clipping, etc.
使用纯 Web 技术构建的音视频工具,计划包含创建、编辑、导出功能,可应用于直播、教程录制、视频剪辑等产品中。
Chrome 94 released the WebCodecs API, meaning JS can now handle audio/video as well. Before this, frontend developers could only use ffmpeg.wasm in limited scenarios. Through simple tests of decoding and re-encoding videos, it was found WebCodecs has 20x the performance of ffmpeg.wasm.
WebAV is compatible with Chrome 102 and above due to the use of the new OPFS API.
Chrome 94 开放了 WebCodecs API,意味着 JS 也能处理音视频了。在此之前,前端开发在会在有限的场景使用 ffmpeg.wasm,经过简单地测试解码和重编码视频发现,WebCodecs 性能是 ffmpeg.wasm 的 20 倍。
WebAV 兼容 Chrome102 及以上版本,因为使用 opfs 新 API。
This is an experimental project attempting to provide easy-to-use APIs for handling audio/video data in the browser. The project is under active development, feel free to open issues to report bugs or suggest new features.
这是一个实验性项目,尝试提供简单易用的 API 在浏览器中处理音视频数据。项目正在积极迭代,可提交 issue 来反馈 Bug 和新功能建议。
DEMO
Here you can find rich demos that you can experience online immediately.
这里有丰富的可立即在线体验的 DEMO。
Articles by the author (zh_CN)
作者写的相关文章
Web 音视频知识图谱
Recorder AVRecorder
Record video from MediaStream, AVCanvas, export to MP4
音视频剪辑 AVCliper
This repo uses lerna + yarn to manage packages.
yarn install in root directoryyarn build in root directorycd packages/av-cliperyarn devhttp://localhost:6066/packages/av-cliper/demo dir, like concat-media.htmlhttp://localhost:6066/concat-media.html当前仓库是使用 lerna + yarn 管理 packages。
yarn installyarn buildcd packages/av-cliperyarn devhttp://localhost:6066/packages/av-cliper/demo 目录下的文件名,如 concat-media.htmlhttp://localhost:6066/concat-media.html若你有意贡献代码,建议先跟通过 Github Issue、Discussions、微信(liujun_fenghen)与作者讨论
如果该项目对你有帮助,扫描二维码请作者喝奶茶 :)
If this project has been helpful to you, please scan the QR code to treat the author to a milk tea :)
加微信 liujun_fenghen 备注 WebAV 邀请进入微信群
$ claude mcp add WebAV \
-- python -m otcore.mcp_server <graph>