Skip to content

Commit 74db7cc

Browse files
古 晖poxiao
andauthored
feat: add OpenVideo editing mini app and corresponding source (#38)
Assisted-by: codex-cli reason:openvideo-community-submission Co-authored-by: poxiao <poxiao@minimaxi.com>
1 parent 7121d1f commit 74db7cc

850 files changed

Lines changed: 530921 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ The MiniMax Code Agent communicates through the host MCP client. Business reques
6262
| MiniApp | What it does | Author |
6363
| --- | --- | --- |
6464
| [MiniMax Photo](plugins/webguhui/minimax-photo/) | Layered image editing with an in-app AI assistant, local recovery and programmatic editing tools | [WebGuHui](https://github.com/WebGuHui) |
65+
| [OpenVideo](plugins/webguhui/openchatcut/) | Local video editing with captions, a host Agent assistant, reviewable timeline edits, and MP4/MP3 export | [WebGuHui](https://github.com/WebGuHui) |
6566
| [AI Office](plugins/cristinamadureira353-svg/ai-office/) | Manage five model-powered employees in a pixel office: client tasks, chats, breaks, meetings and quota-aware offline states; uses your own API keys | [最爱双皮奶](https://github.com/cristinamadureira353-svg) |
6667
| [Token Usage Board](plugins/amszuidas/mcode-token-usage-board/) | Explore local Token usage by date, model, and session, including input, output, and cache usage | [amszuidas](https://github.com/amszuidas) |
6768
| [Token Usage Board](plugins/yanhy2000/mcode-usage-monitor/) | Watch local Token usage, output speed, and cache hit rate in near real time; filter by time range, model, and session | [yanhy2000](https://github.com/yanhy2000) |

‎README.zh-CN.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ MiniMax Code Agent 通过宿主 MCP 客户端与 MiniApp 协作。业务请求
6363
| MiniApp | 功能 | 作者 |
6464
| --- | --- | --- |
6565
| [MiniMax Photo](plugins/webguhui/minimax-photo/) | 图层图片编辑、应用内 AI 助手、本地恢复与程序化编辑工具 | [WebGuHui](https://github.com/WebGuHui) |
66+
| [OpenVideo](plugins/webguhui/openchatcut/) | 本地视频剪辑、字幕、宿主 Agent 助手、可预览的时间线修改与 MP4/MP3 导出 | [WebGuHui](https://github.com/WebGuHui) |
6667
| [AI 事务所](plugins/cristinamadureira353-svg/ai-office/README.zh-CN.md) | 五位真实模型员工的像素事务所:接单、聊天、休息和开会,额度耗尽时角色暂停;使用玩家自己的 API Key | [最爱双皮奶](https://github.com/cristinamadureira353-svg) |
6768
| [Token 用量看板](plugins/amszuidas/mcode-token-usage-board/README.zh-CN.md) | 按时间、模型和会话查看本机 Token 用量,包含输入、输出和缓存用量 | [amszuidas](https://github.com/amszuidas) |
6869
| [Token 用量看板](plugins/yanhy2000/mcode-usage-monitor/README.zh-CN.md) | 近实时查看本机 Token 用量、输出速度与缓存命中率,可按时间范围、模型和会话筛选 | [yanhy2000](https://github.com/yanhy2000) |
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"schemaVersion": 1,
3+
"name": "openchatcut",
4+
"displayName": "OpenVideo",
5+
"version": "1.0.0",
6+
"description": "本地优先的视频编辑工作室:多轨剪辑、字幕、特效、Agent 与视频导出。基于 OpenChatCut(AGPL-3.0-or-later)移植。",
7+
"author": "WebGuHui (OpenVideo adaptation); OpenChatCut contributors",
8+
"icon": "icon.png",
9+
"category": "Studio",
10+
"exampleQueries": [
11+
"打开视频工作室",
12+
"读取当前视频工程并提出剪辑方案"
13+
],
14+
"apps": [],
15+
"mcpServers": [
16+
"servers.mcp.json"
17+
],
18+
"skills": []
19+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# OpenVideo 安装与下载源
2+
3+
从社区仓库复制完整的 `plugins/webguhui/openchatcut/` 目录。应用主体共用一个包,首次打开自动识别系统和芯片,再安装对应的媒体处理组件,不需要用户安装 Node、npm、FFmpeg 或编译工具。
4+
5+
首次打开选择“中国大陆下载源”或“海外下载源”。宿主暂未提供区域字段,因此不根据语言、时区猜测用户位置。选择会保存在应用数据目录;后续启动复用已验证缓存,不重复下载。下载失败时可切换来源重试,不会自动把国内请求转到海外。
6+
7+
国内:npm 包使用 registry.npmmirror.com,FFmpeg 使用其 binary 镜像。海外:registry.npmjs.org 与 FFmpeg 官方 GitHub release。两种来源使用同一固定版本和官方摘要清单,校验失败不得安装。安装只解压文件,不运行 npm 生命周期脚本,不修改 PATH 或全局依赖。
8+
9+
平台清单包含 macOS arm64、macOS x64、Windows x64、Linux x64/arm64(glibc)。Windows ARM64 原生进程和 Linux musl 暂不支持,会明确提示。平台识别依据宿主运行进程的架构。当前实测机器只有 macOS Apple Silicon,其他系统尚待实机验收。
10+
11+
核心版本:Remotion compositor 4.0.509、sqlite-vec 0.1.9、FFmpeg/FFprobe 发布资产 b6.1.1(各平台二进制的版本输出以发行资产为准)。清单:`miniapp/node/native-dependencies.json`。npm 包使用发布 metadata 的 sha512 integrity;FFmpeg 文件使用 GitHub release asset 的 SHA-256。更新版本必须重新核对官方摘要,不能用镜像下载结果自行生成新的可信摘要。
12+
13+
Mini App 的字幕识别使用浏览器实现;未使用的 whisper-cli 原生程序不再随包携带。语音模型下载与其他已有在线服务不属于本次核心依赖安装改动,不应宣称这些功能全部具备国内镜像。
14+
15+
## 维护与打包
16+
17+
源码、固定上游版本和重建命令见本仓库 `sources/webguhui/openchatcut/README.md`。安装用户无需构建。
18+
19+
在应用根目录运行 `node scripts/verify-installer.mjs` 验证下载源、摘要拒绝、不支持平台和取消安装。完整验证还需在干净数据目录实际下载并启动,导出媒体,然后断网重启验证缓存。
20+
21+
依赖保存在 `<dataDir>/dependencies/<platform>-<manifest-hash>`,运行文件展开到 `<dataDir>/runtime/<buildId>`;这两个目录为可重建缓存,工程和素材在其他目录。不要为了重新安装删除整个 dataDir。首次准备过程中关闭应用会取消下载,未完成的临时目录会清理。
22+
23+
## 可选资源按需下载
24+
25+
艺术字体、内置音效、语音试听,以及随编辑器提供的浏览器 AI 模型与 WASM,改为首次使用时下载。默认 Noto Sans SC 字体继续随包提供。资源来自开平国内 `filecdn.minimax.chat` 或开平海外 `file.cdn.minimax.io`;在“设置与关于 → 资源下载”中可随时切换,沿用首次安装时的区域选择。
26+
27+
原工程中的 `/fonts/`、`/sound-effects/` 等地址不变。应用在本地代理下载并校验压缩文件和解压后文件,缓存到 `<dataDir>/resources/<manifest-hash>`;导出前补齐工程引用的字体与素材,渲染器使用相同资源。下载失败会阻止对应操作并显示错误,修复网络或切换源后重新执行即可。不要删除工程数据来重试。已下载资源可离线复用,未下载资源首次仍需联网。宿主大模型、在线生成和第三方可选模型服务不因此变为离线功能。
28+
29+
维护资源时,先运行 `node scripts/prepare-resources.mjs <完整 client 目录> <临时上传目录>`,通过上传页面分别上传到开平国内和海外。将页面真实返回的 URL 写入 `miniapp/node/resource-manifest.json`,逐项下载核对 SHA-256;禁止猜测 CDN 地址。打包末尾自动剥离清单资源;任何文件内容变化、缺少区域 URL 都会使打包失败,必须重新上传。字体和模型许可证继续保留在包内。
30+
31+
## AI 草稿与多个会话
32+
33+
草稿属于当前工程,不绑定某条 MCP 连接。重新连接或另一会话继续处理时,先列出并读取现有草稿,再继续修改。
34+
35+
读取草稿会返回已有操作摘要,以及草稿创建后正式工程发生的变化。另一会话修改过草稿时,旧会话必须重新读取;同时写入会被暂时拒绝。正式工程版本改变后仍保留原有冲突检查,不自动覆盖或声称已合并。用户确认前,草稿不会写入正式工程。
36+
37+
## 精简包
38+
39+
服务端 JavaScript 依赖编译合并,删除调试映射与类型声明;保留许可证及第三方声明。原生组件和可选资源仍按需下载,不提高宿主原有包上限。构建后必须使用宿主包校验,并实际启动、导出,不能仅根据压缩包大小判断可用性。

0 commit comments

Comments
 (0)