1
我试图连接两个mp4视频文件的两个MP4视频文件,但我发现了以下错误:尝试加入使用的ffmpeg,但得到的错误
无法找到“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);
}
我输入文本文件就像
任何人都可以指出我要去哪里错了。
我刚刚删除了ffmpeg部分,它的工作。非常感谢你。 – Sid
如果它适合您,请将其标记为答案:-) –