try
{
Process proc = new Process();
proc.StartInfo.FileName = Server.MapPath("~/Bin/") + "ffmpeg.exe";
proc.StartInfo.Arguments = string.Format(@"-i ""{0}"" -acodec wmav1 -ac 2 -ar 44100 -ab 96000 ""{1}""", Server.MapPath("~/") + "a.flv", Server.MapPath("~/") + "a.wma");
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = true;
proc.StartInfo.RedirectStandardOutput = false;
proc.Start();
}
catch(Exception ex)
{
Response.Write("err : "+ex.Message);
}
{
Process proc = new Process();
proc.StartInfo.FileName = Server.MapPath("~/Bin/") + "ffmpeg.exe";
proc.StartInfo.Arguments = string.Format(@"-i ""{0}"" -acodec wmav1 -ac 2 -ar 44100 -ab 96000 ""{1}""", Server.MapPath("~/") + "a.flv", Server.MapPath("~/") + "a.wma");
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = true;
proc.StartInfo.RedirectStandardOutput = false;
proc.Start();
}
catch(Exception ex)
{
Response.Write("err : "+ex.Message);
}
本文转自94cool博客园博客,原文链接:http://www.cnblogs.com/94cool/archive/2009/08/28/1555931.html,如需转载请自行联系原作者