gpt4 book ai didi

Android ffmpeg 组合多个命令

转载 作者:行者123 更新时间:2023-12-04 23:12:08 25 4
gpt4 key购买 nike

我知道这种类型的问题之前已经被问过,我已经尝试过这些,但是当涉及到这些命令时不起作用
我正在使用 this libray在android中执行ffmpeg命令
我正在使用以下命令在视频上添加覆盖

"-i", input_videopath,"-ignore_loop","0","-i",overlay_path,"-filter_complex","[1][0]scale2ref[i][m];[m][i]overlay[v]","-shortest","-map","[v]","-map","0:a?","-ac","2", outputpath
我正在使用以下命令在视频中添加音频
"-i", input_videopath,"-i",audioPath,"-filter:a","atempo=2.0","-c:v","copy","-map","0:v:0","-map","1:a:0","-shortest",outputpath
如何将这两个命令合并在一起?

最佳答案

结合:

"-i", input_videopath,"-ignore_loop","0","-i",overlay_path,"-i",audioPath,"-filter_complex","[1][0]scale2ref[i][m];[m][i]overlay[v];[2]atempo=2.0[a]","-shortest","-map","[v]","-map","0:a?","-map","[a]","-ac","2", outputpath

关于Android ffmpeg 组合多个命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64245963/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com