【发布时间】:2017-12-21 12:12:32
【问题描述】:
我正在尝试使用 ffmpeg 的 C# 包装类将音频和视频加速到 4 倍。
这是它的外观。
var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
ConvertSettings convertSettings = new ConvertSettings
{
CustomOutputArgs = "-filter_complex \"[0:v]setpts = 0.25 * PTS[v];[0:a] atempo=2.0[a],atempo=2.0[a] \" -map \"[v]\" -map \"[a]\""
};
string inputpath = tempvideolocation + "/tempvideo.mp4";
string outputpath = tempvideolocation + "/convertedvideo.mp4";
ffMpeg.ConvertMedia(inputpath, Format.mp4, outputpath, Format.mp4, convertSettings);
但我得到“错误 - 在过滤器 Parsed_atempo_2 上找不到未标记输入垫 0 的匹配流(退出代码:1)”
【问题讨论】: