ffmpeg常用命令操作

 \bin\ffmpeg  -y  -i " \bin\eg.mp4" -c:v h264_qsv " \bin\output.mp4"


 \bin\ffmpeg -y -i "D:\Program\ffmpeg\bin\11.mp4" -i "D:\Program\ffmpeg\bin\22.mp4" -filter_complex "[0:v]pad=iw*2:ih*1[a];[a][1:v]overlay=w" -b:v 2637k  -c:v h264_qsv  " \temp\9843448\output.mp4"


 \bin\ffmpeg  -y  -i " \bin\eg.mp4" -c:v h264_qsv " \bin\output.mp4"


 \bin\ffmpeg -y -i "D:\Program\ffmpeg\bin\11.mp4" -i "D:\Program\ffmpeg\bin\22.mp4" -filter_complex "[0:v]pad=iw*2:ih*1[a];[a][1:v]overlay=w" -b:v 2637k  -c:v h264_qsv  " \temp\9842071\output.mp4"



 \bin\ffmpeg -y -i "D:\Program\ffmpeg\bin\11.mp4" -i "D:\Program\ffmpeg\bin\22.mp4" -filter_complex "[0:v]pad=iw*2:ih*1[a];[a][1:v]overlay=w" -b:v 2637k  -c:v h264_qsv  " \temp\9843448\output.mp4"


 \bin\ffmpeg  -y  -i " \bin\eg.mp4" -c:v h264_qsv " \bin\output.mp4"

 \bin\ffmpeg -y -i "D:\Program\ffmpeg\bin\11.mp4" -i "D:\Program\ffmpeg\bin\22.mp4" -filter_complex "[0:v]pad=iw*2:ih*1[a];[a][1:v]overlay=w" -b:v 2637k  -c:v h264_qsv  " \temp\9842071\output.mp4"



 \bin\ffmpeg  -y  -i " \bin\eg.mp4" -c:v h264_qsv " \bin\output.mp4"


 \bin\ffmpeg  -y -i " \temp\9842561\2.jpg" -t 8.666666984558 -crf 1 -filter_complex "color=s=720x1280:c=0xFFFFFF@1[v];[0:v]scale=720:1280,setsar=1:1[v1];[v][v1]overlay=x=0:y=0" " \temp\9842561\for1new2.mp4"


 \bin\ffmpeg -y -i " \temp\9842561\for1new1.mp4" -i " \temp\9842561\deal2.mp4" -filter_complex "[0:v]pad=iw*2:ih[a];[a][1:v]overlay=w" -b:v 2804k  -c:v h264_qsv  " \temp\9842561\22.mp4"



 \bin\ffmpeg -y -i " \temp\9842561\combine.mp4" -vf "scale=1280:720" -b:v 2804k  -c:v h264_qsv  " \temp\9842561\output.mp4"



-----------------

 -i "D:\Program\ffmpeg\bin\新建文件夹\22.mp4" -vf "scale=720:1280" -b:v 2804k  -c:v h264_qsv  "\temp\9842561\deal1.mp4"

 -i "D:\Program\ffmpeg\bin\新建文件夹\44.mp4" -vf "scale=720:1280" -b:v 2804k  -c:v h264_qsv  "\temp\9842561\deal2.mp4"


-i "\temp\9842561\deal1.mp4" -ss 0 -vframes 1 \temp\9842561\1.jpg"

-i "\temp\9842561\deal2.mp4" -ss 0 -vframes 1 "\temp\9842561\2.jpg"



