1.首先用办法将视频的ts分片文件下载下来。
2.新建一个file.txt文件输入ts文件的路径。例如:

file 'C:\Users\lsc\Downloads\Video\1.ts'
file 'C:\Users\lsc\Downloads\Video\2.ts'
file 'C:\Users\lsc\Downloads\Video\3.ts'
file 'C:\Users\lsc\Downloads\Video\4.ts'
file 'C:\Users\lsc\Downloads\Video\5.ts'
file 'C:\Users\lsc\Downloads\Video\6.ts'
file 'C:\Users\lsc\Downloads\Video\7.ts'
file 'C:\Users\lsc\Downloads\Video\8.ts'
file 'C:\Users\lsc\Downloads\Video\9.ts'
file 'C:\Users\lsc\Downloads\Video\10.ts'
file 'C:\Users\lsc\Downloads\Video\11.ts'
file 'C:\Users\lsc\Downloads\Video\12.ts'
file 'C:\Users\lsc\Downloads\Video\13.ts'
file 'C:\Users\lsc\Downloads\Video\14.ts'
file 'C:\Users\lsc\Downloads\Video\15.ts'
file 'C:\Users\lsc\Downloads\Video\16.ts'
file 'C:\Users\lsc\Downloads\Video\17.ts'

3.利用ffmpeg合成:

ffmpeg.exe -f concat -safe 0 -i "file.txt" -c copy "video1.mp4"

4.大功造成!!

最后修改:2020 年 03 月 25 日 10 : 21 PM
如果觉得我的文章对你有用,请随意赞赏