如何将三个ffmpeg命令合并为一个?

时间:2018-07-25 21:27:09

标签: video ffmpeg

我很困惑如何将三个ffmpeg指令合并为一个也包含两个输入的指令。

// rescale with certain dimension 
ffmpeg -i front.mp4 -filter_complex scale=600:400 rescale.mp4

//Attach to image
ffmpeg -i 600800.jpg  -i rescale.mp4 -filter_complex "overlay=(W-w)/2:(H-h)/2" final.mp4

// After Changed to specific even size Burn Subtitles with Draw Text
ffmpeg -i final.mp4 -filter_complex "drawtext=fontfile=Lucida Grande.ttf:text='I am TEXT':fontsize=72:fontcolor=white:x=50:y=100,subtitles=sample.srt:force_style='Fontsize=22,OutlineColour=&H55000000,BorderStyle=3'" CheckMe.mp4

1 个答案:

答案 0 :(得分:0)

def post():
    bha_overall_instance1.bha_number = userinput.bha_number
    bha_overall_instance1.drill_str_name = userinput.drill_str_name
    bha_overall_instance1.depth_in = userinput.depth_in

简单的过滤器可以用逗号连接。具有多个输出和/或输入的过滤器应与分号连接。