1
0
Files
frost-zx.github.io/docs/content/ffmpeg-merge-video-files.md
2025-10-13 10:20:34 +08:00

26 lines
565 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "使用 FFmpeg 合并多个视频文件"
date: 2025-04-18T22:50:14Z
lastmod: 2025-07-03T21:58:34Z
tags: [FFmpeg,命令]
---
# 使用 FFmpeg 合并多个视频文件
## 操作步骤
1. 将合并的视频文件都放在同一个文件夹下,例如:`file_1.flv` `file_2.flv`
2. 新建一个 `video.txt` 文件,写入需要合并的视频文件名称,例如:
```plaintext
file 'file_1.flv'
file 'file_2.flv'
```
3. 执行 `ffmpeg` 命令:
```plaintext
ffmpeg -f concat -i video.txt -c copy result.flv
```