<?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>PRESOON.COM &#187; FFMPEG</title>
	<atom:link href="http://presoon.com/blog/category/ffmpeg/feed/" rel="self" type="application/rss+xml" />
	<link>http://presoon.com/blog</link>
	<description></description>
	<lastBuildDate>Sat, 20 Mar 2010 03:59:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ffmpeg.so: undefined symbol: av_free_static</title>
		<link>http://presoon.com/blog/2008/09/01/ffmpegso-undefined-symbol-av_free_static/</link>
		<comments>http://presoon.com/blog/2008/09/01/ffmpegso-undefined-symbol-av_free_static/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 19:55:36 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[FFMPEG]]></category>
		<category><![CDATA[av_free_static]]></category>
		<category><![CDATA[ffmpeg error]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=64</guid>
		<description><![CDATA[When we issue a “php -v” over command line or when we browse a phpinfo.php on a site this error occours.
Go to the source directory ffmpeg-phpXX.XX
#vi ffmpeg-php.c
comment the line
av_free_static()
rebuild ffmpeg-php and place the new ffmpeg.so on your extension directory.
phpize
./configure
make
make install
]]></description>
			<content:encoded><![CDATA[<p>When we issue a “php -v” over command line or when we browse a phpinfo.php on a site this error occours.</p>
<p>Go to the source directory ffmpeg-phpXX.XX</p>
<p>#vi ffmpeg-php.c</p>
<p>comment the line</p>
<p>av_free_static()</p>
<p>rebuild ffmpeg-php and place the new ffmpeg.so on your extension directory.</p>
<p>phpize</p>
<p>./configure</p>
<p>make</p>
<p>make install</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2008/09/01/ffmpegso-undefined-symbol-av_free_static/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;ffmpeg headers not found&#8221; error while installing ffmpeg in cPanel servers</title>
		<link>http://presoon.com/blog/2008/08/22/ffmpeg-headers-not-found-error-while-installing-ffmpeg-in-cpanel-servers/</link>
		<comments>http://presoon.com/blog/2008/08/22/ffmpeg-headers-not-found-error-while-installing-ffmpeg-in-cpanel-servers/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 21:08:36 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[FFMPEG]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=62</guid>
		<description><![CDATA[The error received is
checking for ffmpeg support&#8230; yes, shared
checking for ffmpeg headers&#8230; configure: error: ffmpeg headers not
found. Make sure you&#8217;ve built ffmpeg as shared libs using the &#8211;enable-
shared option
This is due to missing header files in  &#8220;/usr/local/include/ffmpeg&#8221; directory.
Check whether the directory &#8220;/usr/local/include/ffmpeg&#8221; exists else create it.
mkdir /usr/local/include/ffmpeg
The copy the header files.
cp -p /usr/local/src/ffmpeg/libavformat/avio.h /usr/local/include/ffmpeg
cp -p [...]]]></description>
			<content:encoded><![CDATA[<p>The error received is</p>
<p>checking for ffmpeg support&#8230; yes, shared<br />
checking for ffmpeg headers&#8230; configure: error: ffmpeg headers not<br />
found. Make sure you&#8217;ve built ffmpeg as shared libs using the &#8211;enable-<br />
shared option</p>
<p>This is due to missing header files in  &#8220;/usr/local/include/ffmpeg&#8221; directory.</p>
<p>Check whether the directory &#8220;/usr/local/include/ffmpeg&#8221; exists else create it.</p>
<p>mkdir /usr/local/include/ffmpeg</p>
<p>The copy the header files.</p>
<p>cp -p /usr/local/src/ffmpeg/libavformat/avio.h /usr/local/include/ffmpeg<br />
cp -p /usr/local/src/ffmpeg/libavformat/avformat.h /usr/local/include/ffmpeg<br />
cp -p /usr/local/src/ffmpeg/libavcodec/avcodec.h /usr/local/include/ffmpeg</p>
<p>You need to install your ffmpeg again. After installing the ffmpeg, install ffmpeg-php.</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2008/08/22/ffmpeg-headers-not-found-error-while-installing-ffmpeg-in-cpanel-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error: ffmpeg headers not found&#8230;enable &#8211;shared option with FFMPEG</title>
		<link>http://presoon.com/blog/2008/04/10/error-ffmpeg-headers-not-foundenable-shared-option-with-ffmpeg/</link>
		<comments>http://presoon.com/blog/2008/04/10/error-ffmpeg-headers-not-foundenable-shared-option-with-ffmpeg/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 13:58:03 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[FFMPEG]]></category>
		<category><![CDATA[FFMPEG php error]]></category>
		<category><![CDATA[fmpeg headers not found]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=10</guid>
		<description><![CDATA[You may receive the below error while installing ffmpeg-php in cPanel servers.
Error you receive&#8230;&#8230;
checking for ffmpeg support&#8230; yes, shared
checking for ffmpeg headers&#8230; configure: error: ffmpeg headers not
found. Make sure you&#8217;ve built ffmpeg as shared libs using the &#8211;enable-
shared option
This error is due to the header files are not located in &#8220;/usr/local/include/ffmpeg&#8221; directory.
1. Check whether &#8220;/usr/local/include/ffmpeg&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>You may receive the below error while installing ffmpeg-php in cPanel servers.</p>
<p>Error you receive&#8230;&#8230;</p>
<p>checking for ffmpeg support&#8230; yes, shared<br />
checking for ffmpeg headers&#8230; configure: error: ffmpeg headers not<br />
found. Make sure you&#8217;ve built ffmpeg as shared libs using the &#8211;enable-<br />
shared option</p>
<p>This error is due to the header files are not located in &#8220;/usr/local/include/ffmpeg&#8221; directory.</p>
<p><strong>1. Check whether &#8220;/usr/local/include/ffmpeg&#8221; directory is created while installing ffmpeg. If not, create this directory.</strong></p>
<p>mkdir /usr/local/include/ffmpeg</p>
<p><strong>2. Copy the necessary ffmpeg header files to &#8220;/usr/local/include/ffmpeg&#8221;.</strong></p>
<p>cp -p /usr/local/src/ffmpeg/libavformat/avio.h /usr/local/include/ffmpeg<br />
cp -p /usr/local/src/ffmpeg/libavformat/avformat.h /usr/local/include/ffmpeg<br />
cp -p /usr/local/src/ffmpeg/libavcodec/avcodec.h /usr/local/include/ffmpeg</p>
<p><strong>3. After this you need to install your ffmpeg package again. After installing the ffmpeg, install ffmpeg-php.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2008/04/10/error-ffmpeg-headers-not-foundenable-shared-option-with-ffmpeg/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Install FFMPEG and all its modules FFMPEG-PHP</title>
		<link>http://presoon.com/blog/2008/04/10/how-to-install-ffmpeg-and-all-its-modules-ffmpeg-php/</link>
		<comments>http://presoon.com/blog/2008/04/10/how-to-install-ffmpeg-and-all-its-modules-ffmpeg-php/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 13:45:36 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[FFMPEG]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[lame]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[ogg]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=9</guid>
		<description><![CDATA[1.Create a new Directory under the src folder 
mkdir /usr/local/src/ffmpeg
cd /usr/local/src/ffmpeg
2.Download all the Sources 
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.Uncompress 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 new codecs directory and move the codecs 
mkdir /usr/local/lib/codecs/
mv essential-20061022/* /usr/local/lib/codecs/
chmod -R [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1.Create a new Directory under the src folder </strong><br />
mkdir /usr/local/src/ffmpeg<br />
cd /usr/local/src/ffmpeg</p>
<p><strong>2.Download all the Sources </strong><br />
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.Uncompress all the source files </strong><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</p>
<p><strong>4.Create the new codecs directory and move the codecs </strong><br />
mkdir /usr/local/lib/codecs/<br />
mv essential-20061022/* /usr/local/lib/codecs/<br />
chmod -R 755 /usr/local/lib/codecs/</p>
<p><strong>5.Install SVN and Ruby </strong><br />
yum install subversion<br />
yum install ruby<br />
yum install ncurses-devel</p>
<p><strong>6.Download the latest FFMPEG and Mplayer from the subversion </strong><br />
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg<br />
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer</p>
<p><strong>7.Compile LAME </strong><br />
cd /usr/local/src/ffmpeg/lame-3.97<br />
./configure<br />
make<br />
make install</p>
<p><strong>8.Compile libOGG </strong><br />
cd /usr/local/src/ffmpeg/libogg-1.1.3<br />
./configure<br />
make<br />
make install</p>
<p><strong>9.Compile libVorbis </strong><br />
cd /usr/local/src/ffmpeg/libvorbis-1.1.2<br />
./configure<br />
make<br />
make install</p>
<p><strong>10.Compile flvtool2 </strong><br />
cd /usr/local/src/ffmpeg/flvtool2_1.0.5_rc6<br />
ruby setup.rb config<br />
ruby setup.rb setup<br />
ruby setup.rb install</p>
<p><strong>11.Compile MPlayer </strong><br />
cd /usr/local/src/ffmpeg/mplayer<br />
./configure<br />
make<br />
make install</p>
<p><strong>12.Compile FFMPEG </strong><br />
cd /usr/local/src/ffmpeg/ffmpeg<br />
./configure &#8211;enable-libmp3lame &#8211;enable-libogg &#8211;enable-libvorbis &#8211;disable-mmx<br />
&#8211;enable-shared<br />
echo &#8216;#define HAVE_LRINTF 1&#8242; &gt;&gt; config.h<br />
make<br />
make install</p>
<p><strong>13.Create symblinks </strong><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</p>
<p><strong>14.Compile FFMPEG-PHP </strong><br />
cd /usr/local/src/ffmpeg/ffmpeg-php-0.5.0<br />
phpize<br />
./configure<br />
make<br />
make install</p>
<p><strong>15.Install FFMPEG-PHP (make sure the php.ini path is correct.) </strong></p>
<p>Get correct php.ini path add the extesion ffmpeg.so Usually it is given as extension=ffmpeg.so and the extension_dir=/usr/local/lib/php/extensions/</p>
<p>Make sure that the ffmpeg.so is in /usr/local/lib/php/extensions/<br />
echo &#8216;extension=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so&#8217;&gt;&gt;<br />
/usr/local/Zend/etc/php.ini</p>
<p>Or the best way is to check the path for extension_dir in php.ini Then locate the file ffmpeg.so. Copy the file ffmpeg.so to extension_dir and add the line<br />
extension=ffmpeg.so</p>
<p>in php.ini</p>
<p><strong>16.Restart Apache to load FFMPEG-PHP </strong><br />
service httpd restart</p>
<p><strong>17.Verify the installation </strong><br />
php -r &#8216;phpinfo();&#8217; | grep ffmpeg</p>
<p>If you get a few lines such as</p>
<p>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.</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2008/04/10/how-to-install-ffmpeg-and-all-its-modules-ffmpeg-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
