diff --git a/README.md b/README.md index cd78949..65cfb81 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ai-video-editor +# Timeline Studio — Browser AI Video Editor Language: **English** | [中文](README.zh-CN.md) @@ -7,7 +7,7 @@ Language: **English** | [中文](README.zh-CN.md) [![GitHub forks](https://img.shields.io/github/forks/MartinDelophy/ai-video-editor?style=flat-square)](https://github.com/MartinDelophy/ai-video-editor/forks) [![MIT License](https://img.shields.io/github/license/MartinDelophy/ai-video-editor?style=flat-square)](LICENSE) -A browser-first AI video editor for image/video timelines, AI voiceover generation, captions, source audio, background music, and MP4/WebM export. The current prototype is inspired by modern dark timeline editors such as CapCut, but focuses on client-side AI voiceover and lightweight video editing workflows. +A local-first, browser-based AI video editor with ONNX voiceover generation, Whisper automatic captions, JoyVASA + LivePortrait talking avatars, multi-track timeline editing, and MP4/WebM export. Timeline Studio runs its core AI workflows directly in the browser and is inspired by modern editors such as CapCut. ## Demo Video @@ -39,8 +39,12 @@ A browser-first AI video editor for image/video timelines, AI voiceover generati - Arrange, reorder, split, delete, and resize visual clips on the image/video track. - Preview a project even before generating voiceover audio. - Generate AI voiceover from typed scripts. -- Align generated audio, captions, and visual clips on the timeline. +- Insert every generated voiceover at the current playhead without replacing existing audio. +- Automatically create additional voiceover and caption lanes when clips overlap, then compact them again when overlaps are removed. +- Keep generated captions bound to their matching voiceover clip when moving, duplicating, or deleting it. +- Edit voiceover clip position, volume, fade-in, and fade-out from a dedicated context panel. - Edit captions by dragging, hiding, deleting, and changing placement or size. +- Navigate a dynamic 30-minute default timeline that expands for longer projects and supports frame-level zoom. - Upload video and separate its original audio onto a dedicated source-audio track. - Add background music on a dedicated music track. - Browse generated sticker packs in a 3x3 infinite-loading sticker panel. @@ -64,6 +68,7 @@ A browser-first AI video editor for image/video timelines, AI voiceover generati - Added browser-side automatic caption groundwork using Whisper ONNX workers, plus timeline snapping/alignment improvements for captions, source audio, and generated voiceover. - Added lazy-loaded YOLOS tiny and MODNet vision workers with subject overlays, portrait matting, caption avoidance, and preview/export-consistent smart crop geometry. - Added an end-to-end browser talking-avatar pipeline: JoyVASA audio-to-motion ONNX, LivePortrait WebGPU rendering, adaptive 1–2fps neural keyframes, safe frame holding at the output frame rate, and automatic visual-track replacement. +- Added playhead-based multi-voiceover insertion, automatic overlapping audio/caption lanes, linked caption movement, audio clip properties, and a dynamically expanding 30-minute timeline. - Moved the 906MB avatar model bundle to the revision-pinned [Timeline Studio ONNX model repository](https://huggingface.co/haixin/timeline-studio-onnx-models/tree/a201b681c8f96672b5c3f624e32d4dc932f150af), keeping large model binaries out of this Git repository. ## AI Features @@ -73,7 +78,7 @@ Current AI capabilities are designed to run in the browser as much as possible: - Text-to-speech with ONNX/browser engines. - Chinese voiceover via Piper/VITS browser ONNX models. - English voice options via Kokoro 82M ONNX. -- Automatic caption generation groundwork with Whisper small q8 ONNX running through a browser worker. +- Automatic caption generation with Whisper small q8 ONNX running through a browser WASM worker, waveform-aware timestamp snapping, and conservative Chinese homophone cleanup. - Lightweight voice preview and generation history restore. - Script-to-caption timeline alignment based on generated audio duration. - Browser voice recording for manually captured narration. @@ -207,19 +212,6 @@ npx netlify-cli deploy --prod --dir=dist - publish directory: `dist` - SPA fallback redirect to `index.html` -## Repository Hygiene - -The following are intentionally excluded from git: - -- `node_modules/` -- `dist/` -- `qa/` -- local downloads, screenshots, and generated QA media -- `.netlify/` -- local npm cache and machine-specific config -- local Codex/agent notes -- large avatar ONNX binaries, which are hosted in the revision-pinned Hugging Face model repository - ## License Released under the [MIT License](LICENSE). You may use, modify, and distribute this project with attribution. diff --git a/README.zh-CN.md b/README.zh-CN.md index 11c00af..313c87c 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -1,4 +1,4 @@ -# ai-video-editor +# Timeline Studio — 浏览器 AI 视频编辑器 语言:[English](README.md) | **中文** @@ -7,7 +7,7 @@ [![GitHub Forks](https://img.shields.io/github/forks/MartinDelophy/ai-video-editor?style=flat-square)](https://github.com/MartinDelophy/ai-video-editor/forks) [![MIT License](https://img.shields.io/github/license/MartinDelophy/ai-video-editor?style=flat-square)](LICENSE) -一个浏览器优先的 AI 视频编辑器,支持图片/视频时间线、AI 配音、字幕、视频原声、背景音乐以及 MP4/WebM 导出。当前原型参考了 CapCut/剪映一类深色时间线编辑器,但重点放在 Web 端 AI 配音和轻量视频编辑流程。 +一个本地优先的浏览器 AI 视频编辑器,支持 ONNX AI 配音、Whisper 自动字幕、JoyVASA + LivePortrait 数字人、多轨时间线以及 MP4/WebM 导出。核心 AI 流程直接在浏览器运行,交互参考 CapCut/剪映等现代时间线编辑器。 ## 演示视频 @@ -39,7 +39,11 @@ - 图片/视频轨道支持多片段、拖拽排序、切分、删除和缩放时长。 - 无需先生成配音,也可以播放图片/视频时间线预览。 - 可根据输入文案生成 AI 配音。 -- 可将生成音频、字幕和视觉片段在时间线上对齐。 +- 每次生成的配音会按当前播放头新增,不会替换已有音频。 +- 配音或字幕发生时间重叠时自动创建新子轨,不再重叠后自动收拢。 +- 生成字幕与对应配音片段绑定,移动、复制或删除配音时同步联动。 +- 选中配音片段后,可在右侧调整时间轴位置、音量、淡入和淡出。 +- 默认使用可动态扩展的 30 分钟时间轴,并支持放大到帧级刻度。 - 字幕可拖动、隐藏、删除,并支持位置和字号调整。 - 上传视频后,可把视频原声分离到独立原声轨。 - 支持独立背景音乐轨。 @@ -59,6 +63,7 @@ - 完成 JoyVASA 音频到运动 ONNX 与 LivePortrait WebGPU 的浏览器端到端数字人链路。 - 使用自适应 1–2fps 神经关键帧、输出帧保持和画面轨自动替换,避免整张人脸交叉淡化造成重影。 - 将约 906MB 数字人模型迁移到锁定 revision 的 [Timeline Studio ONNX 模型仓库](https://huggingface.co/haixin/timeline-studio-onnx-models/tree/a201b681c8f96672b5c3f624e32d4dc932f150af),Git 仓库不再保存大模型二进制文件。 +- 新增播放头位置配音插入、音频/字幕自动分轨、绑定字幕联动、音频片段属性面板和动态 30 分钟时间轴。 ## AI 功能 @@ -67,6 +72,7 @@ - 基于 ONNX/browser engine 的文本转语音。 - 中文配音方向:Piper/VITS browser ONNX 模型。 - 英文配音方向:Kokoro 82M ONNX。 +- Whisper small q8 ONNX 自动字幕,使用 WASM Worker、波形能量时间戳吸附和保守的中文同音词清理。 - 轻量语音预览和生成历史恢复。 - 根据生成音频时长对齐文案字幕时间线。 - 浏览器录音,可手动录制旁白并写入配音轨。 @@ -101,8 +107,7 @@ MODNet 主要面向人像抠图,YOLOS tiny 覆盖 COCO 常见类别。图片 计划或值得支持的 AI 能力: -- 上传视频和录音的自动语音识别。 -- 自动生成字幕和字幕翻译。 +- 字幕翻译和多语言字幕润色。 - 面向营销、教育、短视频、产品演示等场景的 AI 文案生成和改写。 - 声音克隆或自定义说话人适配,并提供明确授权和隐私控制。 - 多角色配音和对话生成。 @@ -192,19 +197,6 @@ npx netlify-cli deploy --prod --dir=dist - 发布目录:`dist` - SPA fallback redirect 到 `index.html` -## 仓库文件管理 - -以下内容会被刻意排除在 git 之外: - -- `node_modules/` -- `dist/` -- `qa/` -- 本地下载、截图和生成的 QA 媒体文件 -- `.netlify/` -- 本地 npm 缓存和机器相关配置 -- 本地 Codex/agent 工作说明 -- 已迁移到固定 Hugging Face revision 的大型数字人 ONNX 文件 - ## License 本项目采用 [MIT License](LICENSE)。在保留版权声明的前提下,可以自由使用、修改和分发。