<?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>Chris JeanChris Jean &#187; FFmpeg</title>
	<atom:link href="http://chrisjean.com/tag/ffmpeg/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisjean.com</link>
	<description>Linux, WordPress, programming, anime, and other stuff</description>
	<lastBuildDate>Mon, 16 Jan 2012 15:22:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Auttomatic Releases WordPress Video Solution Framework Code</title>
		<link>http://chrisjean.com/2009/01/14/auttomatic-releases-wordpresscom-video-server-code/</link>
		<comments>http://chrisjean.com/2009/01/14/auttomatic-releases-wordpresscom-video-server-code/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 16:18:59 +0000</pubDate>
		<dc:creator>Chris Jean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[FFmpeg]]></category>
		<category><![CDATA[qt-faststart]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://gaarai.com/?p=583</guid>
		<description><![CDATA[I didn&#8217;t see a lot of fanfare, but the release of the WordPress Video Solution Framework plugin, also called the WordPress.com Video Server, has the potential to be huge. Some of you may wonder why I was interested in getting FFmpeg installed again. This is the reason why: Auttomatic has released code that makes it [...]]]></description>
			<content:encoded><![CDATA[<!-- filtered -->
<p>I didn&#8217;t see a lot of fanfare, but the release of the <a href="http://wordpress.org/extend/plugins/wordpresscom-video-server/" target="_blank">WordPress Video Solution Framework</a> plugin, also called the WordPress.com Video Server, has the potential to be huge.</p>
<p>Some of you may wonder why I was interested in <a href="http://chrisjean.com/2009/01/13/install-ffmpeg-and-ffmpeg-php-on-centos-easily/" target="_blank">getting FFmpeg installed</a> again. This is the reason why: <a href="http://automattic.com/" target="_blank">Auttomatic</a> has released code that makes it possible (with some work and knowhow) to turn a <a href="http://mu.wordpress.org/" target="_blank">WordPress Mu</a> platform into a video solution.</p>
<h3>Features</h3>
<ul>
<li>Video-Uploader: A program that will load raw video files into the transcoder without making the user wait</li>
<li>Video-Transcoder
<ul>
<li>Takes in raw video from the Uploader</li>
<li>Transcodes the video into h.264</li>
<li>Stores the video into an mp4 container</li>
<li>Creates thumbnails</li>
<li>Sends the files and meta data to the file server</li>
</ul>
</li>
<li>Video-FinalTouch
<ul>
<li>Receives files and data from the Transcoder</li>
<li>Copies the files into the source video&#8217;s folder</li>
<li>Updates the database tables with new video information</li>
<li>Can be customized to replicate or load files into a CDN (Content Delivery Network)</li>
</ul>
</li>
<li>Video-XML
<ul>
<li>Reads in information from the video such as: caption, duration, and format</li>
<li>Returns this information in XML format</li>
<li>Caches information to ensure quick performance</li>
</ul>
</li>
<li>Video-AJAX: Displays the video when the transcoder has not completed processing the raw video data</li>
<li>Includes a player written in ActionScript 3 that will handle proper display of the video based upon your configuration</li>
</ul>
<h3>Final Thoughts</h3>
<p>The notes indicate that at least some work must be done in order to make everything function. Since I have yet to try everything out yet, I don&#8217;t know exactly how much work that would be. I&#8217;ll be sure to post about my experiences and hopefully have some examples soon.</p>
<p>The notes also indicate that you&#8217;ll need to have a working install of <a href="http://ffmpeg.mplayerhq.hu/" target="_blank">FFmpeg</a> and <a href="http://multimedia.cx/eggs/improving-qt-faststart/" target="_blank">qt-faststart</a> (the readme.txt file says qu-faststart, but it&#8217;s actually qt-faststart). To install FFmpeg, see <a href="http://chrisjean.com/2009/01/13/install-ffmpeg-and-ffmpeg-php-on-centos-easily/" target="_blank">Install FFmpeg and ffmpeg-php on CentOS Easily</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisjean.com/2009/01/14/auttomatic-releases-wordpresscom-video-server-code/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Install FFmpeg and ffmpeg-php on CentOS Easily</title>
		<link>http://chrisjean.com/2009/01/13/install-ffmpeg-and-ffmpeg-php-on-centos-easily/</link>
		<comments>http://chrisjean.com/2009/01/13/install-ffmpeg-and-ffmpeg-php-on-centos-easily/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 23:59:13 +0000</pubDate>
		<dc:creator>Chris Jean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips 'n Tricks]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[DAG]]></category>
		<category><![CDATA[FFmpeg]]></category>
		<category><![CDATA[ffmpeg-php]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://gaarai.com/?p=575</guid>
		<description><![CDATA[FFmpeg is an amazing collection of open-source tools that can record and stream video and audio. However, it can also transcode video and audio (convert the files to different formats), and that is what has me so excited. There&#8217;s also a great PHP package called ffmpeg-php that allows for easy use of FFmpeg from inside [...]]]></description>
			<content:encoded><![CDATA[<!-- filtered -->
<p><a href="http://ffmpeg.mplayerhq.hu/" target="_blank">FFmpeg</a> is an amazing collection of open-source tools that can record and stream video and audio. However, it can also transcode video and audio (convert the files to different formats), and that is what has me so excited. There&#8217;s also a great <a href="http://php.net/" target="_blank">PHP</a> package called <a href="http://ffmpeg-php.sourceforge.net/" target="_blank">ffmpeg-php</a> that allows for easy use of FFmpeg from inside PHP scripts. Today, I&#8217;m going to see if I can&#8217;t help you get both of these set up on your system.</p>
<p>Admittedly, it&#8217;s been a while since I&#8217;ve tried to install FFmpeg, about two years. I recently thought up some ideas on how I&#8217;d like to use FFmpeg, so I thought it was time to give it a try yet again. Today, I&#8217;m proud to say that installing FFmpeg is so much easier to install compared to the past, that I dare say it&#8217;s simple.</p>
<p>Here is my experience with installing FFmpeg on my server and how to fix the pitfalls that I encountered.</p>
<p><span id="more-575"></span></p>
<h3>Preface</h3>
<p>Note that I did all the following steps on a <a href="http://www.centos.org/" target="_blank">CentOS</a> server. The specific version is CentOS x64 5.2.</p>
<p>These instructions can work for other distros with little or no modifications, but some distros will be completely different. For example, the <a href="http://dag.wieers.com/rpm/" target="_blank">DAG RPM Repository</a> that I&#8217;m using (more info below) has support for the following distros: <a href="http://www.redhat.com/" target="_blank">Red Hat Enterprise Linux</a>, <a href="http://fedoraproject.org/" target="_blank">Fedora Core</a>, <a href="http://us.fixstars.com/products/ydl/" target="_blank">Yellow Dog Linux</a>, <a href="http://auroralinux.org/" target="_blank">Aurora Linux</a>, <a href="http://www.centos.org/" target="_blank">CentOS</a>, <a href="https://www.scientificlinux.org/" target="_blank">Scientific Linux</a> (they really need to get a verified SSL cert), <a href="http://www.taolinux.org/" target="_blank">TaoLinux</a>, <a href="http://whiteboxlinux.org/" target="_blank">WhiteBox Linux</a>, <a href="http://www.lineox.net/" target="_blank">Lineox</a>, and <a href="http://www.blagblagblag.org/" target="_blank">BLAG</a>. Other distros will need to use a different repository.</p>
<p>If you successfully get FFmpeg running on another distro, please comment your changes here and I&#8217;ll update the post (and make sure you get credit of course).</p>
<p>Also note that I experienced some bumps in the road while installing everything. While many of you may not experience these issues, I found it important to document these problems and how I fixed them in case you encounter them.</p>
<h3>Preparing</h3>
<p>The first thing that you need to do is set up the <a href="http://dag.wieers.com/rpm/" target="_blank">DAG repository</a>. This repository is an actively-maintained repository that provides a staggering number of packages with current or near current builds. Adding this repository is a great way to run the latest offerings of many packages.</p>
<p>Adding the DAG repository is simple. I&#8217;m using <a href="http://fedoraproject.org/wiki/Tools/yum" target="_blank">yum</a>, so I did the following to add the repository:</p>
<ol>
<li>Create and open a new file called <strong>/etc/yum.repos.d/dag.repo</strong>. I ran &#8220;<strong><code>vi /etc/yum.repos.d/dag.repo</code></strong>&#8220;.</li>
<li>Add the following text to the file:
<div style="padding-left: 20px;"><code>[dag]<br />
name=DAG RPM Repository<br />
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag<br />
gpgcheck=1<br />
enabled=1</code></div>
</li>
<li>Finally, save and close the file.</li>
</ol>
<p>In order to successfully use the DAG repository with tools such as yum, you need to add <a href="http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt" target="_blank">DAG&#8217;s GPG key</a>. Failure to do so will result in an error like the following:</p>
<div style="padding-left: 20px;"><code>warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6<br />
Public key for faac.x86_64.1.26-1.el5.rf.rpm is not installed</code></div>
<p>In order to add the GPG key for DAG, run the following:</p>
<div style="padding-left: 20px;"><code>rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt</code></div>
<p>The <a href="http://dag.wieers.com/rpm/FAQ.php#B1" target="_blank">DAG: Frequently Asked Questions</a> page has additional instructions on how to get the repository loaded and working on your distro.</p>
<p>Now that DAG is setup, it&#8217;s a good idea to update all your packages.</p>
<div style="padding-left: 20px;"><code>yum update</code></div>
<p>Depending on the packages you currently have installed, this could potentially upgrade, install, or replace numerous packages that may or may not be very important to you. Make sure you carefully look through that list and do any necessary preparations before telling yum that it can go ahead.</p>
<p>For example, yum told me that it was going to replace my current <a href="http://dev.mysql.com/" target="_blank">MySQL</a> interface library for <a href="http://www.perl.org/" target="_blank">Perl</a> with a new one. I added to my check list a note to verify that my Perl code functioned correctly after the install.</p>
<p>I ran into another hitch when I told yum to go ahead with the update. It informed me that my current version of <a href="http://subversion.tigris.org/" target="_blank">Subversion</a> conflicted with the new version it wanted to install. When this happens, you need to remove the old package before proceeding. This time, I made backups of all of my repositories and my <strong>/etc/sysconfig/svnserve</strong> file before proceeding just in case. I then removed Subversion &#8220;<strong><code>yum remove subversion</code></strong>&#8220;, ran the update process &#8220;<strong><code>yum update</code></strong>&#8220;, and installed Subversion again &#8220;<strong><code>yum install subversion</code></strong>&#8220;.</p>
<h3>Installing &#8211; FFmpeg</h3>
<p>Now you are ready to install FFmpeg with yum. I wanted to install all the available FFmpeg packages, so I first asked yum what was available.</p>
<div style="padding-left: 20px;"><code>yum search ffmpeg</code></div>
<p>Searching through the results, I found that three packages need to be installed: ffmpeg, ffmpeg-devel, and ffmpeg-libpostproc.</p>
<div style="padding-left: 20px;"><code>yum install ffmpeg ffmpeg-devel ffmpeg-libpostproc</code></div>
<p><em>Note: If you install ffmpeg-libpostproc, the entire FFmpeg software library changes from the LGPL license to the GPL license.</em></p>
<p>After a couple of minutes, the packages and the packages that they depend on were installed.</p>
<p>I simply ran &#8220;<strong><code>ffmpeg</code></strong>&#8221; from the command line, and I took the lack of threatening error or warning messages as a good sign that things were working.</p>
<h3>Preparing for ffmpeg-php</h3>
<p>I often work with programs through command line calls in code, but I wanted something more robust this time, so I looked around and found <a href="http://ffmpeg-php.sourceforge.net/" target="_blank">ffmpeg-php</a>. Based on the <a href="http://ffmpeg-php.sourceforge.net/doc/api/" target="_blank">API</a>, it looks to be a great tool to interface PHP and FFmpeg.</p>
<p>There are four things that are required to successfully install and run ffmpeg-php; they are:</p>
<ul>
<li>ffmpeg-0.4.9_pre1 or higher</li>
<li>php-4.3.0 or higher</li>
<li>gd-2.0 or higher</li>
<li>php-devel</li>
</ul>
<p>PHP and FFmpeg should be good to go since at the time of this writing, DAG has PHP version 5.1.6 and FFmpeg version 0.4.9. <a href="http://www.boutell.com/gd/" target="_blank">GD</a> and php-devel can be easily installed by running the following yum command:</p>
<div style="padding-left: 20px;"><code>yum install php-gd php-devel</code></div>
<p>In case you are wondering what php-devel is for, it installs the <a href="http://php.mirrors.ilisys.com.au/manual/en/install.pecl.phpize.php" target="_blank">phpize</a> program which is used to install ffmpeg-php.</p>
<h3>Installing ffmpeg-php</h3>
<p>Now we are ready to install ffmpeg-php. This can be done in six easy steps:</p>
<ol>
<li>Download the <a href="http://sourceforge.net/project/showfiles.php?group_id=122353&amp;package_id=133626" target="_blank">latest ffmpeg-php release</a></li>
<li>Extract the archive:<br />
<code>tar -xjf ffmpeg-php-X.x.x.tbz2</code></li>
<li><code>cd ffmpeg-php-X.x.x/</code></li>
<li><code>phpize</code></li>
<li><code>./configure &amp;&amp; make</code></li>
<li><code>sudo make install</code></li>
</ol>
<h3>Finishing Thoughts</h3>
<p>This may seem like a lot of work when I earlier described this process as &#8220;simple,&#8221; but trust me that this is a thousand times easier than when I first tried installing FFmpeg. I think I spent three hours working on installing FFmpeg just to find out that it didn&#8217;t work the first time I tried.</p>
<p>Time and time again, package management has proven to be an extremely powerful tool. While I know the value of manually configuring and compiling code, the ease of simply using a package manager can reduce the time needed to install and manage software from hours or days to minutes.</p>
<p>I&#8217;m glad to see that FFmpeg has benefited from the use of these package managers and great repositories like the DAG RPM Repository.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisjean.com/2009/01/13/install-ffmpeg-and-ffmpeg-php-on-centos-easily/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
	</channel>
</rss>

