<?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>linuxbuddies.com &#187; ffmpeg</title>
	<atom:link href="http://linuxbuddies.com/tag/ffmpeg/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxbuddies.com</link>
	<description>For linux documentations.</description>
	<lastBuildDate>Fri, 11 Sep 2009 10:11:58 +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>FFmpeg Installation</title>
		<link>http://linuxbuddies.com/2008/12/23/ffmpeg-installation/</link>
		<comments>http://linuxbuddies.com/2008/12/23/ffmpeg-installation/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 12:40:06 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ffmpeg]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=192</guid>
		<description><![CDATA[


 1. Create a directory to do our work 


mkdir ~/ffmpeg
cd ~/ffmpeg

2. Get all the source files


wget 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 ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-193" title="ffmpeg_mac" src="http://linuxbuddies.com/wp-content/uploads/2008/12/ffmpeg_mac-150x150.jpg" alt="ffmpeg_mac" width="150" height="150" /></p>
<p class="MsoNormal"><span><br />
</span></p>
<p class="MsoNormal"><span> 1. Create a directory to do our work </span></p>
<blockquote>
<p class="MsoNormal"><span><br />
mkdir ~/ffmpeg<br />
cd ~/ffmpeg</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>2. Get all the source files</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
wget </span><a href="http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2" target="_blank"><span>http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2</span></a><span><br />
wget </span><a href="http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz" target="_blank"><span>http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz</span></a><span><br />
wget </span><a href="http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz" target="_blank"><span>http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz</span></a><span><br />
wget </span><a href="http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2" target="_blank"><span>http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2</span></a><span><br />
wget </span><a href="http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz" target="_blank"><span>http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz</span></a><span><br />
wget </span><a href="http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz" target="_blank"><span>http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz</span></a></p></blockquote>
<p class="MsoNormal"><a href="http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz" target="_blank"></a><span></p>
<p>3. Extract all the source files</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
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</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>4. Create the codecs directory &amp; import them</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
mkdir /usr/local/lib/codecs/<br />
mv essential-20061022/* /usr/local/lib/codecs/<br />
chmod -R 755 /usr/local/lib/codecs/</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>5. Install SVN/Ruby (Depends on OS, this is for RHEL/CentOS)</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
yum install subversion<br />
yum install ruby<br />
yum install ncurses-devel</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>6. Get the latest FFMPEG/MPlayer from the subversion</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg<br />
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>7. Compile LAME</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
cd ~/ffmpeg/lame-3.97<br />
./configure<br />
make<br />
make install</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>8. Compile libOGG</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
cd ~/ffmpeg/libogg-1.1.3<br />
./configure<br />
make<br />
make install</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>9. Compile libVorbis</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
cd ~/ffmpeg/libvorbis-1.1.2<br />
./configure<br />
make<br />
make install</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>10. Compile flvtool2</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
cd ~/ffmpeg/flvtool2_1.0.5_rc6<br />
ruby setup.rb config<br />
ruby setup.rb setup<br />
ruby setup.rb install</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>11. Compile MPlayer</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
cd ~/ffmpeg/mplayer<br />
./configure<br />
make<br />
make install</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>12. Compile FFMPEG</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
cd ~/ffmpeg/ffmpeg<br />
./configure &#8211;enable-libmp3lame &#8211;enable-libogg &#8211;enable-libvorbis &#8211;disable-mmx &#8211;enable-shared<br />
echo &#8216;#define HAVE_LRINTF 1&#8242; &gt;&gt; config.h<br />
make<br />
make install</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>13. Finalize the codec setups</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
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</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>14. Compile FFMPEG-PHP</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
cd ~/ffmpeg/ffmpeg-php-0.5.0<br />
phpize<br />
./configure<br />
make<br />
make install</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>15. Install FFMPEG-PHP (make sure the php.ini path is correct.)</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
echo &#8216;extension=/usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so&#8217; &gt;&gt; /usr/local/Zend/etc/php.ini</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>16. Restart Apache to load FFMPEG-PHP (Depends on OS, this is for RHEL/CentOS)</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
service httpd restart</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>17. Verify if it works</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
php -r &#8216;phpinfo();&#8217; | grep ffmpeg</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>If you get a few lines such as<br />
ffmpeg<br />
ffmpeg support (ffmpeg-php) =&gt; enabled<br />
ffmpeg-php version =&gt; 0.5.0<br />
ffmpeg.allow_persistent =&gt; 0 =&gt; 0</p>
<p>Then everything is installed and working. FFMPEG, FFMPEG-PHP, MPlayer, MEncoder, flv2tool, LAME MP3 encoder &amp; libOGG.<br />
 <span><!--[if gte vml 1]><v:shape id="Picture_x0020_9"  o:spid="_x0000_i1026" type="#_x0000_t75" alt="Roll Eyes" style='width:11.25pt;  height:11.25pt;visibility:visible;mso-wrap-style:square'> <v:imagedata src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtmlclip1\01\clip_image008.gif" mce_src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtmlclip1\01\clip_image008.gif"   o:title="Roll Eyes" /> </v:shape><![endif]--><img src="file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtmlclip1/01/clip_image008.gif" border="0" alt="Roll Eyes" width="15" height="15" /></span></span></p>
<p class="MsoNormal"> </p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/23/ffmpeg-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
