There are two ways to merge, the first way to merge a small amount, the second way to merge a large amount

4.1 Merging a Small Number

Write the file name directly, use | separated file

ffmpeg -i "1.ts|2.ts|3.ts|4.ts|.5.ts|" -c copy output.mp4
Copy the code

4.2 Merge more

Need to first save the file name to the text text, and the format must be consistent, can not have Chinese, said he abnormal is the format requirements of this point is too strict

File 'file' file 'file' file 'file' file 'Copy the code

Merge the results