<?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>SupportSages &#187; ffmpeg</title>
	<atom:link href="http://www.supportsages.com/blog/tag/ffmpeg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.supportsages.com/blog</link>
	<description>Technical Support and Server Management : Musings in the fox hole.</description>
	<lastBuildDate>Thu, 05 Jan 2012 03:05:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Yet another how to for installing FFmpeg +  Mplayer + Mencoder + FlvTool2 +  LAME in CentOS/Redhat flavors of Linux</title>
		<link>http://www.supportsages.com/blog/2010/05/yet-another-how-to-for-installing-ffmpeg-mplayer-mencoder-flvtool2-lame-in-centosredhat-flavors-of-linux/</link>
		<comments>http://www.supportsages.com/blog/2010/05/yet-another-how-to-for-installing-ffmpeg-mplayer-mencoder-flvtool2-lame-in-centosredhat-flavors-of-linux/#comments</comments>
		<pubDate>Tue, 11 May 2010 21:56:31 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[flvtool]]></category>
		<category><![CDATA[install ffmpeg]]></category>
		<category><![CDATA[lame]]></category>
		<category><![CDATA[libogg]]></category>
		<category><![CDATA[libvorbis]]></category>
		<category><![CDATA[mencoder]]></category>
		<category><![CDATA[mplayer]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=677</guid>
		<description><![CDATA[<strong>FFmpeg</strong> is a very fast video and audio converter. It can also grab from a live audio/video source. FFmpeg is so important if you are planning to run a video website with streaming with conversion of video files to different video formats. This blog is intended for Centos/Redhat versions of Linux,  where any novice user can install ffmpeg without compiling the source, which is a more traditional way of installing the FFmpeg software on linux servers. In this blog I will show you the easy way to install ffmpeg and ffmpeg-php (php extension) with just yum rather than compiling ...]]></description>
			<content:encoded><![CDATA[<p><strong>FFmpeg</strong> is a very fast video and audio converter. It can also grab from a live audio/video source. FFmpeg is so important if you are planning to run a video website with streaming with conversion of video files to different video formats. This blog is intended for Centos/Redhat versions of Linux,  where any novice user can install ffmpeg without compiling the source, which is a more traditional way of installing the FFmpeg software on linux servers. In this blog I will show you the easy way to install ffmpeg and ffmpeg-php (php extension) with just yum rather than compiling ffmpeg from source files.</p>
<p>ffmpeg on your desktop machine can be used to convert between various audio and video formats, but I will explain that in another post.</p>
<p>Being said the expected audience to be novice, I am assuming that you are familiar with vi and if you are not, please use nano or joe editors.</p>
<p><strong>Installation</strong><em><br />
First you need to add a file in yum repository directory for dag packages installation. For this edit the following file: </em></p>
<blockquote><p><em>vi  /etc/yum.repos.d/dag.repo </em></p></blockquote>
<p><em>add the following contents to the file,</em></p>
<blockquote><p><em>[dag]<br />
name=Dag RPM Repository for Red Hat Enterprise Linux<br />
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag<br />
gpgcheck=0<br />
enabled=1 </em></p></blockquote>
<p><em>Then enter the command, </em></p>
<blockquote><p><em><strong>yum install ffmpeg ffmpeg-devel</strong></em></p></blockquote>
<p><em>To check what audio/video formats are supported :</em></p>
<blockquote><p><em>ffmpeg -formats &gt; ffmpeg-format.txt</em></p>
<p><em>Open the ffmpeg-formats.txt to see the ooutput</em></p>
<p><em>D means decode<br />
E means encode<br />
V means video<br />
A means audio<br />
T = Truncated </em></p></blockquote>
<p><em><strong>Installation of FFMPEG-PHP Extension</strong></em><br />
FFmpeg-php is a very good extension and wrapper for PHP which can pull useful information about video through API interface. In order to install it you will need to download the source file and then compile and install extension in your server.<br />
For downloading the source tarball <a  href="http://space.dl.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2">click here</a><br />
If you are unable to download with the above link, please use the below command:<br />
<strong><br />
</strong></p>
<blockquote><p><strong>cd /usr/local/src/<br />
wget http://space.dl.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2</strong></p></blockquote>
<p>Extract the souce tarball. If you don&#8217;t see phpize, your php may be an rpm installed one and you need to install php-devel rpms to get phpize in the server.</p>
<blockquote><p><strong><br />
tar -xjf ffmpeg-php-0.6.0.tbz2<br />
cd ffmpeg-php-0.6.0/<br />
phpize<br />
./configure<br />
make<br />
make install</strong></p></blockquote>
<p><strong>Editing PHP.INI</strong></p>
<p>Once you have done that without any problems then you will see the php extension file<strong> /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so</strong> (this location may depend on the php version) and you will need mention that extension in php.ini file</p>
<p><strong>vi /usr/local/lib/php.ini</strong><br />
Put the below two lines at the end of the php.ini file<br />
<strong><br />
[ffmpeg]<br />
extension=ffmpeg.so<br />
</strong><br />
Then restart the server<br />
<strong>service httpd restart</strong><br />
To check whether ffmpeg enabled with php, point your browser to test.php file. It should show the confirmation of installed ffmpeg php extension:<br />
// # <strong>vi test.php</strong><br />
phpinfo();<br />
?&gt;</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/05/ffmpeg-php.jpg" class="thickbox no_icon" rel="gallery-677" title="ffmpeg-info"><img class="alignnone size-medium wp-image-680" title="ffmpeg-info" src="http://www.supportsages.com/blog/wp-content/uploads/2010/05/ffmpeg-php-300x179.jpg" alt="" width="300" height="179" /></a></p>
<p>In any case the ffmpeg does not show in the phpinfo() test, make sure that php.ini path to ffmpeg.so is correct. Still the problem occurs, the reason could be you might be using older version of ffmpeg-php which is buggy. Just download the latest version of ffmpeg-php source then compile it.</p>
<p><strong>Installing Mplayer + Mencoder</strong><br />
Just issue the following yum commands to install the rest of the packages.</p>
<blockquote><p><strong>yum install mplayer mencoder</strong></p></blockquote>
<p><strong>Installing FlvTool2</strong><br />
Flvtool2 is a flash video file manipulation tool. It can calculate meta-data and can cut and edit cue points for flv files.</p>
<blockquote><p><strong>yum install flvtool2</strong></p></blockquote>
<p><strong>Installing LAME MP3 Encoder, Libogg, LIBVORBIS</strong><br />
LAME is a high quality MPEG Audio Layer III (MP3) encoder is licensed under the LGPL. Both quality and speed improvements are still happening, probably making LAME the only MP3 encoder still being actively developed.</p>
<blockquote><p><strong>yum install lame libogg libvorbis </strong></p></blockquote>
<p>This is the full installation steps which I did in all the  live servers . I will post the common errors happening while installing the ffmpeg on next blog.</p>
<p>Enjoy with Video streaming on your website <img src='http://www.supportsages.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=Yet+another+how+to+for+installing+FFmpeg+%2B++Mplayer+%2B+Mencoder+%2B+FlvTool2+%2B++LAME+in+CentOS%2FRedhat+flavors+of+Linux+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F677" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=Yet+another+how+to+for+installing+FFmpeg+%2B++Mplayer+%2B+Mencoder+%2B+FlvTool2+%2B++LAME+in+CentOS%2FRedhat+flavors+of+Linux+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F677" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2010/05/yet-another-how-to-for-installing-ffmpeg-mplayer-mencoder-flvtool2-lame-in-centosredhat-flavors-of-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How would I checkout a particular version from SVN</title>
		<link>http://www.supportsages.com/blog/2009/04/how-would-i-checkout-a-particular-version-from-svn/</link>
		<comments>http://www.supportsages.com/blog/2009/04/how-would-i-checkout-a-particular-version-from-svn/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 12:59:18 +0000</pubDate>
		<dc:creator>Jince</dc:creator>
				<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[checkout]]></category>
		<category><![CDATA[Clipshare]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=97</guid>
		<description><![CDATA[I needed this, since XVID and JPEG was not getting enabled in Clipshare. Infact they were not getting linked in the mencoder or mplayer. And when checked the FOSS.IN award winning script ffmpeginstaller by Master Sherin (who is an expert in kungfoo), I saw that is uses ffmpeg-SVN-r14473.tar.gz. So decided to use that.

But ffmpeg-SVN-r14473.tar.gz was no were available. And this is how I got it.

<blockquote>mkdir /root/ssages/ffmpeg-SVN
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk/ ffmpeg -r14473</blockquote>

And that fetched me the 14473 version of ffmpeg. 
]]></description>
			<content:encoded><![CDATA[<p>I needed this, since XVID and JPEG was not getting enabled in Clipshare. Infact they were not getting linked in the mencoder or mplayer. And when checked the FOSS.IN award winning script ffmpeginstaller by Master Sherin (who is an expert in kungfoo), I saw that is uses ffmpeg-SVN-r14473.tar.gz. So decided to use that.</p>
<p>But ffmpeg-SVN-r14473.tar.gz was no were available. And this is how I got it.</p>
<blockquote><p>mkdir /root/ssages/ffmpeg-SVN<br />
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk/ ffmpeg -r14473</p></blockquote>
<p>And that fetched me the 14473 version of ffmpeg. </p>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=How+would+I+checkout+a+particular+version+from+SVN+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F97" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=How+would+I+checkout+a+particular+version+from+SVN+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F97" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/04/how-would-i-checkout-a-particular-version-from-svn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>while installing libx264 for mp4 support, /usr/bin/ld: cannot find -lgpac_static</title>
		<link>http://www.supportsages.com/blog/2009/04/while-installing-libx264-for-mp4-support-usrbinld-cannot-find-lgpac_static/</link>
		<comments>http://www.supportsages.com/blog/2009/04/while-installing-libx264-for-mp4-support-usrbinld-cannot-find-lgpac_static/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 11:13:10 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Clipshare]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[libx264]]></category>
		<category><![CDATA[mplayer]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=92</guid>
		<description><![CDATA[While installing, libx264 with mp4 support, we hit this error.

<blockquote>/usr/bin/ld: cannot find -lgpac_static
collect2: ld returned 1 exit status
make: *** [libx264.so.60] Error 1</blockquote>

To solve it,

<blockquote>Install libgpac (rpm or from source)
ranlib /usr/lib/libgpac_static.a
ldconfig -v</blockquote>

]]></description>
			<content:encoded><![CDATA[<p>While installing, libx264 with mp4 support, we hit this error.</p>
<blockquote><p>/usr/bin/ld: cannot find -lgpac_static<br />
collect2: ld returned 1 exit status<br />
make: *** [libx264.so.60] Error 1</p></blockquote>
<p>To solve it,</p>
<blockquote><p>Install libgpac (rpm or from source)<br />
ranlib /usr/lib/libgpac_static.a<br />
ldconfig -v</p></blockquote>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=while+installing+libx264+for+mp4+support%2C+%2Fusr%2Fbin%2Fld%3A+cannot+find+-lgpac_static++http%3A%2F%2Fwww.supportsages.com%2Fblog%2F92" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=while+installing+libx264+for+mp4+support%2C+%2Fusr%2Fbin%2Fld%3A+cannot+find+-lgpac_static++http%3A%2F%2Fwww.supportsages.com%2Fblog%2F92" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/04/while-installing-libx264-for-mp4-support-usrbinld-cannot-find-lgpac_static/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

