!! Transform videos to picture  将视频转换为图片
.\ffmpeg.exe -i input.mp4 -vf fps=1 output%d.png
!! Change size of videos or images 更改视频或图像的大小
.\ffmpeg.exe -i input.mp4 -vf scale=320:240 output.mp4
!! Combine/stack two videos or images 组合/堆叠两个视频或图像
.\ffmpeg.exe -i part1.mp4 -i part2.mp4 -filter_complex vstack=inputs=2 output.mp4
.\ffmpeg.exe -i part1.mp4 -i part2.mp4 -filter_complex hstack=inputs=2 output.mp4
!! Combine images to videos  将图像与视频组合
.\ffmpeg.exe -r 100 -f image2 -s 500×500 -i pic%00d.png -vcodec libx264 -vf “pad=ceil(iw/2)*2:ceil(ih/2)*2” -crf 25  -pix_fmt yuv420p output.mp4
!! Combine/stack two videos or images and change size  组合/堆叠两个视频或图像并更改大小
.\ffmpeg.exe -i part1.mp4 -i part1.mp4 -filter_complex “[0:v]pad=iw*2:ih*1[a];[a][1:v]overlay=w” output.mp4
!! Crop videos or images  裁剪视频或图像
!! out_w is the width of the output rectangle  out_w是输出矩形的宽度
!! out_h is the height of the output rectangle  out_h是输出矩形的高度
!! x and y specify the top left corner of the output rectangle  x和y指定输出矩形的左上角
!! .\ffmpeg.exe -i input.mp4 -strict -2 -vf crop=600:796:200:0 output.mp4 !! ctspecimen
!! .\ffmpeg.exe -i input.mp4 -strict -2 -vf crop=1612:300:0:300 output.mp4 !! ASTM_E606
.\ffmpeg.exe -i a.mov -strict -2 -vf crop=out_w:out_h:x:y output.mp4
!! Combine/stack three videos or images  组合/堆叠三个视频或图像
.\ffmpeg.exe -i part1.mp4 -i part2.mp4 -i out3.mp4 -filter_complex “[0:v]pad=iw*3:ih*1[a];[a][1:v]overlay=w[b];[b][2:v]overlay=2.0*w” output.mp4
!! Speed up videos  加快视频播放速度
.\ffmpeg.exe -i input.mp4 -filter:v “setpts=PTS/60” output.mp4
!! Cut videos  剪切视频
.\ffmpeg.exe -i input.mp4 -ss 00:00:00 -t 00:00:10 -async 1 output.mp4
!! remove voice  删除语音
.\ffmpeg.exe -i input.mp4 -c copy -an output.mp4
!! compress video  压缩视频
.\ffmpeg.exe -i input.mp4 -vcodec libx265 -crf 28 output.mp4
!! concat video 拼合视频
.\ffmpeg.exe -f concat -safe 0 -i join.txt -c copy output.mp4
!! join.txt
!! file part1.mp4
!! file part2.mp4
!! file part3.mp4
!! file part4.mp4
!! Merging video and audio, with audio re-encoding 将视频和音频合并,并进行音频重新编码
.\ffmpeg.exe -i input.mp4 -i audio.wav -c:v copy -c:a aac output.mp4
!! Speed up videos  加快视频播放速度
.\ffmpeg.exe -i input.mp4 -filter:v “setpts=0.5*PTS” output.mp4
!! change videos format  更改视频格式
.\ffmpeg.exe -i input.mp4 -c:v libx264 -ar 22050 -crf 28 output.flv
!! change videos size  更改视频大小
.\ffmpeg.exe -i input.mp4 -vf scale=-1:720 -c:v libx264 -crf 18 -preset veryslow -c:a copy output.mp4