1、剪切视频
用 -ss 和 -t 选项, 从第 30 秒开始,向后截取 10 秒的视频,并保存。
ffmpeg -i input.wmv -ss 00:00:30.0 -c copy -t 00:00:10.0 -codec copy output.wmv
2、合并视频
首先,把要合并的视频按顺序写到files.txt里,例如
1.file '1.mp4'
2.file '2.mp4'
然后执行:ffmpeg -f concat -safe 0 -i files.txt -c copy output.mp4
参考:https://www.jianshu.com/p/695412050540