Take snapshot of video

2019-08-16 02:56发布

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条回答
够拽才男人
2楼-- · 2019-08-16 03:08

You have wrong path of

ffmpeg.exe

ffmpeg.StartInfo.FileName = HttpContext.Current.Server.MapPath("~/ffmpeg.exe");
查看更多
登录 后发表回答