FFmpeg 常用命令
ffmpeg -re -i ./Temp/4996BC48-295B-49D7-8931-824AAC7D526A.mp4 -re -i ./Temp/D9416BD4-131C-4D28-B4FC-2BA524D433CB.mp4 -re -i ./Temp/B62B4D69-51EE-484F-BACB-E460BA6A9289.mp4 -re -i ./Temp/B62B4D69-51EE-484F-BACB-E460BA6A9289.mp4 -filter_complex "nullsrc=size=640x480 [base]; [0:v] setpts=PTS-STARTPTS,scale=320x240 [upperleft]; [1:v] setpts=PTS-STARTPTS, scale=320x240 [upperright];[2:v] setpts=PTS-STARTPTS, scale=320x240 [lowerleft];[3:v] setpts=PTS-STARTPTS, scale=320x240 [lowerright];[base][upperleft] overlay=shortest=1[tmp1];[tmp1][upperright] overlay=shortest=1:x=320 [tmp2];[tmp2][lowerleft] overlay=shortest=1:y=240 [tmp3];[tmp3][lowerright] overlay=shortest=1:x=320:y=240" -c:v libx264 out.mp4
- 多视频拼接合成 参考与
flie.txt 里面的路径写相对于file 的路径,相对路径
file './Temp/4996BC48-295B-49D7-8931-824AAC7D526A.mp4'
file './Temp/D9416BD4-131C-4D28-B4FC-2BA524D433CB.mp4'
file './Temp/B62B4D69-51EE-484F-BACB-E460BA6A9289.mp4'
ffmpeg -f concat -safe 0 -i \(path) -c copy \(outPath)
网友评论