FFMpeg裁剪與合併命令
裁剪命令
ffmpeg -i video.mp4 -ss 00:02:00 -t 10 crop_video.mp4
-ss 裁剪開始時間,從n時n分n秒考試裁剪
-t 裁剪時長 單位s
合併命令
ffmpeg -f concat -i input.txt concat.mp4
concat 表示對後面的文件進行拼接
input.txt 表示要合併的文件列表
格式爲’file filename‘
example:file ‘crop1.mp4’
file ‘crop2.mp4’
input.txt
file 'crop1.mp4'
file 'crop2.mp4'