【发布时间】:2015-09-30 09:08:25
【问题描述】:
我正在尝试加入两个 mp4 视频文件,但出现以下错误:
无法为“ffmpeg”找到合适的输出格式。
ffmpeg:无效参数
我的代码如下:
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "path to ffmpeg";
startInfo.Arguments = "ffmpeg -f concat -i "+path_to_text_file+" -c copy "+path_to_output_video;
startInfo.UseShellExecute = false;
startInfo.RedirectStandardOutput = true;
try
{
Process process = Process.Start(startInfo);
while (!process.StandardOutput.EndOfStream)
{
Console.WriteLine("Process Standard Output : " + process.StandardOutput.ReadLine());
}
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
我的输入文本文件是这样的
file '/path/to/input0'
file '/path/to/input1'
谁能指出我哪里出错了。
【问题讨论】: