浏览器内的多个网络摄像头监控?
我想创建一个 Web 应用程序(我对 PHP 非常擅长),每 1 分钟捕获打开应用程序页面的不同人员的网络摄像头镜头,并通过 smthng 将其发送到 Web/FTP 服务器。
我的意思是 PC1、PC2 和 PC3 打开网络应用程序,它们的网络摄像头已打开,并且每 1 分钟捕获一次图像,因此 PCSERVER 应该能够“实时”看到网络摄像头后面的人。
我读到了有关 Flash Video Server 的内容(希望我完全明白这些话),但它是可购买的解决方案,我想免费重新分发该应用程序。
有什么想法我应该怎么做?
编辑: 如果我需要学习另一种编程语言,例如 ActionScript,我不介意,但如果我要学习它,它应该可以解决我的问题。
I want to create a web application (I am quite good with PHP) that captures webcam shots every 1 minute from different persons that open the application page and sends it via smthng to the web/ftp server.
I mean PC1, PC2 and PC3 opens the web aplication, their webcam it's opened and it captures images every 1 minute so PCSERVER should be able to see the persons behind the webcam "realtime".
I read about Flash Video Server (hope I am quite around the words) but it's purchasable solution and I want to redistribute the application freely.
Any ideas how should I do this?
EDIT:
If I am required to learn another programming language such as ActionScript, I don't mind, but if I am going to learn that, it should resolve my problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于视频捕获和视频共享,您需要 Adobe 的 Flash Media Server 或 Johni 提到的开源替代品 Red5 之类的东西,但既然您说您只需要“每分钟拍摄一次”,而不是视频,那么也可以在没有流媒体的情况下完成媒体服务器,只有基于Flash的客户端和服务器上的PHP。
除了视频之外,您还可以使用 Flash/ActionScript 从网络摄像头捕获位图图像,将该位图图像编码为 JPEG 或 PNG,然后通过将图像 POST 到 PHP 页面来将其上传到服务器。
它需要更多适合 SO 问答的代码,但您可以轻松找到该过程的不同步骤的示例 - 访问网络摄像头 - 获取位图图像 - 编码位图 - POST 编码图像顶级 PHP 从 ActionScript。
For video capture and video sharing, you need something like Adobe's Flash Media Server or the open source alternative Red5, that Johni mentions, but since you say you only need "shots every minute", not video, it could also be done without a streaming media server, only the Flash based client and PHP on the server.
What you could do instead of video is capture bitmap images from the web camera, using Flash/ActionScript, encode that bitmap image as JPEG or PNG and upload the image to the server by POSTing it to a PHP page.
It would require more code that fits in a SO Q&A, but you can easily find examples for the different steps of the process - access the web cam - get bitmap image - encode bitmap - POST encoded image top PHP from ActionScript.
Red5 Media Server 是 Flash Media Server 的一个很好的开源替代品:
http://red5.org/
它是用 Java 编程的。
The Red5 Media Server is a good open source alternative to the Flash Media Server:
http://red5.org/
It is programmed in Java.