视频混剪V2
Go to file
root 0a3b369685 fix: 修复文件选择只显示文件名的问题
🔧 问题修复:

1. 多层级文件选择策略:
   - 优先使用自定义 Tauri 命令 (select_image_file/select_folder)
   - 备用方案:使用 Tauri 插件对话框
   - 最终备用:HTML file input (带路径获取尝试)

2. HTML Input 路径处理改进:
   - 尝试获取 file.path 属性 (Tauri 环境下可用)
   - 如果只能获取文件名,显示警告提示
   - 提醒用户使用桌面应用版本

3. 详细的调试和错误处理:
   - 每个步骤都有详细的控制台日志
   - 清晰的错误信息和回退逻辑
   - 用户友好的错误提示

4. 用户界面改进:
   - 更详细的操作说明和示例
   - 清晰的文件路径格式要求
   - 分步骤的操作指导

5. Rust 命令框架:
   - 添加 select_image_file 和 select_folder 命令
   - 为未来的原生对话框实现预留接口
   - 当前返回错误以触发备用方案

 修复策略:
- 多重备用方案确保文件选择功能可用 ✓
- 详细的用户指导和错误提示 ✓
- 完整的调试信息便于问题排查 ✓
- 为未来的原生对话框实现做好准备 ✓

现在用户应该能够通过多种方式获得完整的文件路径!
2025-07-10 12:22:18 +08:00
python_core feat: 完全修复 AI 视频生成功能 - 端到端成功!🎉 2025-07-10 11:32:22 +08:00
src fix: 修复文件选择只显示文件名的问题 2025-07-10 12:22:18 +08:00
src-tauri fix: 修复文件选择只显示文件名的问题 2025-07-10 12:22:18 +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