拍摄视频快照 [英] Take snapshot of video
本文介绍了拍摄视频快照的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试拍摄视频的快照,而不是保存为缩略图。我发现这个问题和已经做了,因为它在那里。但是我得到这个例外:
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");
这篇关于拍摄视频快照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文