用于摄像头视频捕获的Red5记录器和服务器的简单替代品? [英] Simple alternatives to Red5 recorder and server for webcam video capture?

查看:178
本文介绍了用于摄像头视频捕获的Red5记录器和服务器的简单替代品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个Flash脚本/库来捕捉网络摄像头的视频和音频,然后以某种方式获得一个保存的FLV到我的编码服务器。我不是在寻找能够为我提供视频的东西。我只需要简单的捕捉然后上传。我真的希望这是开源的和免费的。

我已经做了大量的搜索,似乎我能找到的大部分是要么完全吹服务与托管,或红色5套件。我一直在试图用Red5做一些事情,但老实说,我已经做了6年多的Flash或者Java开发了,而且当我真正想要的只是一个flash对象的时候,这似乎太复杂了。在网页上。



我搜索谷歌和github,真的很惊讶缺乏简单的选项。我错过了什么明显的?谢谢。

解决方案

我最终用Red 5服务器和red5recorder。让一切正常工作是非常棘手的,但是这是我做了什么的概述:


  1. 检查red5版本0.9.1没有得到使用red5recorder的最新版本)。蚂蚁准备;安装Eclipse Ganymede Sr2(3.4.2)企业版(可用的最新版本)。安装Eclipse Ganymede Sr2(3.4.2)企业版同时使用red5插件和flash builder插件)。

  2. 根据 http ://wiki.red5.org/wiki/Red5Plugin

  3. 安装Adobe Flash Builder 4插件到eclipse-install-dir / flash-builder中,在eclipse-install-dir中
    创建一个新的动态Web项目。我把它命名为Red5Server。选择一个新的目标运行时 - > Infared | Red5服务器。定位red5结帐中的 dist 目录。所以对我来说:


    • auto deploy dir:/Users/julia/code/red5-0.9.1.svn/dist/webapps/

    • 启动脚本:/Users/julia/code/red5-0.9.1.svn/dist/red5-debug.sh

    • 停止脚本:/用户/ julia / code / red5-0.9.1.svn / dist / red5-shutdown.sh


  4. 导入Flash Builder项目 - red5recorder


  5. 右键单击Red5Server |以...运行在服务器上运行。它应该启动服务器,并显示本地主机:5080 / Red5Server的目录列表

  6. 在red5recorder的Recorder类中,将服务器更改为rtmp://127.0.0.1/Red5Server/

  7. 右键单击red5recorder.mxml并将其作为应用程序运行。它应该弹出一个浏览器,记录器应该成功地连接到您的网络摄像机。

现在,red5recorder是真正的开箱即用。它需要做相当多的调整才能做到它所要做的事情。一旦我变得更加舒适,我最终完全重构它来做我想做的事情。

I'm looking for a flash script/library to capture video and audio from a webcam and then somehow get a saved flv to my encoding server. I'm not looking for something that will host the videos for me. I just need something simple to capture and then upload. I really want this to be open source and free.

I've done a fair amount of searching and it seems that most of what i can find is either a full blown service with hosting, or the red 5 suite. I've been trying for a day to get something going on with Red5, but honestly I haven't done any flash or java development in over 6 years and this seems way too complicated when all i really want is a flash object i can stick on a webpage.

I've search google and github and am really surprised by the lack of simple options. Am I missing something obvious? Thanks.

解决方案

I ended up going with Red 5 server and red5recorder. It was tricky to get everything working properly, but here's an overview of what I did:

  1. Check out red5 version 0.9.1 (I couldn't get the latest version working with red5recorder). ant prepare; ant clean dist.
  2. Download the latest source for red5recorder.
  3. Install Eclipse Ganymede Sr2 (3.4.2) Enterprise Edition (the latest version that works with both the red5 plugin and the flash builder plugin).
  4. Install the red5 plugin according to http://wiki.red5.org/wiki/Red5Plugin
  5. Install the Adobe Flash Builder 4 plugin into eclipse-install-dir/flash-builder and built it against the eclipse in eclipse-install-dir
  6. Create a New Dynamic Web Project. I named it Red5Server. Select a New Target Runtime -> Infared | Red5 Server. Target the dist directory in the red5 checkout. so for me:

    • auto deploy dir: /Users/julia/code/red5-0.9.1.svn/dist/webapps/
    • start script: /Users/julia/code/red5-0.9.1.svn/dist/red5-debug.sh
    • stop script: /Users/julia/code/red5-0.9.1.svn/dist/red5-shutdown.sh
  7. Import Flash Builder Project - red5recorder

  8. Right click Red5Server | Run as.. | Run on Server. It should start up the server and show Directory listing for localhost:5080/Red5Server
  9. In red5recorder's Recorder class, change server to be rtmp://127.0.0.1/Red5Server/
  10. Right click on red5recorder.mxml and run it as an application. It should pop up a browser and the recorder should successfully connect to your webcam.

Now, red5recorder is really broken out of the box. It required quite a bit of tweaking to get it to do what it says it will, and once I was more comfortable, I ended up refactoring it altogether to do what I wanted.

这篇关于用于摄像头视频捕获的Red5记录器和服务器的简单替代品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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