【发布时间】:2011-10-22 14:23:15
【问题描述】:
它是从 cmd 中启动的,但是当调试时不会进入 while 条件,请问有什么想法吗?在 IIS 中浏览站点返回异常: System.ComponentModel.Win32Exception:访问被拒绝。
string video;
string thumb;
video = System.Web.HttpContext.Current.Server.MapPath("Video/test.avi");
thumb = System.Web.HttpContext.Current.Server.MapPath("Video/frame.jpg");
Process proc = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = System.Web.HttpContext.Current.Server.MapPath("Video/ffmpeg.exe"),
Arguments = " -i " + video + " -ss 00:00:03 -vframes 1 -f image2 -vcodec mjpeg " + thumb,
UseShellExecute = false,
RedirectStandardOutput = true,
CreateNoWindow = true
}
};
proc.Start();
while (!proc.StandardOutput.EndOfStream)
{
string line = proc.StandardOutput.ReadLine();
}
【问题讨论】:
标签: c# asp.net video thumbnails