mixvideo-v2/apps/desktop
imeepos ee40fe31cf fix: 修复视频切分路径问题 - 解决FFmpeg路径处理错误
问题分析:
1. Windows长路径格式问题:\\?\前缀导致FFmpeg无法处理输出路径
2. 中文路径问题:'待分类'中文目录名可能导致FFmpeg处理失败
3. FFmpeg错误:Error opening output file Invalid argument

修复方案:
1. 路径标准化处理:
   - 检测并移除Windows长路径前缀(\\?\)
   - 确保传递给FFmpeg的路径是标准格式

2. 目录名优化:
   - 将'待分类'目录改为'pending'避免中文路径问题
   - 保持功能不变,提高兼容性

3. 双重路径处理:
   - 项目路径标准化:移除\\?\前缀
   - 输出路径标准化:确保FFmpeg可以正确处理

技术细节:
- 项目路径处理:project.path去除\\?\前缀
- 输出目录:项目目录/pending/素材名_segments
- 路径标准化:确保所有路径都是FFmpeg兼容格式
- 详细日志:便于调试路径处理过程

测试验证:
 解决FFmpeg路径处理错误
 避免中文路径兼容性问题
 保持原有功能逻辑不变
 支持Windows长路径格式

现在视频切分应该可以正常工作,文件会输出到项目的pending目录中!
2025-07-13 22:07:11 +08:00
..
public Initial commit: MixVideo Desktop v0.1.0 2025-07-13 17:57:52 +08:00
src fix: 修复项目详情页打开文件夹功能 2025-07-13 22:00:30 +08:00
src-tauri fix: 修复视频切分路径问题 - 解决FFmpeg路径处理错误 2025-07-13 22:07:11 +08:00
.gitignore Initial commit: MixVideo Desktop v0.1.0 2025-07-13 17:57:52 +08:00
README.md Initial commit: MixVideo Desktop v0.1.0 2025-07-13 17:57:52 +08:00
index.html Initial commit: MixVideo Desktop v0.1.0 2025-07-13 17:57:52 +08:00
package.json release: MixVideo Desktop v0.1.1 2025-07-13 19:44:48 +08:00
postcss.config.js feat: 实现项目管理功能 v0.1.1 2025-07-13 18:46:58 +08:00
tailwind.config.js feat: 实现项目管理功能 v0.1.1 2025-07-13 18:46:58 +08:00
tsconfig.json Initial commit: MixVideo Desktop v0.1.0 2025-07-13 17:57:52 +08:00
tsconfig.node.json Initial commit: MixVideo Desktop v0.1.0 2025-07-13 17:57:52 +08:00
vite.config.ts Initial commit: MixVideo Desktop v0.1.0 2025-07-13 17:57:52 +08:00
vitest.config.ts feat: 实现项目管理功能 v0.1.1 2025-07-13 18:46:58 +08:00

README.md

@mixvideo/desktop

MixVideo 桌面应用 - 基于 Tauri + React + TypeScript 构建的跨平台桌面应用。

🚀 快速开始

开发环境要求

  • Node.js 18+
  • Rust 1.70+
  • PNPM 8+

安装依赖

pnpm install

开发模式

pnpm dev
# 或
pnpm tauri:dev

构建应用

pnpm tauri:build

📁 项目结构

apps/desktop/
├── src/                    # React 前端源码
│   ├── components/         # React 组件
│   ├── pages/             # 页面组件
│   ├── hooks/             # 自定义 Hooks
│   ├── services/          # API 服务
│   ├── types/             # TypeScript 类型
│   └── utils/             # 工具函数
├── src-tauri/             # Rust 后端源码
│   ├── src/               # Rust 源码
│   ├── Cargo.toml         # Rust 依赖配置
│   └── tauri.conf.json    # Tauri 配置
├── public/                # 静态资源
└── package.json           # 前端依赖配置

🛠️ 技术栈

  • 前端: React 18 + TypeScript + Vite
  • 后端: Rust + Tauri 2.0
  • UI: 待定 (可选择 Ant Design、Material-UI 等)
  • 状态管理: 待定 (可选择 Zustand、Redux Toolkit 等)

📝 开发指南

推荐 IDE 设置