http://www.youtube.com/user/red5hosting
In the future we will make videos tutorials about live broadcast and video streaming and we will post it on our youtube channel.

http://www.youtube.com/user/red5hosting
In the future we will make videos tutorials about live broadcast and video streaming and we will post it on our youtube channel.

I’ve written a flash app (in AS3) that streams video to a red5 server (over RMTP of course) and embeds event cue points into the stream. The red5 server is using the OFLA demo that comes with red5, which converts the streams to FLV files. I then have another flash app that reads the FLV (over HTTP in this case not RTMP) and calls a function when an event cue point is reached while playing the FLV.
Now – the code you need to write to ensure that the cue points get properly written into the FLV depends on what RED5 version you are running. The code I’m talking about is the AS3 code in the app that streams the video. When you want to insert an event cuepoint you need to format the “send” function call with the following code (where ns is the netstream object):
For Red5 0.8
ns.send(“onCuePoint”, cueData);
For Red5 0.9.1
ns.send(“@setDataFrame”, ”onCuePoint”, cueData);
And thats pretty much it. And the other thing you need to ensure is that when you are setting up your netconnection, make sure you are using AMF0 encoding. I noticed this is needed for cue points to be added successfully in the right format.
nc.objectEncoding = flash.net.ObjectEncoding.AMF0
Jeremy is the webmaster of http://builderscrack.co.nz
The Red5 Webapps Online Application Generator is a very simple but effective utility to generate Red5 application online. This application gives you the power to create red5 applications without having any knowledge of programming. You can generate streamer applications, with live broadcasting, streaming, recording and shared-Object capabilities in a single click. No compiling/editing needed.
The application takes configuration inputs using a simple flash based front end, and generated red5 application for you by injecting those information’s into a application template at runtime.
The generator is located here Red5/Webapps Application Generator.
How to use:
1. Select a Red5 application from the drop down list of available applications. You can read the description of the application in the description box, once you have selected a application.
2. Then enter the name of your rtmp application in the text input box provided below the application list drop down. (no spaces). This will be the context name that you will connect to : rtmp://server/appname
3. Below the description box, you will find the “Stream Directory Path” option. Use this to select between absolute/relative path schemes. This will set the location for recording/playing streams using the application. In many cases where you may want the streams directory to be on a location other than the default streams folder under red5, you can use absolute path scheme to specify the path to your custom streams directory.
To select a path scheme select one of the radio buttons .
4. Enter appropriate relative/absolute paths in the text input boxes.
For absolute path scheme on linux file systems , use : /home/……
For absolute path scheme on windows use : c:/…..
* Relative path schemes remain same for linux and windows , though you wont use “../” to traverse backwards in either.
5. Press “Generate & Download” button to generate the specific application from its application template.
6. Press “ok” when your are prompted to download your application.
7. You may also want to read the description text to kn ow more about the selected application before generating your own copy.
Keep checking back for newly added Red5 applications at:
RED5 is open source flash server written in java supports streaming audio/video, recording client streams, shared objects, live stream publishing etc. In this short steps you can install red5 server on your virtual server or dedicated.
RED5 server depends on Java, so lets install it first using yum:
# yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel
Ant will need to compile RED5 server code. Ant comes in binary form, so just download and install it in /usr/local directory. This step may cause problems because they all always updating the apache ant and changing the name of it, so sometimes the binary is called apache-ant-1.8.0RC1-bin.tar.gz sometimes apache-ant-1.8.0-bin.tar.gz so you will have to get the correct link, go to http://opensource.become.com/apache/ant/binaries/ and find what they have, get the one which ends on tar.gz, should be about 9-10 mega file, so edit the link down to the correct one;
# cd /usr/src
# wget http://opensource.become.com/apache/ant/binaries/apache-ant-xxxxx-bin.tar.gz (replace apache-ant-xxxxx-bin.tar.gz with the correct file)
# tar zxvf apache-ant-xxxxx-bin.tar.gz (replace apache-ant-xxxxx-bin.tar.gz witht he correct file)
# mv apache-ant-xxxxx/ /usr/local/ant (pay attention, replace xxxxx with the correct version)
# export ANT_HOME=/usr/local/ant
# export JAVA_HOME=/usr/lib/jvm/java
# export PATH=$PATH:/usr/local/ant/bin
# export CLASSPATH=.:$JAVA_HOME/lib/classes.zip
Also export these variables in /etc/bashrc to become available for every user login or for any terminal opens.
# echo ‘export ANT_HOME=/usr/local/ant’ >> /etc/bashrc
# echo ‘export JAVA_HOME=/usr/lib/jvm/java’ >> /etc/bashrc
# echo ‘export PATH=$PATH:/usr/local/ant/bin’ >> /etc/bashrc
# echo ‘export CLASSPATH=.:$JAVA_HOME/lib/classes.zip’ >> /etc/bashrc
Now we come to the main part, which one you want? 0.8, 0.9, 0.7??
you can find the various versions available at:
http://red5.googlecode.com/svn/java/server/tags/
if for example you want version 0.8, then the command would be:
svn co http://red5.googlecode.com/svn/java/server/tags/0_8_0/ red5
if you want the 0.9, then:
svn co http://red5.googlecode.com/svn/java/server/tags/0_9rc1/ red5
so lets say we take 0.8 version:
# cd /usr/src
# svn co http://red5.googlecode.com/svn/java/server/tags/0_8_0/ red5
# mv red5 /usr/local/
# cd /usr/local/red5
# ant prepare
# ant dist
you will see lots and lots of lines, but you should get at last
BUILD SUCCESSFUL
that’s mean its install and now copy the conf directory from dist/ and test the red5 installation.
# cp -r dist/conf .
# ./red5.sh
If it shows Installer service created in the last then everything is fine here, press ctrl+c
Now go to the red5 folder:
# cd /usr/local/red5/dist
command to stop red5:
# sh red5-shutdown.sh
sometimes it is better to use:
# killall -9 java
Command to start red5:
# cd /usr/local/red5/dist
# sh red5.sh &
When Red5 is running you should be able to access http://your-server-domain-or-ip:5080/ .
If it works first thing go to http://your-server:5080/installer/and install admin. Then to http://your-server:5080/admin/register.html and register an username and password. Then you can check application statistics anytime from http://your-server:5080/admin/ with server ip and the registered username, password.
RED 5 RESTART
You need to restart every time you add or update files in the /usr/local/red5/dist/webapps folder – where all applications should be installed.
Real Time Messaging Protocol (RTMP) is a protocol for streaming audio, video and data over the Internet, between a Flash player and a server. A special software is required to run on server side for accepting and serving the rtmp connections from flash clients. We provide managed RTMP hosting based on RED5.
Red5 is shared on our shared hosting plans that means although you can use red5 to stream your videos you will not have access to the red5 folder. Most scripts based on red5 need to upload a folder inside red5/webapps.
This folder is important because it will be on the RTMP path, ex.
rtmp://your-server-ip/folder-name
Contact us so we can upload your folder to red5/webapps and then give you the rtmp path.