拍摄视频快照

问题描述:

我正在尝试拍摄视频的快照,而不是保存为缩略图。我发现这个问题和已经做了,因为它在那里。但是我得到这个例外:

I'm trying to take snapshot of video and than save as thumbnail. I have found this question and have done as it's there. But i get this exception:

WIN32Exception被用户代码未处理 - 系统找不到指定的文件

我做错了什么?

我的代码在这里:

FFMPEG f = new FFMPEG();
f.GetThumbnail(Server.MapPath("~/Uploads/" + unique), Server.MapPath("~/Thumbnails/" + unique.Remove(unique.IndexOf(".")) + ".jpg"), "1200x223");

而我的文件夹结构

你错误的路径


ffmpeg.exe

ffmpeg.exe



ffmpeg.StartInfo.FileName = HttpContext.Current.Server.MapPath("~/ffmpeg.exe");