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
如果它適合您,請將其標記爲答案:-) –