我想从视频文件的缩略图和我的代码成功运行,但是缩略图没有保存在这里是我的代码..获取缩略图在ASP.NET
protected void Convert(string fileIn, string fileOut, string thumbOut)
{
try
{
System.Diagnostics.Process ffmpeg;
string video;
string thumb;
video = Server.MapPath("~/Content/UploadVedio/YouTube.FLV");
thumb = Server.MapPath("~/Content/UploadImage/frame.jpg");
ffmpeg = new System.Diagnostics.Process();
ffmpeg.StartInfo.Arguments = " -i " + video + " -ss 00:00:07 -vframes 1 -f image2 -vcodec mjpeg " + thumb;
ffmpeg.StartInfo.FileName = Server.MapPath("~/Content/EXE/ffmpeg.exe");
ffmpeg.Start();
ffmpeg.WaitForExit();
ffmpeg.Close();
}
catch (Exception ex)
{
Response.Write("Error: " + ex.Message);
}
}
如何检查谁会运行ffmpeg.exe先生?如果我们在IIS服务器上运行它? – toha