Posts tagged red5
Install Red5 on Debian
0At least Debian 5 (Lenny) required.
Checkout release:
cat /proc/version
uname -a
cat /etc/issue
cat /etc/debian_version
If system is not in English, enable that:
dpkg-reconfigure locales
export LANG=en_US.UTF-8
Update /etc/enviroment
You may need to reboot.
Update:
apt-get update
Install Subversion:
apt-get -y install subversion
Install tools to build your own Debian packages:
apt-get -y install dpkg-dev debhelper dh-make devscripts fakeroot
Install Java (accept sun license if applies):
apt-get -y install java-package
apt-get -y install sun-java6-jre
apt-get -y install sun-java6-jdk
java -version
Install Apache Ant:
wget http://www.apache.org/dist/ant/binaries/apache-ant-1.8.2-bin.tar.gz
tar zxvf apache-ant-1.8.2-bin.tar.gz
mv apache-ant-1.8.2 /usr/local/ant
export ANT_HOME=/usr/local/ant
/usr/local/ant/bin/ant -version
Download the latest development version of Red5:
svn co http://red5.googlecode.com/svn/java/server/trunk red5-trunk
Run ant to build red5:
cd red5-trunk
/usr/local/ant/bin/ant
Deploy red5:
mkdir /usr/local/red5
cp -R dist/* /usr/local/red5/
cd /usr/local/red5
chmod 755 red5.sh
Deploy your custom apps in/usr/local/red5/webapps .
In example VideoWhisper Red5 RTMP application needed to run VideoWhisper solutions.
Start Red5 in background:
cd /usr/local/red5
./red5.sh >> red5.log &
Verify the correct ports are being bound to:
netstat -ant
You need to restart red5 each time you add webapps to /usr/local/red5/webapps or change configuration.
Close Red5:
cd /usr/local/red5
./red5-shutdown.sh
Or kill Red5 processes:
ps aux | grep red5
kill $process_id
Then start it again:
cd /usr/local/red5
./red5.sh >> red5.log &
Related Posts:
Playback RTMP with JW Player
You can publish a rtmp stream to a rtmp address and then playback with an external player like JWPlayer.
If you publish StreamName to rtmp address rtmp://your-rtmp-address-here then you will need to configure JW Player:
var flashvars = { file: StreamName.flv, streamer: rtmp://your-rtmp-address-here, autostart:”true”, type:”rtmp”}
Webcam video streams can be published from web with a video Live Streaming broadcasting script. With the VideoWhisper Live Streaming soulution, StreamName is channel name (in example Studio586). Important: As latest VideoWhisper solutions also support P2P streaming, these need to be configured with alwaysRTMP=1 parameter in their _login.php or equivalent script so streams are always published to RTMP server.
If you want to publish for other devices special encoders and codecs would be required. Using an external encoder you can encode with codecs and settings not available in browser flash player (due to flash limitations). Not all encoders and versions are compatible with all rtmp servers and versions. Some require special configuration and usage instructions.
Adobe Flash Media Live Encoder can be used for Adobe Media Interactive server and is also reported to work with Wowza.
Wowza & Wirecast documentation and support is available for Wowza Media Server hosting.
Note that when publishing H.264, video player should be configured to play StreamName.mp4 instead of StreamName.flv .
Related Posts:
Install Red5 on SUSE Linux
First know your system to know what to install.
Use uname -a to see if you need to download 32 or 64 bits versions.
Get SUSE release: cat /etc/SuSE-release
INSTALL JDK
Install latest JDK from http://java.sun.com/javase/downloads/index.jsp .
Use chmod a+x to make downloaded file executable and execute it.
Make sure latest version is used:
ln -s /usr/java/latest /usr/local/jdk
ln -s /usr/java/latest/jre /usr/local/jre
rm /usr/bin/java
ln -s /usr/java/latest/bin/java /usr/bin/java
export JAVA_HOME=/usr/java/latest/
INSTALL SVN
Get SVN from: http://software.opensuse.org/search?baseproject=ALL&p=1&q=subversion
Install RPMs with: rpm -iv package.rpm
Install any dependencies as required. Search from http://software.opensuse.org/search .
INSTALL ANT
wget http://www.apache.org/dist/ant/binaries/apache-ant-1.8.0-bin.tar.gz
tar zxvf apache-ant-1.8.0-bin.tar.gz
mv apache-ant-1.8.0 /usr/local/ant
Configure
export ANT_HOME=/usr/local/ant
ln -s /usr/local/ant/bin/ant /usr/local/bin/ant
Replace old ant
rm /usr/bin/ant
ln -s /usr/local/ant/bin/ant /usr/bin/ant
Check ant version:
ant –version
INSTALL Red5
Get latest Red5 :
svn co http://red5.googlecode.com/svn/java/server/trunk red5
Build Red5 :
cd red5
ant prepare
ant dist
Move Red5:
cd ..
mv red5 /opt/red5
OPERATE RED5
Start Red5 (when need or on server reboot):
cd /opt/red5/dist
./red5.sh > start.log &
Install/update applications in the /opt/red5/dist/webapps folder . For changes to take effect, Red5 must be restarted:
1. Check if red5 is running:
ps aux | grep red5
2. Go to its folder and shut red5 down:
cd /opt/red5/dist
./red5-shutdown.sh
3. See if it’s still running or not:
ps aux | grep red5
4. Restart it, and also make it output the logs into a file of your choice:
./red5.sh > start.log &
5. Make sure it’s back online:
ps aux | grep red5
Related Posts:
Red5 Linux Server Optimizations and Tools
Some java optimizations to add in red5.sh :
export JAVA_OPTS=”-Xrs -Xms128M -Xmx256M -Dsun.rmi.dgc.client.gcInterval=300000 -Dsun.rmi.dgc.server.gcInterval=360000 -Djava.net.preferIPv4Stack=true -XX:+ExplicitGCInvokesConcurrent -XX:+UseConcMarkSweepGC -Xverify:none”
Assuming red5 was installed in /opt/red5/dist admin will often need to restart it or check if it’s running.
Make sure Red5 restarts: restart.sh
#!/bin/bash
#Restart the process
#First see if running
PID=`ps -eo ‘tty pid args’ | grep ‘red5′ | grep -v grep | grep -v restart | tr -s ‘ ‘ | cut -f2 -d ‘ ‘`
cd /opt/red5/dist
if [ -z "$PID" ]
then
#not running
echo “Red5 was not running at `date`” >> /opt/red5/dist/run-restart.log
else
echo “Red5: $PID”
#shutdown
/opt/red5/dist/red5-shutdown.sh
sleep 6
#make sure
kill $PID >> null
sleep 2
fi
#start
/opt/red5/dist/red5.sh >> /opt/red5/dist/red5.log &
echo “On request restarted Red5 at `date`” >> /opt/red5/dist/run-restart.log
Mare sure Red5 process is running, if not start it: running.sh
#!/bin/bash
#set environment
PID=`ps -eo ‘tty pid args’ | grep ‘red5′ | grep -v grep | grep -v running | tr -s ‘ ‘ | cut -f2 -d ‘ ‘`
if [ -z "$PID" ]
then
#Restart the process
cd /opt/red5/dist
/opt/red5/dist/red5.sh >> /opt/red5/dist/red5.log &
echo “Restarted Red5 at `date`” >> /opt/red5/dist/run-restart.log
else
#do nothing
echo “Red5 is already running with PID=$PID at `date`” >> /opt/red5/dist/run-checked.log
fi
Red5 Services
Red5 Hosting
Red5 installation on VPS & Dedicated Servers (Linux / Windows)
Related Posts:
Red5 0.9 Final Released
Get latest Red5 0.9 Final (27 January 2010) from http://code.google.com/p/red5/.
This final release includes important improvements and bug fixes.
http://code.google.com/p/red5/updates/list
Red5 Tutorials
Red5 Centos Linux Installation
Red5 Unbuntu Linux Installation
Run Red5 & Wowza Flash Media Servers on Same Linux Server
Red5 Services
Red5 Hosting
Red5 installation on VPS & Dedicated Servers (Linux / Windows)
Related Posts:
Run Red5 & Wowza Flash Media Servers on Same Linux Server
This post shows how to install Wowza on a server where there is another RTMP server, already installed, i.e. Red5. Run 2 rtmp servers at same time and allow applications to connect on both simultaneously.
Related Posts:
VideoWhisper Video Recorder
The video recorder allows site users to record webcam videos easily from website pages. This can be use on various sites to implement online features like:
+ video sharing, on demand video content
+ video messaging, video email
+ video content on member profiles, video teasers, video questionnaires
+ video comments for online posts and items, video discussions, video forums
Videos are recorded as flv files on the rtmp server and can be played trough the rtmp protocol or by http players as on youtube (if published to a web accessible location).
For more details check the home page of VideoWhisper web based Video Recorder.
Related Posts:
Install latest Red5 on Linux Ubuntu
This post shows how to install latest Red5 from svn trunk on Linux Ubuntu.
For other linux flavors (i.e. Centos) see this comprehensive tutorial Install Red5 and JDK on Centos.
Related Posts:
Online Video Consultation Solution by VideoWhisper
VideoWhisper Video Consultation is a premium high definition video communication software designed for online video consultations, trainings, webinars, coaching and online collaboration.
It was designed for few to many 2 way moderated video communication. Moderators control what participant is displayed on main screen (speaker) and can also add an additional participant (inquirer) to ask questions or assist. Participants can change their public status (i.e. request to speak), upload and download room files, text and video chat.
Related Posts:
VideoWhisper 2 Way Video Chat Script

VideoWhisper 2 Way Video Chat is a premium high definition video communication software designed for instant 1 on 1 online video conferencing. It’s a solution for conducting easy to setup face to face meetings without leaving your office or home. It’s the easiest and most cost-effective way to meet somebody and discuss one on one. Here are 12 ways to use this:
- have meetings on short notice with individuals in faraway places
- conduct sales presentations without traveling
- manage employees remotely when you are not in the office
- bring any partner or specialist employee virtually to any meeting you physically attend to
- demonstrate products and software without traveling
- train customers, partners and employees on remote locations
- have employees work from home even if they are on another continent
- communicate from many business airlines that provide internet while mobiles are not functional
- talk face to face to new employees or business partners from far away locations before doing any travelling
- communicate face to face from anywhere you find an internet connection for your laptop
- remote professional consultations and advice
- avoid dangerous or just boring locations and persons
Read more about the 2 Way Video Chat software…


Video Broadcast
Enter Presentation
Enter Conference