FFMPEG 不适用于 Windows Server 2008
我有一个 ASP.NET MVC 网站,用户可以上传视频,上传完成后,我向他展示从视频中提取的图像, 为此,我使用 FFMPEG exe 来获取帧。 在开发机器上一切正常,当我使用测试环境时它不起作用! 我已授予以下文件夹的读/写和执行权限: 1.videos(存放上传视频文件的文件夹) 2.thumbnails(存储由ffmpeg捕获的视频缩略图的文件夹) 根目录下的 3.ffmpeg.exe 文件,并授予该文件的读/写执行权限。 但它不起作用。
var _converter = new ImageConvertor(@System.Configuration.ConfigurationManager.AppSettings["FFmpegExec"].ToString());
_converter.WorkingPath = Server.MapPath("~/VideoSamples");
OutputPackage oo = _converter.ConvertToFLV(videoFilepath);
FileStream outStream = System.IO.File.OpenWrite(Path.Combine(Server.MapPath("~/VideoSamples"), id.ToString() + ".flv"));
oo.VideoStream.WriteTo(outStream);
该代码适用于开发环境,但不适用于测试环境! 任何想法请
I have an ASP.NET MVC Web Site ,the user can upload a video and When Done It finish uploading I show him an image extracted from the Video,
To do this I used the FFMPEG exe to get a frame.
Everthing works well in the developement machine , when I use the test environement it does not work!!
I've given the read/write and execute permissions to following folders:
1. videos(folder that store uploaded video files)
2. thumbnails (folder that store the thumbnails of videos, captured by ffmpeg)
3.ffmpeg.exe file at root and given read/write execute permissions to that file also.
but it does not work.
var _converter = new ImageConvertor(@System.Configuration.ConfigurationManager.AppSettings["FFmpegExec"].ToString());
_converter.WorkingPath = Server.MapPath("~/VideoSamples");
OutputPackage oo = _converter.ConvertToFLV(videoFilepath);
FileStream outStream = System.IO.File.OpenWrite(Path.Combine(Server.MapPath("~/VideoSamples"), id.ToString() + ".flv"));
oo.VideoStream.WriteTo(outStream);
This Code Works on developement env but not in test env !!!
Any Ideas Please
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论