向视频添加新的音轨

时间:2018-12-25 05:26:17

标签: ffmpeg

如何在音频持续时间短于视频持续时间的同时重复输入音频

 String[] strArr = new String[]{getFFmpeg(mContext),
            "-y",
            "-ss",
            "" + 0,
            "-t",
            "" + duration,
            "-i", input___path,
            "-ss", "" + 0,
            "-i",
            "" + audio___path,
            "-map",
            "0:0",
            "-map",
            "1:0",
            "-acodec",
            "copy",
            "-vcodec",
            "copy",
            "-preset",
            "ultrafast",
            "-ss",
            "0",
            "-t",
            "" + duration,
            output___path};

0 个答案:

没有答案