Skip to content

feat: add video subtitle removal model - #28

Merged
lingozhi merged 4 commits into
mainfrom
codex/video-subtitle-removal
Jul 30, 2026
Merged

feat: add video subtitle removal model#28
lingozhi merged 4 commits into
mainfrom
codex/video-subtitle-removal

Conversation

@lingozhi

Copy link
Copy Markdown
Owner

⚠️ 提交说明 / PR Notice

Important

  • 本描述已按实际实现和验证结果人工整理。

📝 变更描述 / Description

接入 DepthMedia 视频硬字幕去除能力,公开模型名为 subtitle-remove。网关将统一任务请求转换为上游 remove_subtitles 操作,支持 bottomfull 两种扫描区域,并在提交时按 600 秒预扣、完成后依据上游 frames / fps 按实际视频秒数结算。

模型广场新增对应参数、按秒价格、异步轮询示例和一键复制接入文档;同时补齐现有语言包。请求校验会拒绝无意义的 scale,并在转发前规范化枚举值。

🚀 变更类型 / Type of change

  • 🐛 Bug 修复 (Bug fix)
  • ✨ 新功能 (New feature)
  • ⚡ 性能优化 / 重构 (Refactor)
  • 📝 文档更新 (Documentation)

🔗 关联任务 / Related Issue

✅ 提交前检查项 / Checklist

  • 人工确认: 我已亲自整理并撰写此描述,没有直接粘贴未经处理的 AI 输出。
  • 非重复提交: 已检查当前仓库未存在同类提交。
  • Bug fix 说明: 本 PR 不归类为 Bug fix。
  • 变更理解: 已核对请求转换、异步轮询、预扣和结算链路。
  • 范围聚焦: 仅包含视频去字幕接入及其文档、模型广场和测试。
  • 本地验证: 完整 Go 测试、前端类型检查、定向 lint、前端测试和生产构建均通过。
  • 安全合规: 未提交敏感凭据。

📸 运行证明 / Proof of Work

  • go test ./... 通过。
  • bun run typecheck 通过。
  • DepthMedia 模型广场测试 8/8 通过。
  • bun run build 通过。
  • 上游真实任务完成:remove_subtitles,90 帧 / 30 FPS,返回 MP4 结果 URL。

@lingozhi
lingozhi merged commit 5a88577 into main Jul 30, 2026
1 check passed
@lingozhi
lingozhi deleted the codex/video-subtitle-removal branch July 30, 2026 10:24
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

Successfully merging this pull request may close these issues.

1 participant