视频混剪V2
Go to file
root 1132cb9777 feat: 添加 AI 视频生成结果预览功能
🎬 新增功能:

1. AI 视频结果预览组件 (AIVideoResultPreview):
   - 支持单个和批量视频生成结果预览
   - 内置视频播放器,支持在线播放
   - 显示生成提示词、本地路径、在线链接
   - 批量结果支持视频选择器浏览多个视频
   - 优雅的错误处理和加载状态

2. 视频预览功能:
   - HTML5 视频播放器,支持完整控制
   - 自动使用原图作为视频封面
   - 播放失败时显示友好错误信息
   - 响应式设计,适配不同屏幕尺寸

3. 批量结果管理:
   - 显示批量处理统计信息(成功/失败数量)
   - 视频选择器,方便浏览多个生成结果
   - 每个视频显示对应的提示词和路径信息
   - 统一的操作界面和交互体验

4. 文件系统集成:
   - 新增 open_folder Tauri 命令
   - 跨平台支持(Windows/macOS/Linux)
   - 一键打开视频所在文件夹
   - 备用方案:显示完整文件路径

5. 用户界面增强:
   - 任务完成后显示 '预览视频' 按钮
   - 改进的成功状态显示,包含统计信息
   - 模态对话框形式的预览界面
   - 直观的操作按钮和状态指示

6. 操作功能:
   - 打开文件夹:直接定位到视频文件位置
   - 在新窗口打开:使用浏览器播放在线视频
   - 复制路径:方便用户获取文件信息
   - 关闭预览:返回主界面

 用户体验提升:
- 生成完成后可立即预览结果 ✓
- 批量处理结果一目了然 ✓
- 便捷的文件管理操作 ✓
- 专业的视频播放体验 ✓

现在用户可以直接在应用内预览生成的 AI 视频!
2025-07-10 13:33:11 +08:00
python_core fix: 修复批量处理任务的 JSON-RPC 结果识别问题 2025-07-10 13:15:13 +08:00
src feat: 添加 AI 视频生成结果预览功能 2025-07-10 13:33:11 +08:00
src-tauri feat: 添加 AI 视频生成结果预览功能 2025-07-10 13:33:11 +08:00
.gitignore first commit 2025-07-10 09:41:40 +08:00
README.md first commit 2025-07-10 09:41:40 +08:00
gemini.md feat: 增强 AI 视频生成错误诊断和调试功能 2025-07-10 11:10:32 +08:00
index.html first commit 2025-07-10 09:41:40 +08:00
install_ai_video_deps.py fix: 修复 AI 视频生成参数和依赖问题 2025-07-10 11:25:55 +08:00
jm_video_ui.md feat: 集成 AI 视频生成功能到 MixVideo V2 2025-07-10 10:43:40 +08:00
package.json fix: 修复窗口控制功能 - 拖拽、最小化、最大化、关闭 2025-07-10 10:20:41 +08:00
pnpm-lock.yaml fix: 修复窗口控制功能 - 拖拽、最小化、最大化、关闭 2025-07-10 10:20:41 +08:00
postcss.config.js first commit 2025-07-10 09:41:40 +08:00
prompt.md first commit 2025-07-10 09:41:40 +08:00
tailwind.config.js first commit 2025-07-10 09:41:40 +08:00
test_image.jpg feat: 完全修复 AI 视频生成功能 - 端到端成功!🎉 2025-07-10 11:32:22 +08:00
test_path_fix.py fix: 修复 Windows 系统下 Python 脚本路径问题 2025-07-10 11:15:47 +08:00
tsconfig.json first commit 2025-07-10 09:41:40 +08:00
tsconfig.node.json first commit 2025-07-10 09:41:40 +08:00
vite.config.ts first commit 2025-07-10 09:41:40 +08:00

README.md

MixVideo V2 - 视频混剪软件

A modern video editing software built with Tauri (Rust + React) frontend and Python core processing engine.

Architecture

分层架构设计 (Layered Architecture)

  • 前端层 (Frontend Layer): Tauri + React - UI渲染和用户交互
  • 桥接层 (Bridge Layer): Tauri Commands - 前端与Python核心的通信
  • 核心层 (Core Layer): Python - 视频处理核心逻辑
  • 服务层 (Service Layer): Python - 后台服务和文件管理

Project Structure

mixvideo_v2/
├── src-tauri/              # Tauri backend (Rust)
│   ├── src/
│   │   ├── main.rs
│   │   ├── commands/       # Tauri commands for Python bridge
│   │   └── utils/
│   ├── Cargo.toml
│   └── tauri.conf.json
├── src/                    # React frontend
│   ├── components/         # UI components
│   ├── hooks/             # React hooks
│   ├── services/          # API services
│   ├── stores/            # State management
│   └── utils/
├── python_core/           # Python video processing engine
│   ├── video_processing/  # Core video processing modules
│   ├── audio_processing/  # Audio processing modules
│   ├── services/          # Background services
│   ├── utils/             # Utility functions
│   └── requirements.txt
├── assets/                # Static assets
├── docs/                  # Documentation
└── tests/                 # Test files

Core Libraries

Video Processing

  • MoviePy: 剪辑拼接、字幕添加、特效调整
  • FFmpeg-Python: 底层编码/解码、格式转换
  • OpenCV-Python: 帧级处理、人脸识别
  • PySceneDetect: 自动检测镜头切换点

Audio Processing

  • Librosa: 节拍跟踪、频谱分析
  • Pydub: 音频剪切、音量调整、混音
  • PyAudio: 麦克风输入流采集
  • Spleeter: 人声/伴奏分离

AI & Machine Learning

  • Video-Transformers: 视频内容理解
  • Magenta: AI音乐生成
  • TempoCNN: 基于CNN的BPM预测

Getting Started

Prerequisites

  • Node.js 18+
  • Rust 1.70+
  • Python 3.9+
  • FFmpeg

Installation

  1. Clone the repository
  2. Install frontend dependencies: npm install
  3. Install Python dependencies: pip install -r python_core/requirements.txt
  4. Run development server: npm run tauri dev

Features

  • 🎬 视频剪辑拼接
  • 🎵 音频处理与节拍同步
  • 🎨 特效与滤镜
  • 🤖 AI辅助剪辑
  • 📱 多平台适配
  • 分布式任务处理

License

MIT License