关于使用FFmpeg进行视频拼接
方案
http://trac.ffmpeg.org/wiki/Concatenate
使用concat demuxer
FFmpeg读取不同格式使用不同的demuxer,而concat也被视为一种"格式"。
https://ffmpeg.org/ffmpeg-formats.html#concat
This demuxer reads a list of files and other directives from a text file and demuxes them one after the other, as if all their packets had been muxed together.
The timestamps in the files are adjusted so that the first file starts at 0 and each next file starts where the previous one finishes. Note that it is done globally and may cause gaps if all streams do not have exactly the same length.
All files must have the same streams (same codecs, same time base, etc.).
个人理解,concat demuxer从文本文件读取文件和操作列表,然后将其视为一整个文件来