root 96e166725b feat: 集成 AI 视频生成功能到 MixVideo V2
🎬 主要功能:
-  完整的 AI 视频生成模块 (Python)
-  图片转视频 API 集成 (字节跳动 Seedance)
-  云存储支持 (腾讯云 COS)
-  单张图片和批量处理模式
-  现代化 React 界面组件
-  Tauri 桥接通信

🛠️ 技术实现:
- Python 模块:VideoGenerator, CloudStorage, APIClient
- Rust 命令:generate_ai_video, batch_generate_ai_videos
- React 组件:AIVideoGenerator, AIVideoPage
- 状态管理:useAIVideoStore (Zustand)
- 路由集成:/ai-video 页面

�� 新增文件:
- python_core/ai_video/ - AI 视频生成核心模块
- src/components/AIVideoGenerator.tsx - 主要 UI 组件
- src/pages/AIVideoPage.tsx - AI 视频生成页面
- src/stores/useAIVideoStore.ts - 状态管理

🎯 功能特性:
- 支持 Lite (720p) 和 Pro (1080p) 模型
- 可配置视频时长 (5秒/10秒)
- 实时进度跟踪和任务管理
- 批量处理多张图片
- 云存储自动上传下载
- 错误处理和重试机制

🔗 界面集成:
- 侧边栏导航添加 'AI 视频' 入口
- 首页快速操作卡片
- 完整的用户引导和帮助文档

这是从原始 Tkinter GUI 到现代 Web 应用的完整迁移!
2025-07-10 10:43:40 +08:00
2025-07-10 09:41:40 +08:00
2025-07-10 09:41:40 +08:00
2025-07-10 09:41:40 +08:00
2025-07-10 09:41:40 +08:00
2025-07-10 09:41:40 +08:00
2025-07-10 09:41:40 +08:00
2025-07-10 09:41:40 +08:00
2025-07-10 09:41:40 +08:00
2025-07-10 09:41:40 +08:00

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

Description
视频混剪V2
Readme 1.9 MiB
Languages
Python 50.2%
TypeScript 39.3%
Rust 6.8%
HTML 2.5%
Batchfile 0.6%
Other 0.5%