# videocombine **Repository Path**: liubb8280/videocombine ## Basic Information - **Project Name**: videocombine - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-13 - **Last Updated**: 2025-11-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # VideoCombiner 视频合成工具 ## 项目简介 VideoCombiner(天境智影)是一个专业的视频处理工具,支持: - 多视频片段合并 - 添加背景音乐 - 添加遮罩水印 - 视频格式转换 - 视频上传到服务器 ## 快速开始 ### Windows 编译和打包(最简单) #### 1. 安装必需软件 - **Visual Studio 2022** - https://visualstudio.microsoft.com/ - 选择:使用 C++ 的桌面开发 - **Qt 6.8.3** - https://www.qt.io/download - 选择:Qt 6.8.3, MSVC 2022 64-bit, Qt WebEngine, Qt SQL - **NSIS**(打包工具)- https://nsis.sourceforge.io/ - **FFmpeg** - https://www.gyan.dev/ffmpeg/builds/ - 解压 `ffmpeg.exe`、`ffprobe.exe` 到 `build_qt6.8.3/bin/` - **Curl** - https://curl.se/windows/ - 解压 `curl.exe` 到 `build_qt6.8.3/bin/` #### 2. 编译程序(使用 Qt Creator) **方法一:Qt Creator(推荐,图形界面)** 1. 打开 Qt Creator 2. 打开 `source/VideoCombiner/VideoCombiner.pro` 3. 选择 Release 模式,点击构建 4. 打开 `source/VideoWorker/VideoWorker.pro` 5. 选择 Release 模式,点击构建 6. 部署 Qt DLL(在 Qt Creator 中或手动运行 windeployqt) **方法二:命令行** ```cmd # 设置 Qt 路径 set PATH=C:\Qt\6.8.3\msvc2022_64\bin;%PATH% # 编译主程序 cd source\VideoCombiner qmake VideoCombiner.pro nmake release # 编译子程序 cd ..\VideoWorker qmake VideoWorker.pro nmake release # 部署 Qt DLL cd ..\..\build_qt6.8.3\bin windeployqt.exe VideoCombiner.exe windeployqt.exe VideoWorker.exe ``` #### 3. 打包安装包 1. **复制文件到打包目录** ```cmd xcopy /E /I /Y build_qt6.8.3\bin\*.* build_qt6.8.3\packers\bin\ ``` 或手动复制所有文件 2. **使用 NSIS 打包** - 打开 NSIS - 加载 `build_qt6.8.3/packers/setup.nsi` - 编译脚本 生成的安装包:`build_qt6.8.3/packers/VideoCombiner_v1.3.1.5_安装包.exe` **这就是给用户的安装包!** ## 项目结构 ``` VideoCombiner/ ├── source/ │ ├── VideoCombiner/ # 主程序源码 │ └── VideoWorker/ # 子程序源码 ├── build_qt6.8.3/ │ ├── bin/ # 编译输出目录 │ └── packers/ # 打包目录 │ ├── bin/ # 打包文件目录 │ └── setup.nsi # NSIS 安装脚本 ├── build.bat # 编译脚本 └── package.bat # 打包脚本 ``` ## 两个程序说明 ### VideoCombiner.exe(主程序) - 用户界面程序 - 管理视频片段、配置参数、显示进度 ### VideoWorker.exe(子程序) - 后台视频处理程序 - 执行视频合并、添加 BGM/遮罩、上传视频 **两个程序都需要编译,缺一不可!** ## 详细文档 - **完整编译打包指南.md** - 详细的编译和打包步骤 - **项目说明.txt** - 项目目录说明 ## 技术栈 - Qt 6.8.3 - Visual Studio 2022 - FFmpeg(视频处理) - NSIS(打包工具) ## 许可证 [根据项目实际情况填写]