转换成MP4格式 ToMp4(string fromFilePath) { ) + ;lastIndexPort = fromFilePath.LastIndexOf(); ; if ((!System.IO.File.Exists(ffmpeg))) { return string.Empty; ; } Command = + fromFilePath + + toPathFileName + ; using (System.Diagnostics.Process p = new System.Diagnostics.Process()) { p.StartInfo.FileName = ffmpeg; p.StartInfo.Arguments = Command; //p.StartInfo.WorkingDirectory = HttpContext.Current.Server.MapPath("~/temp/"); p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardInput = true; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.RedirectStandardError = true; p.StartInfo.CreateNoWindow = false; p.Start(); p.BeginErrorReadLine(); p.WaitForExit(); p.Dispose(); return toPathFileName; } }