0

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.

Community
  • 1
  • 1
gsiradze
  • 4,583
  • 15
  • 64
  • 111

1 Answers1

0

You have wrong path of

ffmpeg.exe

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