用于摄像头视频捕获的Red5记录器和服务器的简单替代品? [英] Simple alternatives to Red5 recorder and server for webcam video capture?
问题描述
我已经做了大量的搜索,似乎我能找到的大部分是要么完全吹服务与托管,或红色5套件。我一直在试图用Red5做一些事情,但老实说,我已经做了6年多的Flash或者Java开发了,而且当我真正想要的只是一个flash对象的时候,这似乎太复杂了。在网页上。
我搜索谷歌和github,真的很惊讶缺乏简单的选项。我错过了什么明显的?谢谢。
我最终用Red 5服务器和red5recorder。让一切正常工作是非常棘手的,但是这是我做了什么的概述:
- 检查red5版本0.9.1没有得到使用red5recorder的最新版本)。蚂蚁准备;安装Eclipse Ganymede Sr2(3.4.2)企业版(可用的最新版本)。安装Eclipse Ganymede Sr2(3.4.2)企业版同时使用red5插件和flash builder插件)。
- 根据 http ://wiki.red5.org/wiki/Red5Plugin
- 安装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
-
导入Flash Builder项目 - red5recorder
- 右键单击Red5Server |以...运行在服务器上运行。它应该启动服务器,并显示本地主机:5080 / Red5Server的目录列表
- 在red5recorder的Recorder类中,将服务器更改为rtmp://127.0.0.1/Red5Server/
- 右键单击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:
- Check out red5 version 0.9.1 (I couldn't get the latest version working with red5recorder). ant prepare; ant clean dist.
- Download the latest source for red5recorder.
- Install Eclipse Ganymede Sr2 (3.4.2) Enterprise Edition (the latest version that works with both the red5 plugin and the flash builder plugin).
- Install the red5 plugin according to http://wiki.red5.org/wiki/Red5Plugin
- Install the Adobe Flash Builder 4 plugin into eclipse-install-dir/flash-builder and built it against the eclipse in eclipse-install-dir
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
Import Flash Builder Project - red5recorder
- Right click Red5Server | Run as.. | Run on Server. It should start up the server and show Directory listing for localhost:5080/Red5Server
- In red5recorder's Recorder class, change server to be rtmp://127.0.0.1/Red5Server/
- 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屋!