Take snapshot of video

倖福魔咒の 提交于 2019-12-25 01:24:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!