需要合并两个 ffmpeg 命令

需要合并两个 ffmpeg 命令

我不明白如何连接这两个命令:

Object split = ("-i "+filePath+" -framerate 30000/1001 -i "+Final.theme+" -filter_complex [1:v]fade=out:st=30:d=1:alpha=1[ov];[0:v][ov]overlay=10:10[v] -map [v] -c:v libx264 -c:a copy -shortest "+j).split(" ");
Object split = ("-i "+filePath+" -i "+gifpath+" -filter_complex [1]format=rgba,colorchannelmixer=aa=0.5[front];[0][front]overlay=x=10:y=10,format=yuv420p "+j).split(" ");

答案1

使用

Object split = ("-i "+filePath+" -framerate 30000/1001 -i "+Final.theme+" -i "+gifpath+" -filter_complex [1:v]fade=out:st=30:d=1:alpha=1[ov];[2]format=rgba,colorchannelmixer=aa=0.5[front];[0:v][ov]overlay=10:10[v];[v][front]overlay=x=10:y=10,format=yuv420p[v] -map [v] -c:v libx264 -c:a copy -shortest "+j).split(" ");

相关内容