<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Video Chat Scripts &#187; subversion</title>
	<atom:link href="http://www.videochat-scripts.com/tag/subversion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.videochat-scripts.com</link>
	<description>Live Video, Web2.0, Rich Media, Custom Content</description>
	<lastBuildDate>Mon, 05 Jul 2010 16:45:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Install ffmpeg mplayer flvtool2 yamdi x264 theora mp3lame vorbis ogg faac</title>
		<link>http://www.videochat-scripts.com/install-ffmpeg-mplayer-flvtool2-yamdi-x264-theora-mp3lame-vorbis-ogg-faac/</link>
		<comments>http://www.videochat-scripts.com/install-ffmpeg-mplayer-flvtool2-yamdi-x264-theora-mp3lame-vorbis-ogg-faac/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 05:31:11 +0000</pubDate>
		<dc:creator>VideoChat Scripts</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Video Streaming]]></category>
		<category><![CDATA[avs]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[clip]]></category>
		<category><![CDATA[codecs]]></category>
		<category><![CDATA[compatible]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[devel]]></category>
		<category><![CDATA[encode]]></category>
		<category><![CDATA[exec]]></category>
		<category><![CDATA[faac]]></category>
		<category><![CDATA[faad2]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[flvtool2]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[lame]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mediainfo]]></category>
		<category><![CDATA[mencoder]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[mp3lame]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[ogg]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[resize]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[sharing]]></category>
		<category><![CDATA[stream]]></category>
		<category><![CDATA[streaming]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[suphp]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[theora]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[video sharing]]></category>
		<category><![CDATA[vorbis]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[x264]]></category>
		<category><![CDATA[xvid]]></category>
		<category><![CDATA[youtube]]></category>
		<category><![CDATA[yum]]></category>
		<category><![CDATA[zenlib]]></category>

		<guid isPermaLink="false">http://www.videochat-scripts.com/?p=159</guid>
		<description><![CDATA[This is a tutorial to enable video sharing support on Centos servers. This should install ffmpeg, mplayer, mencoder, flvtool2, yamdi, x264, theora, mp3lame, vorbis, ogg, faac, faad2, xvid . These tools will enable on your server: video conversion thumbnail generation FLV meta injection (flvtool2, yamdi) extra codecs (x264, theora, mp3lame, vorbis, ogg, faac, faad2, xvid)]]></description>
			<content:encoded><![CDATA[<p>This is a tutorial to enable video sharing support on Centos servers.</p>
<p>This should install ffmpeg, mplayer, mencoder, flvtool2, yamdi, x264, theora, mp3lame, vorbis, ogg, faac, faad2, xvid . These tools will enable on your server:</p>
<ul>
<li>video conversion</li>
<li>thumbnail generation</li>
<li>FLV meta injection (flvtool2, yamdi)</li>
<li>extra codecs (x264, theora, mp3lame, vorbis, ogg, faac, faad2, xvid)</li>
</ul>
<p>This is functional and we update it each time we configure a new server.<br />
Installation is done using the &#8220;root&#8221; account.</p>
<p><span id="more-159"></span><strong> </strong></p>
<p>Attention: If you copy and paste commands below, make sure &#8220;-&#8221; are not converted to &#8220;.&#8221;.  If these get converted, edit &#8220;.&#8221; back to &#8220;-&#8221;. Some options use 2 * &#8220;-&#8221;.</p>
<p><strong>GIT<br />
</strong>(required to get X264)</p>
<blockquote><p>yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel</p></blockquote>
<blockquote>
<div>cd /usr/local/src</div>
<div>wget http://www.kernel.org/pub/software/scm/git/git-1.6.0.4.tar.gz</div>
<div>
<div>tar -zxvf git-1.6.0.4.tar.gz</div>
<div>cd git-1.6.0.4</div>
<div>make prefix=/usr/local all</div>
<div>make prefix=/usr/local/ install</div>
</div>
<div>git &#8211;version</div>
</blockquote>
<div>And git manpages:</div>
<blockquote>
<div>cd /usr/local/src<br />
wget http://www.kernel.org/pub/software/scm/git/git-manpages-1.6.0.4.tar.gz<br />
cd /usr/local/share/man<br />
tar -zxvf /usr/local/src/git-manpages-1.6.0.4.tar.gz</div>
</blockquote>
<div>
<p><span style="text-decoration: underline;"><strong>YASM</strong></span></p>
<p>YASM is a modular assembler, it is required by the x264 package.</p>
<blockquote><p>cd /usr/local/src/<br />
wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.0.tar.gz<br />
tar zfvx yasm-0.7.0.tar.gz<br />
cd yasm-0.7.0<br />
./configure<br />
make &amp;&amp; make install<br />
cd ..</p></blockquote>
</div>
<div><span style="text-decoration: underline;"><strong>X264</strong></span></div>
<blockquote>
<div><span style="text-decoration: underline;"><strong><br />
</strong></span>cd /usr/local/src/</div>
<div>git clone git://git.videolan.org/x264.git<br />
cd /usr/local/src/x264<br />
./configure &#8211;enable-shared &#8211;prefix=/usr<br />
make &amp;&amp;  make install</div>
</blockquote>
<div>
<div><span style="text-decoration: underline;"><strong>Essential Codecs</strong></span></div>
<blockquote>
<div>cd /usr/local/src/<br />
wget www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2<br />
tar jxvf essential-20061022.tar.bz2<br />
mkdir /usr/local/lib/codecs/<br />
mv /usr/local/src/essential-20061022/* /usr/local/lib/codecs/<br />
chmod -R 755 /usr/local/lib/codecs/</div>
</blockquote>
</div>
<div>
<p><strong><span style="text-decoration: underline;">LAME</span></strong></p>
<blockquote><p>cd /usr/local/src/<br />
wget easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz<br />
tar zxvf lame-3.97.tar.gz<br />
cd /usr/local/src/lame-3.97<br />
./configure<br />
make &amp;&amp; make install</p></blockquote>
<p><strong><span style="text-decoration: underline;">OGG</span></strong></p>
<blockquote><p>cd /usr/local/src/<br />
wget downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz<br />
tar zxvf libogg-1.1.3.tar.gz<br />
cd /usr/local/src/libogg-1.1.3<br />
./configure &#8211;enable-shared &amp;&amp; make &amp;&amp; make install<br />
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig<br />
export PKG_CONFIG_PATH</p></blockquote>
<p><strong><span style="text-decoration: underline;">VORBIS</span></strong></p>
<blockquote><p>cd /usr/local/src/<br />
wget downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz<br />
tar zxvf libvorbis-1.1.2.tar.gz<br />
cd /usr/local/src/libvorbis-1.1.2<br />
./configure &amp;&amp; make &amp;&amp; make install</p></blockquote>
</div>
<div><span style="text-decoration: underline;"><strong>Theora</strong></span></div>
<blockquote>
<div>cd /usr/local/src/</div>
<div>wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2</div>
<div>tar jxvf libtheora-1.1.1.tar.bz2</div>
<div>cd /usr/local/src/libtheora-1.1.1</div>
<div>./configure &#8211;prefix=/usr</div>
<div>make &amp;&amp; make install</div>
</blockquote>
<div><span style="text-decoration: underline;"><strong>FAAC</strong></span></div>
<blockquote>
<div>cd /usr/local/src/</div>
<div>wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz</div>
<div>tar zxvf faac-1.28.tar.gz<br />
cd /usr/local/src/faac-1.28</div>
<div>./configure &#8211;prefix=/usr<br />
make &amp;&amp; make install</div>
</blockquote>
<div><em><em> </em></em></div>
<div>
<p><span style="text-decoration: underline;"><strong>FAAD2</strong></span></p>
<blockquote><p>cd /usr/local/src/<br />
wget http:<span class="code-comment">//downloads.sourceforge.net/faac/faad2-2.6.1.tar.gz<br />
tar zxf faad2-2.6.1.tar.gz<br />
cd faad2<br />
autoreconf -vif<br />
./configure –disable-drm –disable-mpeg4ip<br />
make &amp;&amp; make install</span></p></blockquote>
</div>
<div><span style="text-decoration: underline;"><strong>Xvid</strong></span></div>
<blockquote>
<div>cd /usr/local/src/<br />
wget http://downloads.xvid.org/downloads/xvidcore-1.2.1.tar.gz<br />
tar zxfv xvidcore-1.2.1.tar.gz<br />
cd xvidcore/build/<span class="code-keyword">generic</span><br />
./configure<br />
make &amp;&amp; make install</div>
</blockquote>
<p>Before installing ffmpeg, setup some linking for scripts that look in certain locations for codecs:</p>
<blockquote><p>ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50<br />
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51<br />
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49<br />
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0<br />
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51<br />
ln -s /usr/lib/libtheora.so.0.3.10 /usr/local/lib/libtheora.so.0.3.10<br />
ln -s /usr/lib/libx264.so.80 /usr/local/lib/libx264.so.80<br />
ln -s /usr/lib/libtheora.so.0.3.10 /usr/local/lib/libtheora.so<br />
ln -s /usr/lib/libx264.so.80 /usr/local/lib/libx264.so</p></blockquote>
<p><strong><span style="text-decoration: underline;">FFMPEG </span></strong><span style="text-decoration: underline;">(download latest from SVN)</span></p>
<blockquote><p>cd /usr/local/src/<br />
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg<br />
cd /usr/local/src/ffmpeg/<br />
./configure &#8211;enable-gpl &#8211;enable-shared &#8211;enable-nonfree &#8211;enable-libmp3lame &#8211;enable-libvorbis &#8211;enable-libxvid &#8211;enable-libx264 &#8211;enable-libtheora &#8211;enable-libfaac &#8211;enable-libfaad<br />
make &amp;&amp; make install<br />
export LD_LIBRARY_PATH=/usr/local/lib/</p></blockquote>
<p>FFMPEG configure options use 2 x &#8220;-&#8221;.</p>
<p><strong><span style="text-decoration: underline;">MPLAYER</span></strong></p>
<blockquote><p>cd /usr/local/src/<br />
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer<br />
cd /usr/local/src/mplayer<br />
svn update<br />
cd /usr/local/src/mplayer<br />
./configure &amp;&amp; make &amp;&amp; make install<br />
cd ..</p></blockquote>
<p><strong><span style="text-decoration: underline;">FLVTOOL2</span></strong><br />
First install Ruby from WHM.</p>
<blockquote><p>cd /usr/local/src/<br />
wget rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz<br />
tar zxvf flvtool2_1.0.5_rc6.tgz<br />
cd /usr/local/src/flvtool2_1.0.5_rc6/<br />
ruby setup.rb config<br />
ruby setup.rb setup<br />
ruby setup.rb install</p></blockquote>
<p><span style="text-decoration: underline;"><strong>YAMDI</strong></span></p>
<blockquote><p>cd /usr/local/src/<br />
wget http://downloads.sourceforge.net/project/yamdi/yamdi/1.4/yamdi-1.4.tar.gz?use_mirror=ufpr<br />
tar zxf yamdi-1.4.tar.gz<br />
cd yamdi-1.4<br />
gcc yamdi.c -o yamdi -O2 -Wall<br />
mv yamdi /usr/bin/<br />
yamdi -h</p></blockquote>
<p><span style="text-decoration: underline;"><strong>INSTALLATION RESULTS</strong></span></p>
<p>mencoder: /usr/local/bin/mencoder<br />
mplayer: /usr/local/bin/mplayer<br />
yamdi: /usr/bin/yamdi</p>
<p>Add these shortcuts to /usr/bin if you need these there by default:<br />
mencoder to /usr/local/bin/mencoder<br />
mplayer to /usr/local/bin/mplayer</p>
<p><strong>SuPHP fix<br />
</strong></p>
<p>With suphp  &#8220;env -i&#8221; is required when executing php scripts.</p>
<p>exec(&#8220;env -i /usr/<em>bin</em>/<em>php </em>&#8221; . $cmd.  &#8216;&gt;/dev/null &amp;&#8217;);</p>
<p><span style="text-decoration: underline;"><strong>MediaInfo</strong></span></p>
<p>http://mediainfo.sourceforge.net/en/Download/CentOS</p>
<blockquote><p>wget http://downloads.sourceforge.net/zenlib/libzen0-0.4.14-1.i386.CentOS_5.rpm<br />
wget http://downloads.sourceforge.net/zenlib/libzen0-devel-0.4.14-1.i386.CentOS_5.rpm<br />
wget http://downloads.sourceforge.net/mediainfo/libmediainfo0-0.7.32-1.i386.CentOS_5.rpm<br />
wget http://downloads.sourceforge.net/mediainfo/libmediainfo0-devel-0.7.32-1.i386.CentOS_5.rpm<br />
wget http://downloads.sourceforge.net/mediainfo/mediainfo-0.7.32-1.i386.CentOS_5.rpm<br />
rpm -vi libzen0-0.4.14-1.i386.CentOS_5.rpm<br />
rpm -vi libzen0-devel-0.4.14-1.i386.CentOS_5.rpm<br />
rpm -vi libmediainfo0-0.7.32-1.i386.CentOS_5.rpm<br />
rpm -vi libmediainfo0-devel-0.7.32-1.i386.CentOS_5.rpm<br />
rpm -vi mediainfo-0.7.32-1.i386.CentOS_5.rpm</p></blockquote>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 343px; width: 1px; height: 1px;">
<p>YASM is a modular assembler, it is required by the x264 package.</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family: monospace;">codec:$ <span style="color: #c20cb9; font-weight: bold;">wget</span> \
http:<span style="color: #000000; font-weight: bold;">//</span>www.tortall.net<span style="color: #000000; font-weight: bold;">/</span>projects<span style="color: #000000; font-weight: bold;">/</span>yasm<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>yasm-0.7.0.tar.gz
codec:$ <span style="color: #c20cb9; font-weight: bold;">tar</span> zfvx yasm-0.7.0.tar.gz
codec:$ <span style="color: #7a0874; font-weight: bold;">cd</span> yasm-0.7.0
codec:$ .<span style="color: #000000; font-weight: bold;">/</span>configure
codec:$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
codec:$ <span style="color: #7a0874; font-weight: bold;">cd</span> ..</pre>
</div>
</div>
</div>
<ul class="related_post"><li>April 29, 2009 -- <a href="http://www.videochat-scripts.com/installed-red5-08-rc3-with-jdk-1613-on-linux/" title="Installed Red5 0.8 RC3 with JDK 1.6.13 on Linux">Installed Red5 0.8 RC3 with JDK 1.6.13 on Linux</a></li><li>April 3, 2010 -- <a href="http://www.videochat-scripts.com/install-red5-on-suse-linux/" title="Install Red5 on SUSE Linux">Install Red5 on SUSE Linux</a></li><li>March 1, 2010 -- <a href="http://www.videochat-scripts.com/red5-linux-server-optimizations-and-tools/" title="Red5 Linux Server Optimizations and Tools">Red5 Linux Server Optimizations and Tools</a></li><li>October 7, 2009 -- <a href="http://www.videochat-scripts.com/install-red5-0-9-on-linux-ubuntu/" title="Install Red5 0.9 on Linux Ubuntu">Install Red5 0.9 on Linux Ubuntu</a></li><li>January 13, 2010 -- <a href="http://www.videochat-scripts.com/run-red5-wowza-flash-media-servers-on-same-linux-server/" title="Run Red5 &#038; Wowza Flash Media Servers on Same Linux Server">Run Red5 &#038; Wowza Flash Media Servers on Same Linux Server</a></li><li>February 10, 2010 -- <a href="http://www.videochat-scripts.com/install-geoip-php-extension/" title="Install GeoIP PHP Extension">Install GeoIP PHP Extension</a></li><li>October 31, 2009 -- <a href="http://www.videochat-scripts.com/videowhisper-video-recorder/" title="VideoWhisper Video Recorder">VideoWhisper Video Recorder</a></li><li>September 11, 2009 -- <a href="http://www.videochat-scripts.com/live-streaming-v2-by-videowhisper/" title="Live Streaming v2 by VideoWhisper">Live Streaming v2 by VideoWhisper</a></li><li>May 16, 2009 -- <a href="http://www.videochat-scripts.com/red5-hosting-for-video-chat-scripts/" title="Red5 Hosting for Video Chat Scripts">Red5 Hosting for Video Chat Scripts</a></li><li>July 28, 2009 -- <a href="http://www.videochat-scripts.com/videowhisper-2-way-video-chat-script/" title="VideoWhisper 2 Way Video Chat Script">VideoWhisper 2 Way Video Chat Script</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.videochat-scripts.com/install-ffmpeg-mplayer-flvtool2-yamdi-x264-theora-mp3lame-vorbis-ogg-faac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Red5 0.9 on Linux Ubuntu</title>
		<link>http://www.videochat-scripts.com/install-red5-0-9-on-linux-ubuntu/</link>
		<comments>http://www.videochat-scripts.com/install-red5-0-9-on-linux-ubuntu/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 14:34:25 +0000</pubDate>
		<dc:creator>VideoChat Scripts</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[guideline]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[instructions]]></category>
		<category><![CDATA[interactive]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[jre]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[manual]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[red5]]></category>
		<category><![CDATA[rtmp]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[steps]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[v0.9]]></category>

		<guid isPermaLink="false">http://www.videochat-scripts.com/?p=146</guid>
		<description><![CDATA[This post shows how to install latest Red5 from trunk on Linux Ubuntu. For other linux flavors (i.e. Centos) see this comprehensive tutorial Install Red5 and JDK on Centos. This installation was done from windows so we used  WinSCP and PuTTy (free software)  and was inspired from online tutorials. This installation was done fluently: if]]></description>
			<content:encoded><![CDATA[<p>This post shows how to install latest Red5 from trunk on Linux Ubuntu.</p>
<p>For other linux flavors (i.e. Centos) see this comprehensive tutorial <a href="http://www.videochat-scripts.com/installed-red5-08-rc3-with-jdk-1613-on-linux/">Install Red5 and JDK on Centos</a>.</p>
<p><span id="more-146"></span></p>
<p>This installation was done from windows so we used  WinSCP and PuTTy (free software)  and was inspired from online tutorials.<br />
This installation was done fluently: if you go to other folders and do other tasks during the installation make sure you return to the right folder before resuming.</p>
<p>First installed required packages one by one:<br />
<strong>apt-get install subversion<br />
apt-get install java-package<br />
apt-get install sun-java6-jdk<br />
apt-get install ant</strong></p>
<p>Used arrows to browse to the Ok and confirm on jdk installation dialogs.</p>
<p>Verified installed java version:<strong><br />
java -version </strong></p>
<p>Downloaded latest Red5:<strong><br />
mkdir -p ~/svn/red5<br />
cd ~/svn/red5<br />
svn co http://red5.googlecode.com/svn/java/server/trunk red5</strong></p>
<p>Build Red5 with Ant:<br />
<strong>export JAVA_HOME=/usr/lib/jvm/java-6-sun/</strong><br />
<strong>export ANT_HOME=/usr/share/ant/</strong><br />
<strong>cd ~/svn/red5/red5<br />
/usr/share/ant/bin/ant</strong></p>
<p>Installed Red5:<strong><br />
mkdir /usr/share/red5<br />
cp -R dist/* /usr/share/red5/</strong><br />
<strong>cd /usr/share/red5<br />
chmod 755 red5.sh<br />
chmod 755 red5-shutdown.sh</strong></p>
<p>Started Red5:<br />
<strong>./red5.sh &gt; start.log &amp;</strong></p>
<p>Verified opened ports:<br />
<strong>netstat -ant</strong></p>
<p>To install a new rtmp application you need to:</p>
<ol>
<li>Copy application to /usr/share/red5/webapps (i.e. /usr/share/red5/webapps/videowhisper as explained on <a href="http://www.videowhisper.com/?p=RTMP+Applications">VideoWhisper RTMP Applications</a>)</li>
<li>Shutdown red5<br />
<strong>cd /usr/share/red5<br />
./red5-shutdown.sh</strong></li>
<li>Restart red5<strong><br />
./red5.sh</strong></li>
</ol>
<p>An alternative to doing the red5 installation yourself would be to <a href="http://www.videowhisper.com/?p=Red5+Installation">order red5 installation</a> .</p>
<p>If you don’t have the time and experience to run your own server or vps, you should use <a href="http://www.videowhisper.com/?p=Red5+Hosting">managed red5 hosting</a> .</p>
<ul class="related_post"><li>April 3, 2010 -- <a href="http://www.videochat-scripts.com/install-red5-on-suse-linux/" title="Install Red5 on SUSE Linux">Install Red5 on SUSE Linux</a></li><li>April 29, 2009 -- <a href="http://www.videochat-scripts.com/installed-red5-08-rc3-with-jdk-1613-on-linux/" title="Installed Red5 0.8 RC3 with JDK 1.6.13 on Linux">Installed Red5 0.8 RC3 with JDK 1.6.13 on Linux</a></li><li>March 1, 2010 -- <a href="http://www.videochat-scripts.com/red5-linux-server-optimizations-and-tools/" title="Red5 Linux Server Optimizations and Tools">Red5 Linux Server Optimizations and Tools</a></li><li>January 13, 2010 -- <a href="http://www.videochat-scripts.com/run-red5-wowza-flash-media-servers-on-same-linux-server/" title="Run Red5 &#038; Wowza Flash Media Servers on Same Linux Server">Run Red5 &#038; Wowza Flash Media Servers on Same Linux Server</a></li><li>July 9, 2009 -- <a href="http://www.videochat-scripts.com/installing-videowhisper-video-conference-on-your-windows-computer/" title="Installing VideoWhisper Video Conference on your Windows Computer">Installing VideoWhisper Video Conference on your Windows Computer</a></li><li>January 5, 2010 -- <a href="http://www.videochat-scripts.com/install-ffmpeg-mplayer-flvtool2-yamdi-x264-theora-mp3lame-vorbis-ogg-faac/" title="Install ffmpeg mplayer flvtool2 yamdi x264 theora mp3lame vorbis ogg faac">Install ffmpeg mplayer flvtool2 yamdi x264 theora mp3lame vorbis ogg faac</a></li><li>July 28, 2009 -- <a href="http://www.videochat-scripts.com/videowhisper-2-way-video-chat-script/" title="VideoWhisper 2 Way Video Chat Script">VideoWhisper 2 Way Video Chat Script</a></li><li>August 26, 2009 -- <a href="http://www.videochat-scripts.com/online-video-consultation-solution-by-videowhisper/" title="Online Video Consultation Solution by VideoWhisper">Online Video Consultation Solution by VideoWhisper</a></li><li>May 16, 2009 -- <a href="http://www.videochat-scripts.com/red5-hosting-for-video-chat-scripts/" title="Red5 Hosting for Video Chat Scripts">Red5 Hosting for Video Chat Scripts</a></li><li>October 31, 2009 -- <a href="http://www.videochat-scripts.com/videowhisper-video-recorder/" title="VideoWhisper Video Recorder">VideoWhisper Video Recorder</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.videochat-scripts.com/install-red5-0-9-on-linux-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installed Red5 0.8 RC3 with JDK 1.6.13 on Linux</title>
		<link>http://www.videochat-scripts.com/installed-red5-08-rc3-with-jdk-1613-on-linux/</link>
		<comments>http://www.videochat-scripts.com/installed-red5-08-rc3-with-jdk-1613-on-linux/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 01:22:48 +0000</pubDate>
		<dc:creator>VideoChat Scripts</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Video Streaming]]></category>
		<category><![CDATA[0.8]]></category>
		<category><![CDATA[0.9]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[dedicated]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[final]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[instructions]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[jre]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[manual]]></category>
		<category><![CDATA[netstat]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[rc1]]></category>
		<category><![CDATA[rc2]]></category>
		<category><![CDATA[rc3]]></category>
		<category><![CDATA[red5]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[tag]]></category>
		<category><![CDATA[trunk]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[winscp]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.videochat-scripts.com/?p=61</guid>
		<description><![CDATA[Updated for Red5 0.9.1 Final . Updated for JDK 1.6.20 . Updated for ANT 1.8.1 . Here is how we installed latest Red5 and JDK on a server with Linux CentOS . These hints can help you install on many linux VPS or Dedicated enviroments.  We mainly do software development and work from windows, so]]></description>
			<content:encoded><![CDATA[<p><em>Updated for Red5 0.9.1 Final .<br />
Updated for JDK 1.6.20 .<br />
Updated for ANT 1.8.1 .</em></p>
<p>Here is how we installed latest Red5 and JDK on a server with Linux CentOS . These hints can help you install on many linux VPS or Dedicated enviroments.  We mainly do software development and work from windows, so we use WinSCP and PuTTy (free software). We browsed a lot of tutorials and web pages to get instructions that installed latest versions.</p>
<p>First, we made sure we have all prerequisites to install the rpm:</p>
<p><strong>yum install rpm-build </strong><strong>redhat-rpm-config</strong><strong><br />
</strong></p>
<p>Allow required ports (not necessary if already opened): 3690 (svn), 5080, 1935, 1936, 8088.  See more details at the end of this tutorial.<em> </em></p>
<p><strong><br />
</strong></p>
<p><strong>JAVA INSTALLATION</strong></p>
<p>We installed latest JDK from <a href="http://java.sun.com/javase/downloads/index.jsp">http://java.sun.com/javase/downloads/index.jsp</a> .</p>
<p>Use <strong>uname -a </strong>to see if you need to download a 64 bits version.</p>
<p>Went to root/tmp folder for downloads: <strong><br />
cd /root/tmp</strong></p>
<p>We got Java SE Development Kit, JDK 6 Update 13. We selected linux multilanguage, right clicked &gt; properties on the jdk-6u13-linux-i586-rpm.bin and downloaded it with <strong>wget <em>url</em></strong><em> </em>on the server. It downloaded with a big name with parameters (<strong>ls</strong> to see after download). We use WinSCP so we right clicked, refreshed from there and then renamed the new file that showed up in the root home directory.<br />
You can also rename it from shell. Make sure you use mv &#8220;old_long_name&#8221; new_name for the long name as it uses special characters.</p>
<p><em>Make sure you install JDK and not JRE.<br />
</em><em><br />
</em></p>
<p>Made it executable and executed it:</p>
<p><strong>chmod a+x jdk-6u13-linux-i586-rpm.bin<br />
./</strong><strong>jdk-6u13-linux-i586-rpm.bin </strong></p>
<p>Press space or enter to scroll terms and when it asks you type yes and hit enter.<br />
If needed confirm Java DB update, yes ENTER.</p>
<blockquote><p>We installed it on multiple servers and had to change some shortcuts on ones that already had an older java, so it runs the new one. Usually if preinstalled it’s located in a java or jdk folder in /usr or /usr/local .</p>
<p><em> Make sure  the shortcuts in /usr/local point to the new locations (/usr/local/jdk to /usr/java/jdk1.6.0_14 and /usr/local/jre to /usr/java/jdk1.6.0_14/jre) .</em><br />
<strong>ln -s </strong><strong>/usr/java/latest </strong><strong>/usr/local/jdk<br />
ln -s </strong><strong>/usr/java/latest/jre </strong><strong>/usr/local/jre<br />
</strong></p>
<p>Also /usr/bin/java shortcut should point to<strong> </strong> /usr/java/latest (not /etc/alternatives/java):<br />
<strong>rm /usr/bin/java</strong><br />
<strong>ln -s </strong><strong>/usr/java/latest/bin/java </strong><strong>/usr/bin/java<br />
</strong></p>
<p><strong>export JAVA_HOME=/usr/java/latest/</strong></p></blockquote>
<p>Make sure this is the one used if you also have older versions installed:<strong><br />
java –version</strong></p>
<p><strong><br />
</strong></p>
<p><strong>ANT INSTALLATION<br />
</strong></p>
<p>Downloaded ant (can be done from any mirror &#8211; see <a href="http://ant.apache.org/bindownload.cgi">http://ant.apache.org/bindownload.cgi</a>), unpacked it, moved it to a good location and added variable, shortcut. <strong> </strong></p>
<p>Get ANT<strong><br />
</strong></p>
<p><strong>wget http://www.apache.org/dist/ant/binaries/apache-ant-1.8.1-bin.tar.gz</strong><strong><br />
tar zxvf apache-ant-1.8.1-bin.tar.gz<br />
mv apache-ant-1.8.1 /usr/local/ant</strong></p>
<blockquote><p>If older  ANT is preferred get latest from <a href="http://archive.apache.org/dist/ant/binaries/ ">http://archive.apache.org/dist/ant/binaries/</a> .<br />
i.e. ANT 1.7.1<br />
wget  http://www.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.tar.gz<br />
tar zxvf apache-ant-1.7.1-bin.tar.gz<br />
mv apache-ant-1.7.1 /usr/local/ant</p></blockquote>
<p>Configure<br />
<strong>export ANT_HOME=/usr/local/ant<br />
ln -s /usr/local/ant/bin/ant /usr/local/bin/ant</strong></p>
<blockquote><p>Replace old ant<br />
<strong>rm /usr/bin/ant<br />
ln -s /usr/local/ant/bin/ant /usr/bin/ant</strong></p></blockquote>
<p>Checked ant version:<br />
<strong>ant –version</strong></p>
<p>If this can&#8217;t find java, make sure you run <strong>export JAVA_HOME=/usr/java/latest/</strong>.</p>
<blockquote><p>Error: JAVA_HOME is not defined correctly.<br />
We cannot execute /usr/local/jdk/bin/java</p></blockquote>
<p><strong>SUBVERSION INSTALLATION<br />
</strong></p>
<p><strong>yum install subversion</strong></p>
<p>If that doesn&#8217;t work maybe this can help:</p>
<blockquote><p>Fix: Install perl  uri:<br />
wget  ftp://rpmfind.net/linux/dag/redhat/el2.1/en/i386/dag/RPMS/perl-URI-1.17-1.el2.rf.noarch.rpm<br />
rpm –i perl-URI-1.17-1.el2.rf.noarch.rpm<strong><br />
</strong></p></blockquote>
<blockquote><p><em>Fix: This time got  &#8220;Error: Cannot retrieve repository metadata (repomd.xml) for repository: atrpms. Please verify its path and try again&#8221; .<br />
Solution: <strong>yum &#8211;disablerepo=atrpms install subversion</strong> .<br />
</em></p></blockquote>
<p><strong>RED5 BUILD AND INSTALLATION<br />
</strong></p>
<p>Then we downloaded Red5:<br />
<strong>svn co http://red5.googlecode.com/svn/java/server/trunk red5</strong></p>
<p><em>Update1: This downloads latest Red5. On this installation (update1) Red5 0.9 was downloaded.</em></p>
<blockquote><p><em> If latest trunk has bugs or does not work fine with your required software you can download other versions from </em><a href="http://red5.googlecode.com/svn/java/server/tags/">http://red5.googlecode.com/svn/java/server/tags/</a><em> .</em></p>
<p><em>Example:<br />
<strong>svn co </strong></em><strong>http://red5.googlecode.com/svn/java/server/tags/0_8_0/ red5<br />
</strong>or<br />
<em> <strong>svn co http://red5.googlecode.com/svn/java/server/tags/0_9rc1/ red5</strong></em></p></blockquote>
<p>Built red5 :<br />
<strong>cd red5<br />
ant prepare<br />
ant dist<br />
</strong></p>
<blockquote><p>On upgrade, copy webapps to new build.</p>
<p>cp -rf /opt/red5/dist/webapps/* /root/tmp/red5/dist/webapps/</p>
<p>Then rename old red5 (backup).</p>
<p>You could also remove sample applications if you don&#8217;t plan to use these:<br />
rm -rf /opt/red5/dist/webapps/live<br />
rm -rf /opt/red5/dist/webapps/vod<br />
rm -rf /opt/red5/dist/webapps/installer<br />
rm -rf /opt/red5/dist/webapps/root/demos<br />
rm -rf /opt/red5/dist/webapps/root/WEB-INF</p></blockquote>
<p>Moved Red5 from home folder:<br />
<strong>cd ..<br />
mv red5 /opt/red5<br />
</strong></p>
<p>Started Red5:<br />
<strong>cd /opt/red5/dist<br />
./red5.sh &gt; start.log &amp;<br />
</strong></p>
<p>The &gt; start.log is to have it output the logs in the file and &amp; is to keep it running in the background.</p>
<p>Verified that Red5 was running:<br />
<strong>ps aux | grep red5<br />
</strong>This should report a long line with java and many options and this command. Check start.log if it failed to start.</p>
<p>We added these lines to to /etc/rc.d/rc.local so it starts on each server start:<br />
<strong>cd /opt/red5/dist<br />
/opt/red5/dist/red5.sh &gt; restart.log &amp;</strong><br />
Make sure your run it from the right folder. The one in /opt/red5 will not work – you must run it from /opt/red5/dist/ .</p>
<p>When Red5 is running you should be able to access <span style="color: #333399;"><strong>http://<em>your-server-domain-or-ip</em>:5080/</strong></span> .</p>
<p>If it works first thing go to <span style="color: #333399;">http://your-server:5080/installer/</span>and install admin. Then to <span style="color: #333399;">http://your-server:5080/admin/register.html</span> and register an username and password. Then you can check application statistics anytime from <span style="color: #333399;">http://your-server:5080/admin/</span> with server ip and the registered username, password.</p>
<p><strong>RED 5 RESTART</strong></p>
<p>Restart Red5 anytime you update files in the /opt/red5/dist/webapps folder &#8211; where all applications should be installed.</p>
<p>Usually these should work and should be used each time you add a new application.</p>
<p>1. Check if red5 is running:<strong><br />
ps aux | grep red5</strong></p>
<p>2. Go to its folder and shut red5 down:<br />
<strong>cd /opt/red5/dist<br />
./red5-shutdown.sh<br />
</strong><strong><br />
</strong>3. See if it&#8217;s still running or not:<br />
<strong>ps aux | grep red5</strong></p>
<p><strong> </strong>4. Restart it, and also make it output the logs into a file of your choice:<br />
<strong>./red5.sh &gt; start.log &amp;</strong></p>
<p>5. Make sure it&#8217;s back online:<br />
<strong>ps aux | grep red5</strong> <strong> </strong></p>
<p>We also noticed that red-shutdown.sh sometimes does not close it down to allow restart when webapps are added or updated. This usually occurs when red5 freezes becasue it encounters errors like running out of memory. So we run <strong>ps aux | grep red5</strong> to see process id (first number: PID) and then run<strong> kill <em>process id</em></strong> if it’s still alive.</p>
<p><strong>ALLOWING PORTS</strong></p>
<p>On some systems root cannot bind ports above the early 1000&#8242;s so red5 must be run from another account.</p>
<p>Verify that Red5 is listening on port 5080 if you can&#8217;t get http://yourserver:5080/:<br />
<strong>netstat -anp | grep 5080</strong></p>
<p>If using iptables enable these ports:<br />
<em><strong>iptables -A INPUT -p tcp -m tcp -—dport 3690 -j ACCEPT<br />
</strong></em><em><strong>iptables -A INPUT -p tcp -m tcp —-dport 5080 -j ACCEPT<br />
</strong></em><em><strong>iptables -A INPUT -p tcp -m tcp -—dport 1935 -j ACCEPT<br />
</strong></em><em><strong>iptables -A INPUT -p tcp -m tcp —-dport 1936 -j ACCEPT<br />
</strong></em><em><strong>iptables -A INPUT -p tcp -m tcp -—dport 8088 -j ACCEPT</strong></em></p>
<p>Sometimes ports need to be configured in a hardware firewall. Contact server provider / administrator for more details about enabling ports.</p>
<p>This info provided by a host could also be helpful.</p>
<blockquote><p>Please be advised that custom iptables rules should be placed in the directory listed below.<br />
/etc/sysconfig/iptables-custom</p>
<p>The software firewall rule is listed as follows:<br />
# cat /etc/sysconfig/iptables-custom/99Red5 *filter</p>
<p>-A INPUT -p tcp -m tcp &#8211;dport 1935 -j ACCEPT<br />
-A INPUT -p tcp -m tcp &#8211;dport 1936 -j ACCEPT<br />
-A INPUT -p tcp -m tcp &#8211;dport 5080 -j ACCEPT<br />
-A INPUT -p tcp -m tcp &#8211;dport 8088 -j ACCEPT</p>
<p>COMMIT</p></blockquote>
<p><strong>RED5 &amp; VIDEOWHISPER</strong></p>
<p>This was done for the installation of VideoWhisper applications. To do that just <a href="http://www.videowhisper.com/?p=RTMP+Applications">download the latest videowhisper rtmp application</a>, unzip it on your computer and copy the videowhisper folder and all its contents to/opt/red5/dist/webapps .  As verification, check that you have a /opt/red5/dist/webapps/videowhisper/WEB-INF/ folder on your server. After copying/updating this, restart the Red5 server (as explained above) and you can install the <a href="http://www.videowhisper.com/">videowhisper video conferencing / live streaming scrips</a> to use the new rtmp application.</p>
<p>The Red5 VideoWhisper RTMP Application has some cool settings, like enabling access with external players / archiving of all video streams as flv files / limiting access to certain domains / setting absolute paths for live streams and recordings to be able to share videos with other applications (i.e. video sharing). Edit all these in WEB-INF/red5-web.properties and restart the Red5 server.</p>
<p>If we forgot to mention something here, or you have any questions about this submit your inquiries on <a href="http://www.videowhisper.com/tickets_submit.php">Video Whisper Contact Page</a> or comment below.</p>
<p>An alternative to doing the red5 installation yourself would be to <a href="http://www.videowhisper.com/?p=Red5+Installation">order red5 installation</a> .</p>
<p>If you don&#8217;t have the time and experience to run your own server or vps, you should use <a href="http://www.videowhisper.com/?p=Red5+Hosting">managed red5 hosting</a> .</p>
<ul class="related_post"><li>October 7, 2009 -- <a href="http://www.videochat-scripts.com/install-red5-0-9-on-linux-ubuntu/" title="Install Red5 0.9 on Linux Ubuntu">Install Red5 0.9 on Linux Ubuntu</a></li><li>April 3, 2010 -- <a href="http://www.videochat-scripts.com/install-red5-on-suse-linux/" title="Install Red5 on SUSE Linux">Install Red5 on SUSE Linux</a></li><li>January 5, 2010 -- <a href="http://www.videochat-scripts.com/install-ffmpeg-mplayer-flvtool2-yamdi-x264-theora-mp3lame-vorbis-ogg-faac/" title="Install ffmpeg mplayer flvtool2 yamdi x264 theora mp3lame vorbis ogg faac">Install ffmpeg mplayer flvtool2 yamdi x264 theora mp3lame vorbis ogg faac</a></li><li>March 1, 2010 -- <a href="http://www.videochat-scripts.com/red5-linux-server-optimizations-and-tools/" title="Red5 Linux Server Optimizations and Tools">Red5 Linux Server Optimizations and Tools</a></li><li>January 13, 2010 -- <a href="http://www.videochat-scripts.com/run-red5-wowza-flash-media-servers-on-same-linux-server/" title="Run Red5 &#038; Wowza Flash Media Servers on Same Linux Server">Run Red5 &#038; Wowza Flash Media Servers on Same Linux Server</a></li><li>July 9, 2009 -- <a href="http://www.videochat-scripts.com/installing-videowhisper-video-conference-on-your-windows-computer/" title="Installing VideoWhisper Video Conference on your Windows Computer">Installing VideoWhisper Video Conference on your Windows Computer</a></li><li>February 10, 2010 -- <a href="http://www.videochat-scripts.com/install-geoip-php-extension/" title="Install GeoIP PHP Extension">Install GeoIP PHP Extension</a></li><li>February 1, 2010 -- <a href="http://www.videochat-scripts.com/red5-0-9-final-released/" title="Red5 0.9 Final Released">Red5 0.9 Final Released</a></li><li>March 4, 2009 -- <a href="http://www.videochat-scripts.com/red5-support-for-videowhisper-projects/" title="Red5 Support for VideoWhisper Projects">Red5 Support for VideoWhisper Projects</a></li><li>May 16, 2009 -- <a href="http://www.videochat-scripts.com/red5-hosting-for-video-chat-scripts/" title="Red5 Hosting for Video Chat Scripts">Red5 Hosting for Video Chat Scripts</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.videochat-scripts.com/installed-red5-08-rc3-with-jdk-1613-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
