<?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/"
	>

<channel>
	<title>Beier Cai</title>
	<atom:link href="http://beiercai.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://beiercai.com</link>
	<description>Vancouver, BC, Canada</description>
	<pubDate>Sat, 15 Aug 2009 04:42:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Updated - Setup Red5 and FFMPEG on Ubuntu 8.0.4</title>
		<link>http://beiercai.com/2009/08/updated-setup-red5-and-ffmpeg-on-ubuntu-8-0-4/</link>
		<comments>http://beiercai.com/2009/08/updated-setup-red5-and-ffmpeg-on-ubuntu-8-0-4/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 23:49:17 +0000</pubDate>
		<dc:creator>Beier Cai</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://beiercai.com/?p=97</guid>
		<description><![CDATA[This an updated version of my previous post here. This version contains some of the latest software updates. Please note that this install may not work for 64bit system. If you can make it work for 64bit system, please let me know.
Please note that a wrong software version could lead to compatibility issues, so I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://osflash.org/red5/"><img class="size-full wp-image-80" title="red5" src="http://beiercai.com/wp-content/uploads/2009/02/red5.gif" alt="Red5 Logo" width="150" height="60" /></a>This an updated version of my previous post <a href="http://beiercai.com/2009/02/setup-red5-and-ffmpeg-on-ubuntu-804/">here</a>. This version contains some of the latest software updates. Please note that this install may not work for 64bit system. If you can make it work for 64bit system, please let me know.</p>
<p>Please note that a wrong software version could lead to compatibility issues, so I can&#8217;t guarantee it will work if you don&#8217;t download the version I specified in the instructions. This instruction is targeted to Ubuntu 8.04, but with some tweaks it should work for all linux O/S</p>
<h3>Setup Red5 v0.7.0 on Ubuntu Hardy 8.04</h3>
<h4>Prerequisits</h4>
<p>Please note that while installing java-package, you need to force install and agree to Suns Java service agreement (F12 in command line, or click on yes if using package manager)</p>
<p><code>sudo apt-get install java-package<br />
sudo apt-get install sun-java6-jdk<br />
sudo apt-get install sun-java6-jre<br />
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun/</code></p>
<h4>Download Red5 v0.7.0</h4>
<p><a href="http://www.red5.fr/release/0.7.0/debian/red5_0.7.0_all.deb">http://www.red5.fr/release/0.7.0/debian/red5_0.7.0_all.deb</a></p>
<h4>Install Red 5</h4>
<p><code>sudo dpkg -i red5_0.7.0_all.deb</code></p>
<p>Once installed, you can start/stop/restart by:</p>
<p><code>sudo /etc/init.d/red5 start|stop|restart</code></p>
<p>Red5 is installed under the following directory by default:</p>
<p>/usr/lib/red5</p>
<p>To verify installation, use the port 5080 to test Red5:</p>
<p><a href="http://localhost:5080/">http://localhost:5080</a></p>
<p>run some demo and make sure everything works</p>
<h3>Setup FFMPEG on Ubuntu Hardy 8.04</h3>
<h4>First make sure the system is up to date</h4>
<p><code>sudo apt-get update<br />
sudo apt-get upgrade</code></p>
<h4>Prerequisites</h4>
<p><code>sudo apt-get install libjpeg-progs libjpeg62 libjpeg62-dev<br />
sudo apt-get install libsdl1.2-dev php5-dev build-essential<br />
sudo apt-get install unzip subversion ruby libcurses-ruby</code></p>
<h4>Make a dir for downloads and operations</h4>
<p><code>sudo mkdir /usr/local/ffmpegsource<br />
cd /usr/local/ffmpegsource</code></p>
<h4>Download software</h4>
<ul>
<li><strong>MPlayer Binary Codec Packages</strong>: <a href="http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2">http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2</a></li>
<li><strong>FLVTool2</strong>: <a href="http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz">http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz</a></li>
<li><strong>Lame</strong>: http://downloads.sourceforge.net/project/lame/lame/3.97/lame-3.97.tar.gz</li>
<li><strong>Libogg</strong>: http://downloads.xiph.org/releases/ogg/libogg-1.1.4.tar.gz</li>
<li><strong>libvorbis</strong>: http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.3.tar.gz</li>
<li><strong>amrnb</strong>: <a href="http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2">http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2</a></li>
<li><strong>amrwb</strong>: <a href="http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2">http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2</a></li>
<li><strong>libtheora</strong>: http://downloads.xiph.org/releases/theora/libtheora-1.0.tar.bz2</li>
<li><strong>Ffmpeg-php</strong>: <a href="http://downloads.sourceforge.net/ffmpeg-php/ffmpeg-php-0.6.0.tbz2">http://downloads.sourceforge.net/ffmpeg-php/ffmpeg-php-0.6.0.tbz2</a></li>
</ul>
<h4>Unzip the downloaded files</h4>
<p>sudo tar zxvf lame-3.97.tar.gz<br />
sudo tar zxvf libogg-1.1.4.tar.gz<br />
sudo tar zxvf libvorbis-1.2.3.tar.gz<br />
sudo tar zxvf flvtool2-1.0.6.tgz<br />
sudo tar jxvf essential-20071007.tar.bz2<br />
sudo bzip2 -cd amrnb-7.0.0.2.tar.bz2 | sudo tar xvf -<br />
sudo bzip2 -cd amrwb-7.0.0.3.tar.bz2 | sudo tar xvf -<br />
sudo bzip2 -cd libtheora-1.0.tar.bz2 | sudo tar xvf -<br />
sudo tar jxvf ffmpeg-php-0.6.0.tbz2</p>
<h4>Use Subversion to checkout ffmpeg</h4>
<p><code>sudo svn co -r 19352 svn://svn.mplayerhq.hu/ffmpeg/branches/0.5 ffmpeg<br />
sudo svn co -r 29230 svn://svn.mplayerhq.hu/mplayer/branches/1.0rc3 mplayer</code></p>
<h4>Copy Codecs for mplayer</h4>
<p><code>sudo mkdir /usr/local/lib/codecs<br />
sudo mv /usr/local/ffmpegsource/essential-20071007/* /usr/local/lib/codecs/<br />
sudo chmod -R 755 /usr/local/lib/codecs/</code><br />
make tmp dir for mplayer<br />
<code>sudo mkdir /usr/local/ffmpegsource/tmp<br />
sudo chmod 777 /usr/local/ffmpegsource/tmp<br />
export TMPDIR=/usr/local/ffmpegsource/tmp</code></p>
<h4>Install lame</h4>
<p><code>cd /usr/local/ffmpegsource/lame-3.97<br />
sudo ./configure<br />
sudo make &amp;&amp; sudo make install</code></p>
<h4>Install  libogg</h4>
<p><code>cd /usr/local/ffmpegsource/libogg-1.1.4<br />
./configure<br />
sudo make &amp;&amp; sudo make install</code></p>
<h4>Install libvorbis</h4>
<p><code>cd /usr/local/ffmpegsource/libvorbis-1.2.3<br />
./configure<br />
sudo make &amp;&amp; sudo make install</code></p>
<h4>Install flvtool2</h4>
<p><code>cd /usr/local/ffmpegsource/flvtool2-1.0.6/<br />
sudo ruby setup.rb config<br />
sudo ruby setup.rb setup<br />
sudo ruby setup.rb install</code></p>
<h4>Install mplayer &amp; mencoder</h4>
<p><code>cd /usr/local/ffmpegsource/mplayer<br />
sudo ./configure --enable-jpeg<br />
sudo make &amp;&amp; sudo make install</code></p>
<h4>Install AMR</h4>
<p><strong>AMRNB</strong><br />
<code>cd /usr/local/ffmpegsource/amrnb-7.0.0.2<br />
./configure<br />
sudo make &amp;&amp; sudo make install</code><br />
<strong>AMRWB</strong><br />
<code>cd /usr/local/ffmpegsource/amrwb-7.0.0.3<br />
./configure<br />
sudo make &amp;&amp; sudo make install</code></p>
<h4>Install libtheora (for ogg video encoding)</h4>
<p><code>cd /usr/local/ffmpegsource/libtheora-1.0<br />
./configure<br />
sudo make &amp;&amp; sudo make install</code></p>
<h4>Install ffmpeg</h4>
<p><code>cd /usr/local/ffmpegsource/ffmpeg/<br />
sudo ./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared --enable-libamr-nb --enable-libamr-wb --enable-nonfree --enable-libtheora<br />
sudo make<br />
sudo make install<br />
sudo ln -s /usr/local/lib/libavdevice.so.52 /usr/lib/libavdevice.so.52<br />
sudo ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52<br />
sudo ln -s /usr/local/lib/libavcodec.so.52 /usr/lib/libavcodec.so.52<br />
sudo ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49<br />
sudo ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0<br />
sudo ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51<br />
sudo ln -s /usr/local/lib/libamrnb.so.3 /usr/lib/libamrnb.so.3<br />
sudo ln -s /usr/local/lib/libamrwb.so.3 /usr/lib/libamrwb.so.3</code></p>
<h4>Install ffmpeg-php</h4>
<p><code>cd /usr/local/ffmpegsource/ffmpeg-php-0.6.0/<br />
phpize<br />
./configure<br />
make<br />
make install</code><br />
modify php.ini to load ffmpeg-php and restart apache<br />
<code>sudo vim /etc/php5/apache2/php.ini<br />
extension=ffmpeg.so (add this line to the end of the file)<br />
sudo /etc/init.d/apachpe2 restart</code></p>
<h4>Test your ffmpeg setup</h4>
<p>There are many ways to test your ffmpeg setup such as using command line. But using the PHP class phpvideotoolkit to test your setup and quick and easy.</p>
<p>You can download the toolkit at:</p>
<p><a href="http://www.buggedcom.co.uk/">http://www.buggedcom.co.uk/</a></p>
<p>Run the examples provided and see if everything works as expected.</p>
<p>Note that phpvideotoolkit may still use &#8216;mp3&#8242; as -acodec option, you need to change it to &#8216;libmp3lame&#8217;</p>
<p>That&#8217;s all. Hopefully this can help you save some time and any comment is welcomed!</p>
<p><a name="links"></a></p>
<h4>Resources</h4>
<ul>
<li><a href="http://osflash.org/red5/ubuntu804" target="_blank">http://osflash.org/red5/ubuntu804</a></li>
<li><a href="http://luar.com.hk/blog/?p=669" target="_blank">http://luar.com.hk/blog/?p=669</a></li>
<li><a href="http://vexxhost.com/blog/2007/03/03/installing-ffmpeg-ffmpeg-php-mplayer-mencoder-flv2tool-lame-mp3-encoder-libogg-%E2%80%93-the-easy-way/" target="_blank">http://vexxhost.com/blog/2007/03/03/installing-ffmpeg-ffmpeg-php-mplayer-mencoder-flv2tool-lame-mp3-encoder-libogg-%E2%80%93-the-easy-way/</a></li>
<li><a href="http://rootit.org/2008/06/installing-ffmpeg-ffmpeg-php-other-dependencies-for-clipshare/" target="_blank">http://rootit.org/2008/06/installing-ffmpeg-ffmpeg-php-other-dependencies-for-clipshare/</a></li>
<li><a href="http://linux.justinhartman.com/FFmpeg,_FFmpeg-PHP,_Lame,_Libogg,_Libvorbis,_FLVtool2,_Mplayer,_Mencoder,_AMR_Installation#Install_ffmpeg" target="_blank">FFmpeg, FFmpeg-PHP, Lame, Libogg, Libvorbis, FLVtool2, Mplayer, Mencoder, AMR Installation</a></li>
<li><a href="http://forums.theplanet.com/index.php?showtopic=64541" target="_blank">http://forums.theplanet.com/index.php?showtopic=64541</a></li>
<li><a href="http://luar.com.hk/blog/?p=670" target="_blank">http://luar.com.hk/blog/?p=670</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://beiercai.com/2009/08/updated-setup-red5-and-ffmpeg-on-ubuntu-8-0-4/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Setup Red5 and FFMPEG on Ubuntu 8.04</title>
		<link>http://beiercai.com/2009/02/setup-red5-and-ffmpeg-on-ubuntu-804/</link>
		<comments>http://beiercai.com/2009/02/setup-red5-and-ffmpeg-on-ubuntu-804/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 08:24:58 +0000</pubDate>
		<dc:creator>Beier Cai</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[ffmpeg]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[flv]]></category>

		<category><![CDATA[linkedin]]></category>

		<category><![CDATA[red5]]></category>

		<category><![CDATA[ubuntu 8.04]]></category>

		<category><![CDATA[video]]></category>

		<category><![CDATA[video convertion]]></category>

		<category><![CDATA[video streaming]]></category>

		<guid isPermaLink="false">http://work/beiercai/?p=5</guid>
		<description><![CDATA[ Recently my company asked me to work on a video related project that allows users to upload videos in various formats, record videos through a web cam, and of course play back those user generated videos. After some investigation I decided to use the combination of Red5 Flash streaming server and FFMPEG for video [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://osflash.org/red5/"><img src="http://beiercai.com/wp-content/uploads/2009/02/red5.gif" alt="Red5 Logo" title="red5" width="150" height="60" class="size-full wp-image-80" /></a> Recently my company asked me to work on a video related project that allows users to upload videos in various formats, record videos through a web cam, and of course play back those user generated videos. After some investigation I decided to use the combination of Red5 Flash streaming server and FFMPEG for video conversion (from different formats to FLV). Both are open source thus free of charge. However, setting up FFMPEG on Linux is nothing but a daunting task. Literally there are tens of software to install and their versions have to be the right combination. With some research and good tips from a few <a href="#links">sources</a> I was able to install it and compile this step-by-step instruction on setting up both Red5 and FFMEPG and hopefully it can save bunch of your time.</p>
<p>Please note that a wrong software version could lead to compatibility issues, so I can&#8217;t guarantee it will work if you don&#8217;t download the version I specified in the instructions. This instruction is targeted to Ubuntu 8.04, but with some tweaks it should work for all linux O/S</p>
<h3>Setup Red5 v0.7.0 on Ubuntu Hardy 8.04</h3>
<h4>Prerequisits</h4>
<p>Please note that while installing java-package, you need to force install and agree to Suns Java service agreement (F12 in command line, or click on yes if using package manager)</p>
<p><code>sudo apt-get install java-package<br />
sudo apt-get install sun-java6-jdk<br />
sudo apt-get install sun-java6-jre<br />
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun/</code></p>
<h4>Download Red5 v0.7.0</h4>
<p><a href="http://www.red5.fr/release/0.7.0/debian/red5_0.7.0_all.deb">http://www.red5.fr/release/0.7.0/debian/red5_0.7.0_all.deb</a></p>
<h4>Install Red 5</h4>
<p><code>sudo dpkg -i red5_0.7.0_all.deb</code></p>
<p>Once installed, you can start/stop/restart by:</p>
<p><code>sudo /etc/init.d/red5 start|stop|restart</code></p>
<p>Red5 is installed under the following directory by default:</p>
<p>/usr/lib/red5</p>
<p>To verify installation, use the port 5080 to test Red5:</p>
<p><a href="http://localhost:5080/">http://localhost:5080</a></p>
<p>run some demo and make sure everything works</p>
<h3>Setup FFMPEG on Ubuntu Hardy 8.04</h3>
<h4>First make sure the system is up to date</h4>
<p><code>sudo apt-get update<br />
sudo apt-get upgrade</code></p>
<h4>Prerequisites</h4>
<p><code>sudo apt-get install libjpeg-progs libjpeg62 libjpeg62-dev<br />
sudo apt-get install libsdl1.2-dev php5-dev build-essential<br />
sudo apt-get install unzip subversion ruby libcurses-ruby</code></p>
<h4>Make a dir for downloads and operations</h4>
<p><code>mkdir /usr/local/ffmpegsource<br />
cd /usr/local/ffmpegsource</code></p>
<h4>Download software</h4>
<ul>
<li><strong>MPlayer Binary Codec Packages</strong>: <a href="http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2">http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2</a></li>
<li><strong>FLVTool2</strong>: <a href="http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz">http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz</a></li>
<li><strong>Lame</strong>: <a href="http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz">http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz</a></li>
<li><strong>Libogg</strong>: <a href="http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz">http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz</a></li>
<li><strong>Ffmpeg-php</strong>: <a href="http://downloads.sourceforge.net/ffmpeg-php/ffmpeg-php-0.6.0.tbz2">http://downloads.sourceforge.net/ffmpeg-php/ffmpeg-php-0.6.0.tbz2</a></li>
<li><strong>libvorbis</strong>: <a href="http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz">http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz</a></li>
<li><strong>amrnb</strong>: <a href="http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2">http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2</a></li>
<li><strong>amrwb</strong>: <a href="http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2">http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2</a></li>
<li><strong>libtheora</strong>: <a href="http://downloads.xiph.org/releases/theora/libtheora-1.0beta3.tar.gz">http://downloads.xiph.org/releases/theora/libtheora-1.0beta3.tar.gz</a></li>
</ul>
<h4>Unzip the downloaded files</h4>
<p><code>tar zxvf lame-3.97.tar.gz<br />
tar zxvf libogg-1.1.3.tar.gz<br />
tar zxvf libvorbis-1.2.0.tar.gz<br />
tar zxvf flvtool2-1.0.6.tgz<br />
tar jxvf essential-20071007.tar.bz2<br />
tar jxvf ffmpeg-php-0.6.0.tbz2<br />
bzip2 -cd amrnb-7.0.0.2.tar.bz2 | tar xvf -<br />
bzip2 -cd amrwb-7.0.0.3.tar.bz2 | tar xvf -<br />
tar zxvf libtheora-1.0beta3.tar.gz</code></p>
<h4>Use Subversion to checkout ffmpeg</h4>
<p><code>svn co -r 17311 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg<br />
svn co -r 28578 svn://svn.mplayerhq.hu/mplayer/trunk mplayer</code><br />
go to mplayer dir and run svn update:<br />
<code>cd /usr/local/ffmpegsource/mplayer<br />
svn update</code></p>
<h4>Copy Codecs for mplayer</h4>
<p><code>sudo mkdir /usr/local/lib/codecs<br />
sudo mv /usr/local/ffmpegsource/essential-20071007/* /usr/local/lib/codecs/<br />
sudo chmod -R 755 /usr/local/lib/codecs/<br />
make tmp dir for mplayer<br />
sudo mkdir /usr/local/ffmpegsource/tmp<br />
sudo chmod 777 /usr/local/ffmpegsource/tmp<br />
export TMPDIR=/usr/local/ffmpegsource/tmp</code></p>
<h4>Install lame</h4>
<p><code>cd /usr/local/ffmpegsource/lame-3.97<br />
./configure<br />
sudo make &amp;&amp; sudo make install</code></p>
<h4>Install libogg</h4>
<p><code>cd /usr/local/ffmpegsource/libogg-1.1.3<br />
./configure<br />
sudo make &amp;&amp; sudo make install</code></p>
<h4>Install libvorbis</h4>
<p><code>cd /usr/local/ffmpegsource/libvorbis-1.2.0<br />
./configure<br />
sudo make &amp;&amp; sudo make install</code></p>
<h4>Install flvtool2</h4>
<p><code>cd /usr/local/ffmpegsource/flvtool2-1.0.6/<br />
ruby setup.rb config<br />
ruby setup.rb setup<br />
sudo ruby setup.rb install</code></p>
<h4>Install mplayer &amp; mencoder</h4>
<p><code>cd /usr/local/ffmpegsource/mplayer<br />
./configure --enable-jpeg<br />
sudo make &amp;&amp; sudo make install</code></p>
<h4>Install AMR</h4>
<p><strong>AMRNB</strong><br />
<code>cd /usr/local/ffmpegsource/amrnb-7.0.0.2<br />
./configure<br />
sudo make &amp;&amp; sudo make install</code><br />
<strong>AMRWB</strong><br />
<code>cd /usr/local/ffmpegsource/amrwb-7.0.0.3<br />
./configure<br />
sudo make &amp;&amp; sudo make install</code></p>
<h4>Install libtheora (for ogg video encoding)</h4>
<p><code>cd /usr/local/ffmpegsource/libtheora-1.0beta3<br />
./configure<br />
sudo make &amp;&amp; sudo make install</code></p>
<h4>Install ffmpeg</h4>
<p><code>cd /usr/local/ffmpegsource/ffmpeg/</code><br />
<code>./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared --enable-libamr-nb --enable-libamr-wb --enable-nonfree --enable-libtheora</code><br />
<code>sudo make<br />
sudo make install<br />
sudo ln -s /usr/local/lib/libavdevice.so.52 /usr/lib/libavdevice.so.52<br />
sudo ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52<br />
sudo ln -s /usr/local/lib/libavcodec.so.52 /usr/lib/libavcodec.so.52<br />
sudo ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49<br />
sudo ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0<br />
sudo ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51<br />
sudo ln -s /usr/local/lib/libamrnb.so.3 /usr/lib/libamrnb.so.3<br />
sudo ln -s /usr/local/lib/libamrwb.so.3 /usr/lib/libamrwb.so.3</code></p>
<h4>Install ffmpeg-php</h4>
<p><code>cd /usr/local/ffmpegsource/ffmpeg-php-0.6.0/<br />
phpize<br />
./configure<br />
make<br />
make install</code><br />
modify php.ini to load ffmpeg-php and restart apache<br />
<code>vim /etc/php5/apache2/php.ini<br />
extension=ffmpeg.so (add this line to the end of the file)<br />
sudo /etc/init.d/apache2 restart</code></p>
<h4>Test your ffmpeg setup</h4>
<p>There are many ways to test your ffmpeg setup such as using command line. But using the PHP class phpvideotoolkit to test your setup and quick and easy.</p>
<p>You can download the toolkit at:</p>
<p><a href="http://www.buggedcom.co.uk/">http://www.buggedcom.co.uk/</a></p>
<p>Run the examples provided and see if everything works as expected.</p>
<p>That&#8217;s all. Hopefully this can help you save some time and any comment is welcomed!</p>
<p><a name="links"></a></p>
<h4>Resources</h4>
<ul>
<li><a href="http://osflash.org/red5/ubuntu804" target="_blank">http://osflash.org/red5/ubuntu804</a></li>
<li><a href="http://luar.com.hk/blog/?p=669" target="_blank">http://luar.com.hk/blog/?p=669</a></li>
<li><a href="http://vexxhost.com/blog/2007/03/03/installing-ffmpeg-ffmpeg-php-mplayer-mencoder-flv2tool-lame-mp3-encoder-libogg-%E2%80%93-the-easy-way/" target="_blank">http://vexxhost.com/blog/2007/03/03/installing-ffmpeg-ffmpeg-php-mplayer-mencoder-flv2tool-lame-mp3-encoder-libogg-%E2%80%93-the-easy-way/</a></li>
<li><a href="http://rootit.org/2008/06/installing-ffmpeg-ffmpeg-php-other-dependencies-for-clipshare/" target="_blank">http://rootit.org/2008/06/installing-ffmpeg-ffmpeg-php-other-dependencies-for-clipshare/</a></li>
<li><a href="http://linux.justinhartman.com/FFmpeg,_FFmpeg-PHP,_Lame,_Libogg,_Libvorbis,_FLVtool2,_Mplayer,_Mencoder,_AMR_Installation#Install_ffmpeg" target="_blank">FFmpeg, FFmpeg-PHP, Lame, Libogg, Libvorbis, FLVtool2, Mplayer, Mencoder, AMR Installation</a></li>
<li><a href="http://forums.theplanet.com/index.php?showtopic=64541" target="_blank">http://forums.theplanet.com/index.php?showtopic=64541</a></li>
<li><a href="http://luar.com.hk/blog/?p=670" target="_blank">http://luar.com.hk/blog/?p=670</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://beiercai.com/2009/02/setup-red5-and-ffmpeg-on-ubuntu-804/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

