问题
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 was unhandled by User-Code - The system cannot find the file specified
what have I done wrong?
my code is here:
FFMPEG f = new FFMPEG();
f.GetThumbnail(Server.MapPath("~/Uploads/" + unique), Server.MapPath("~/Thumbnails/" + unique.Remove(unique.IndexOf(".")) + ".jpg"), "1200x223");
and there's my folder structure.
回答1:
You have wrong path of
ffmpeg.exe
ffmpeg.StartInfo.FileName = HttpContext.Current.Server.MapPath("~/ffmpeg.exe");
来源:https://stackoverflow.com/questions/26255604/take-snapshot-of-video