参考链接
ffmpeg -s 1920x1080 -i input.yuv -c:v rawvideo -filter:v select="between(n\, 30\, 100)" out.yuv
从视频中抽出30~100帧
参考链接
ffmpeg -i input.mp4 -filter:v "crop=w:h:x:y" output.mp4
其中的w、h为裁剪后的画面大小,x、y为裁剪起始点
420转422
ffmpeg.exe -s 1920*1080 -pix_fmt yuv420p -i CallOfDuty_B-1920x1080.yuv -pix_fmt yuv422p CallOfDuty_B-1920x1080_422.yuv
ffmpeg -pix_fmt yuv420p -s w*h -i out1.mp4 -i out2.mp4 -i out3.mp4 -i out4.mp4 -filter_complex "[0:v]pad=iw*2:ih*2[a];[a][1:v]overlay=w[b];[b][2:v]overlay=0:h[c];[c][3:v]overlay=w:h" out.mp4