ffmpeg视频拼接

ffmpeg4路视频拼接
ffmpeg -s 1920x960 -pix_fmt yuv420p -r 25 -i video1.yuv -t 00:00:09 -s 1920x960 -pix_fmt yuv420p -r 25 -i video2.yuv -t 00:00:09 -s 1920x960 -pix_fmt yuv420p -r 25 -i video3.yuv -t 00:00:09 -s 1920x960 -pix_fmt yuv420p -r 25 -i video4.yuv -t 00:00:09 -filter_complex "[0:v]pad=iw4:ih[a];[a][1:v]overlay=w[b];[b][2:v]overlay=w2[c];[c][3:v]overlay=w*3" -pix_fmt yuv420p -y output.yuv

合成效果如下:


捕获.PNG

你可能感兴趣的:(ffmpeg视频拼接)