保存视频使用网络摄像头闪光灯拍摄的 [英] Save video captured from webcam using Flash

查看:280
本文介绍了保存视频使用网络摄像头闪光灯拍摄的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Flash capure从用户的网络摄像头视频并保存它承载Flash文件在同一台服务器上。 Web服务器将运行ASP.Net技术。似乎很容易,是吧?

I'd like to use Flash to capure video from the user's webcam and then save it on the same server that hosts the Flash file. The web server will be running ASP.Net technology. Seems easy, right?

搜索的地块产生了code同样的思路使用Flash启动网络摄像头捕捉。我无法找到任何东西,会发送拍摄的视频回服务器。

Lot of searches yielded the same lines of code to start a webcam capture using Flash. I can't find anything that sends that captured video back to a server.

我可以找到很多这意味着第三方软件或Flash Communication Server的博客和论坛帖子被要求收集它在服务器上,但我不明白为什么。

I can find lots of blog and forum posts that imply 3rd party software or Flash Communication Server is required to collect it on the server, but I don't understand why.

好像闪存应该能够捕捉到一些视频,并将其作为HTTP POST到承载Flash文件在同一台服务器发送。这是pretty的基本的Flash /网络摄像头的功能,对不对?好像我们并不需要引入第三方的依赖,只是还没有。

It seems like Flash ought to be able to capture some video and send it as an HTTP post to the same server that hosts the Flash file. That's pretty basic Flash/webcam functionality, right? It seems like we don't need to introduce 3rd party dependencies just yet.

有谁知道在哪里的样品的ActionScript code这些额外的线路可能隐藏?

Does anyone know where these extra lines of sample ActionScript code might be hiding?

推荐答案

您确实需要一个Flash媒体服务器(或一个开放源代码的替代,如Red5的),以便能够的来自视频客户端向服务器,这基本上是要在这里做。有没有办法做到这一点使用HTTP POST。

You do need a Flash Media Server (or an open-source alternative such as Red5) to be able to stream video from the client to the server, which is essentially what you want to do here. There is no way to do that using HTTP POST.

您可以,但是,请你视频的显示对象为位图的每一帧,并上传在使用普通的HTTP文件上传飞这些位图。虽然你可以想像,这不是从性能上看完全理想。您还碰到问题,因为Flash Player安全模型不允许您上传文件,而操作是用户启动(即鼠标点击事件是在堆栈跟踪)。有办法解决这个虽然,如通过AMF服务发送的文件作为AMF字节数组,但它可能不是面向未来。

You can, however, draw your Video display object to a bitmap each frame, and upload those bitmaps on the fly using regular HTTP file uploads. Although as you can imagine, that's not exactly ideal from a performance point of view. You'll also bump into problems because the Flash Player security model does not allow you to upload files without the operation being user-initiated (i.e. a mouse click event is in the stack trace.) There are way to work around this though, e.g. sending the file as an AMF ByteArray through an AMF service, but it might not be future proof.

但最终,对任何类型的专业级应用程序,你肯定会想将一个Flash媒体服务器(或Red5的)。有企业从中你可以雇佣这类服务,其中一个例子就是的 Influxis 。走这路线,你不会有托管服务器(这是Java的)你自己。

In the end though, for any type of professional-grade application, you'll definitely want to incorporate a Flash Media Server (or Red5.) There are companies from which you can hire such services, one example being Influxis. Going down that route, you won't have to host the server (which is Java) yourself.

这篇关于保存视频使用网络摄像头闪光灯拍摄的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