ts視頻太過于碎片化,播放不流暢,合并起來觀看體驗(yàn)才能提升。
- 新建一個(gè)file.txt,編輯內(nèi)容:
file /路徑/video_001.ts
file /路徑/video_002.ts
file /路徑/video_003.ts
file /路徑/video_004.ts
- ts合并:
ffmpeg -f concat -safe 0 -i /路徑/file.txt -c copy /路徑/video.mp4
- 操作完成后,可以在路徑下看到合并完成的mp4文件。