ffprobe   -v quiet -print_format json -show_streams "\temp\9842561\deal1.mp4"


 



 \bin\ffmpeg  -y -i " \temp\9842561\2.jpg" -t 8.666666984558 -crf 1 -filter_complex "color=s=720x1280:c=0xFFFFFF@1[v];[0:v]scale=720:1280,setsar=1:1[v1];[v][v1]overlay=x=0:y=0" " \temp\9842561\for1new2.mp4"


 \bin\ffmpeg  -y -i " \temp\9842561\1.jpg" -t 13.86666679382 -crf 1 -filter_complex "color=s=720x1280:c=0xFFFFFF@1[v];[0:v]scale=720:1280,setsar=1:1[v1];[v][v1]overlay=x=0:y=0" " \temp\9842561\for1new1.mp4"



 \bin\ffmpeg -y -i " \temp\9842561\deal1.mp4" -i " \temp\9842561\for1new2.mp4" -filter_complex "[0:v]pad=iw*2:ih[a];[a][1:v]overlay=w" -b:v 2804k  -c:v h264_qsv  " \temp\9842561\11.mp4"


 \bin\ffmpeg -y -i " \temp\9842561\for1new1.mp4" -i " \temp\9842561\deal2.mp4" -filter_complex "[0:v]pad=iw*2:ih[a];[a][1:v]overlay=w" -b:v 2804k  -c:v h264_qsv  " \temp\9842561\22.mp4"


 \bin\ffmpeg -y -i " \temp\9842561\11.mp4" -vcodec copy -acodec copy -vbsf h264_mp4toannexb " \temp\9842561\input1.ts"



 \bin\ffmpeg -y -i " \temp\9842561\22.mp4" -vcodec copy -acodec copy -vbsf h264_mp4toannexb " \temp\9842561\input2.ts"



 \bin\ffmpeg -y -i "concat: \temp\9842561\input1.ts| \temp\9842561\input2.ts" -acodec copy -vcodec copy -absf aac_adtstoasc " \temp\9842561\combine.mp4"



 \bin\ffmpeg -y -i " \temp\9842561\combine.mp4" -vf "scale=1280:720" -b:v 2804k  -c:v h264_qsv  " \temp\9842561\output.mp4"







ffprobe.exe -i 11.mp4  -v quiet  -show_streams  -print_format json







、、---

" \ffplay.exe" -hide_banner -window_title "视频预览 -C:\Users\haile\Desktop\新建文件夹\11_23908.mp4" -y 740 -i "C:\Users\haile\Desktop\新建文件夹\11_23908.mp4" -ss 1.42

" \ffplay.exe" -hide_banner -window_title "视频预览 -C:\Users\haile\Desktop\新建文件夹\11_23908.mp4" -y 740 -i "C:\Users\haile\Desktop\新建文件夹\11_23908.mp4" -ss 3.78



" \ffplay.exe" -hide_banner -window_title "视频预览 -C:\Users\haile\Desktop\新建文件夹\11_23908.mp4" -y 740 -i "C:\Users\haile\Desktop\新建文件夹\11_23908.mp4" -vf "eq=brightness=0.05:contrast=0.98:saturation=0.95,unsharp=luma_amount=0.93,hqdn3d=luma_spatial=4"




" \ffplay.exe" -hide_banner -window_title "视频预览 -C:\Users\haile\Desktop\新建文件夹\11_23908.mp4" -i "C:\Users\haile\Desktop\新建文件夹\11_23908.mp4" -vf "crop=min(iw\,2156):min(ih\,1212),scale=1280:720"



定格动画帧  每3秒(一秒30帧)定格一次

 -i "C:\Users\haile\Desktop\新建文件夹\11_24565.mp4" -vf "select=not(mod(n\,90))"


 每666帧定格一次 -vf "select=not(mod(n\,666))"



补帧  间隔111 持续1 透明度0.1

  -vf "movie=C\\:/Users/haile/Desktop/新建文件夹/split/53.jpg,scale=1280:720,format=yuva420p,colorchannelmixer=aa=0.100[fm];[in][fm]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2:enable=gte(mod(n\,112)\,111)"




 \bin\realcugan\realcugan-ncnn-vulkan_W2xEX -i "C:\Users\haile\Desktop\新建文件夹\split\1.jpg" -o " \temp\9839567\高清_14821.jpg" -v

 \bin\ffmpeg -y  -loop 1  -i " \temp\9839965\高清_15500.jpg" -pix_fmt yuvj420p -filter_complex "split[bk][pip],[bk]crop=iw:iw/1280*720,scale=1280:720,setsar=1:1,format=pix_fmts=yuv420p,boxblur=4:5[bk],[pip]scale=-2:720[pip],[bk][pip]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2,fps=25,settb=AVTB" -t 3   -c:v h264_qsv " \temp\9839965\main.mp4"


 \bin\ffmpeg -y  -loop 1  -i " \temp\9837213\高清_11053.jpg" -pix_fmt yuvj420p -filter_complex "split[bk][pip],[bk]crop=iw:iw/1280*720,scale=1280:720,setsar=1:1,format=pix_fmts=yuv420p,boxblur=4:5[bk],[pip]scale=-2:720[pip],[bk][pip]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2,fps=25,settb=AVTB" -t 3   -c:v h264_qsv " \temp\9837213\main.mp4"


暂无留言,赶快评论吧

欢迎留言