Difference between revisions of "Crtmpserver"

From Alessandro's Wiki
Line 1: Line 1:


= installation =
= installation =


== linux ==
== Linux ==


* I choosed '''/opt/crtmpserver''' as source directory
* I choose '''/opt/crtmpserver''' as source directory
  svn co --username anonymous https://svn.rtmpd.com/crtmpserver/branches/1.0 crtmpserver
  svn co --username anonymous https://svn.rtmpd.com/crtmpserver/branches/1.0 crtmpserver


* do compile the source specifying the prefix you want, '''/usr/local''' is a good choice to keep the filesystem under control, but remember to check the ''$PATH'' variable afterwards:
* do compile the source specifying the prefix you want, '''/usr/local''' is a good choice to keep the file-system under control, but remember to check the ''$PATH'' variable afterwards:


  cd builders/cmake
  cd builders/cmake
Line 17: Line 18:
* install the certificates:
* install the certificates:
  cp /usr/src/crtmpserver-690/builders/cmake/applications/appselector/server.* /usr/local/lib/crtmpserver/applications/appselector/
  cp /usr/src/crtmpserver-690/builders/cmake/applications/appselector/server.* /usr/local/lib/crtmpserver/applications/appselector/
* link your own media directory (in this case I'm linking the Videos directory located in my home) to the player application '''media foder''':
ln -s ~/Videos /usr/local/lib/crtmpserver/applications/flvplayback/mediaFolder
cp /usr/src/crtmpserver-690/builders/cmake/applications/flvplayback/users.lua /usr/local/lib/crtmpserver/applications/flvplayback/
* it ''should'' be possible now to execute the compiled and configured program


= configuration =
= configuration =
Line 27: Line 35:
  users.lua
  users.lua


== streams ==
== apps ==


* flash streamer application
  /opt/crtpmserver/configs/flvplayback.lua
  /opt/crtpmserver/configs/flvplayback.lua


Line 59: Line 68:
= references =
= references =


* installing on gentoo
* installing on Gentoo
http://foxpa.ws/2011/10/26/installing-c-rtmp-server-rtmpd-crtmpdserver-on-gentoo/
http://foxpa.ws/2011/10/26/installing-c-rtmp-server-rtmpd-crtmpdserver-on-gentoo/



Revision as of 19:31, 31 May 2012


installation

Linux

  • I choose /opt/crtmpserver as source directory
svn co --username anonymous https://svn.rtmpd.com/crtmpserver/branches/1.0 crtmpserver
  • do compile the source specifying the prefix you want, /usr/local is a good choice to keep the file-system under control, but remember to check the $PATH variable afterwards:
cd builders/cmake
cmake -DCRTMPSERVER_INSTALL_PREFIX=/usr/local .
make install
  • now let's go in /usr/local/etc/ and use crtmpserver.lua.sample to generate your crtmpserver.lua changing the rootDirectory=" variable in applications= { /usr/local/lib/crtmpserver/applications
  • install the certificates:
cp /usr/src/crtmpserver-690/builders/cmake/applications/appselector/server.* /usr/local/lib/crtmpserver/applications/appselector/
  • link your own media directory (in this case I'm linking the Videos directory located in my home) to the player application media foder:
ln -s ~/Videos /usr/local/lib/crtmpserver/applications/flvplayback/mediaFolder
cp /usr/src/crtmpserver-690/builders/cmake/applications/flvplayback/users.lua /usr/local/lib/crtmpserver/applications/flvplayback/


  • it should be possible now to execute the compiled and configured program

configuration

  • /opt/crtpmserver/configs
all.debug.lua
flvplayback.lua
run.bat
run.sh
users.lua

apps

  • flash streamer application
/opt/crtpmserver/configs/flvplayback.lua

applications

  • application files:
/usr/local/lib64/crtmpserver/applications/admin
/usr/local/lib64/crtmpserver/applications/applestreamingclient
/usr/local/lib64/crtmpserver/applications/appselector
/usr/local/lib64/crtmpserver/applications/flvplayback
/usr/local/lib64/crtmpserver/applications/proxypublish
/usr/local/lib64/crtmpserver/applications/samplefactory
/usr/local/lib64/crtmpserver/applications/stresstest
/usr/local/lib64/crtmpserver/applications/vptests
/usr/local/lib64/crtmpserver/applications/admin/libadmin.so
/usr/local/lib64/crtmpserver/applications/applestreamingclient/libapplestreamingclient.so
/usr/local/lib64/crtmpserver/applications/appselector/libappselector.so
/usr/local/lib64/crtmpserver/applications/appselector/server.crt
/usr/local/lib64/crtmpserver/applications/appselector/server.key
/usr/local/lib64/crtmpserver/applications/flvplayback/libflvplayback.so
/usr/local/lib64/crtmpserver/applications/flvplayback/mediaFolder
/usr/local/lib64/crtmpserver/applications/flvplayback/users.lua
/usr/local/lib64/crtmpserver/applications/proxypublish/libproxypublish.so
/usr/local/lib64/crtmpserver/applications/samplefactory/libsamplefactory.so
/usr/local/lib64/crtmpserver/applications/stresstest/libstresstest.so
/usr/local/lib64/crtmpserver/applications/vptests/libvptests.so

references

  • installing on Gentoo

http://foxpa.ws/2011/10/26/installing-c-rtmp-server-rtmpd-crtmpdserver-on-gentoo/

  • using it

http://wiki.rtmpd.com/tutorial_live_stream_file

  • documentation

http://wiki.rtmpd.com/documentation