<?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>Hello System Admin &#124; Where system admins share technical article and tips &#124; Create free Blog &#124; Updates on domains, web hosting, servers and more &#187; FFMPEG</title>
	<atom:link href="http://hellosystemadmin.com/blog/category/linux/php/ffmpeg/feed/" rel="self" type="application/rss+xml" />
	<link>http://hellosystemadmin.com</link>
	<description></description>
	<lastBuildDate>Fri, 09 Jul 2010 04:29:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Install ffmpeg on linux</title>
		<link>http://hellosystemadmin.com/blog/79/</link>
		<comments>http://hellosystemadmin.com/blog/79/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 05:01:18 +0000</pubDate>
		<dc:creator>Aneesh</dc:creator>
				<category><![CDATA[FFMPEG]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://dev3.ispg.in/aneesh/sysadmin/?p=79</guid>
		<description><![CDATA[



1. Create a directory to do our work in
mkdir ~/ffmpeg
cd ~/ffmpeg
2. Get all the source fileswget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
wget http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
3. Extract all the source files
bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar
tar zxvf flvtool2_1.0.5_rc6.tgz
tar zxvf lame-3.97.tar.gz
bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
4. Create the codecs directory &#38; import them
mkdir /usr/local/lib/codecs/
mv essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 [...]]]></description>
			<content:encoded><![CDATA[<p><code><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></code></p>
<p><strong>1. Create a directory to do our work in</strong><br />
<code>mkdir ~/ffmpeg<br />
cd ~/ffmpeg</code></p>
<p><strong>2. Get all the source files</strong>wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2<br />
wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz<br />
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz<br />
wget http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2<br />
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz<br />
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz</p>
<p><strong>3. Extract all the source files</strong><br />
<code>bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar<br />
tar zxvf flvtool2_1.0.5_rc6.tgz<br />
tar zxvf lame-3.97.tar.gz<br />
bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar<br />
tar zxvf libogg-1.1.3.tar.gz<br />
tar zxvf libvorbis-1.1.2.tar.gz</code></p>
<p><strong>4. Create the codecs directory &amp; import them</strong><br />
<code>mkdir /usr/local/lib/codecs/<br />
mv essential-20061022/* /usr/local/lib/codecs/<br />
chmod -R 755 /usr/local/lib/codecs/</code></p>
<p><strong>5. Install SVN/Ruby (Depends on OS, this is for RHEL/CentOS)</strong><br />
<code>yum install subversion<br />
yum install ruby<br />
yum install ncurses-devel</code></p>
<p><strong>6. Get the latest FFMPEG/MPlayer from the subversion</strong><br />
<code>svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg<br />
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer</code></p>
<p><strong>7. Compile LAME</strong><br />
<code>cd ~/ffmpeg/lame-3.97<br />
./configure<br />
make<br />
make install</code></p>
<p><strong>8. Compile libOGG</strong><br />
<code>cd ~/ffmpeg/libogg-1.1.3<br />
./configure<br />
make<br />
make install</code></p>
<p><strong>9. Compile libVorbis</strong><br />
<code>cd ~/ffmpeg/libvorbis-1.1.2<br />
./configure<br />
make<br />
make install</code></p>
<p><strong>10. Compile flvtool2</strong><br />
<code>cd ~/ffmpeg/flvtool2_1.0.5_rc6<br />
ruby setup.rb config<br />
ruby setup.rb setup<br />
ruby setup.rb install</code></p>
<p><strong>11. Compile MPlayer</strong><br />
<code>cd ~/ffmpeg/mplayer<br />
./configure<br />
make<br />
make install</code></p>
<p><strong>12. Compile FFMPEG</strong><br />
<code>cd ~/ffmpeg/ffmpeg<br />
./configure --enable-libmp3lame  --enable-libvorbis --disable-mmx --enable-shared<br />
echo '#define HAVE_LRINTF 1' &gt;&gt; config.h<br />
make<br />
make install</code></p>
<p><strong>13. Finalize the codec setups</strong><br />
<code>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</code></p>
<p><strong>14. Compile FFMPEG-PHP</strong><br />
<code>cd ~/ffmpeg/ ffmpeg-php-0.5.0<br />
phpize<br />
./configure<br />
make<br />
make install</code></p>
<p><strong>15. Install FFMPEG-PHP (make sure the php.ini path is correct.)</strong><br />
<code>echo 'extension=/usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so' &gt;&gt; /usr/local/Zend/etc/php.ini</code></p>
<p><strong>16. Restart Apache to load FFMPEG-PHP (Depends on OS, this is for RHEL/CentOS)</strong><br />
<code>service httpd restart</code></p>
<p><strong>17. Verify if it works</strong><br />
<code>php -r 'phpinfo();' | grep ffmpeg</code></p>
<p>If you get a few lines such as<br />
<code>ffmpeg<br />
ffmpeg support (ffmpeg-php) =&gt; enabled<br />
ffmpeg-php version =&gt; 0.5.0<br />
ffmpeg.allow_persistent =&gt; 0 =&gt; 0</code></p>
<p>Then everything is installed and working.  FFMPEG, FFMPEG-PHP, MPlayer, MEncoder, flv2tool, LAME MP3 encoder &amp; libOGG.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><strong>Common Errors may  occur</strong></p>
<p><strong>1. </strong>When you try to &#8216;make &#8216;libVorbis you may get an error  &#8221; checking for ogg &gt;= 1.0&#8230; checking for Ogg&#8230; not found &#8221;<br />
<strong>Solution : Install libogg ( yum install libogg ), then Make it again</strong></p>
<p><code><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></code></p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2F79%2F', 'Install+ffmpeg+on+linux')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2F79%2F', title: '+Install+ffmpeg+on+linux+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://hellosystemadmin.com/blog/79/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
