Simple alternatives to Red5 recorder and server for webcam video capture?

≯℡__Kan透↙ 提交于 2019-11-29 22:39:51

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.

There are "simple" demo publish and playback examples for Flash in our source tree. When I say simple I mean dead-simple, have you looked into these?
Broadcast / publish - http://red5.googlecode.com/svn/flash/trunk/simpleBroadcaster.fla
Playback - http://red5.googlecode.com/svn/flash/trunk/simpleSubscriber.fla
Flash examples: http://red5.googlecode.com/svn/flash/trunk/

I'm currently evaluating and reading the rtmp-nginx-module. It looks more stable and very well documented than the other peers I've tried:

  • RTMPLite: Works well with VideoIO.swf however it's not easily extensible.
  • Red5: Good luck getting it working correctly!
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!