<?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>Great Tips for your PC &#187; Linux</title>
	<atom:link href="http://pctips.us/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://pctips.us</link>
	<description>How to Make Your PC More Powerful</description>
	<lastBuildDate>Wed, 17 Feb 2010 23:10:06 +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>APACHE: Performance Tuning</title>
		<link>http://pctips.us/linux/apache-performance-tuning/ </link>
		<comments>http://pctips.us/linux/apache-performance-tuning/ #comments</comments>
		<pubDate>Wed, 20 May 2009 18:09:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[tuning]]></category>

		<guid isPermaLink="false">http://pctips.us/?p=631</guid>
		<description><![CDATA[MaxClients defines how many simultaneous requests can be served. Any connection requests from browsers that come in after that will be queued. Default hard limit of 256.
Is ok to set high for static content, but bad for rendered pages.
MaxSpareServers
MinSpareServers
StartServers
ServerLimit
Thrashing where the system is just swapping pages from physical memory to virtual memory (on disk), and [...]]]></description>
			<content:encoded><![CDATA[<p>MaxClients defines how many simultaneous requests can be served. Any connection requests from browsers that come in after that will be queued. Default hard limit of 256.<br />
Is ok to set high for static content, but bad for rendered pages.</p>
<blockquote><p><code>MaxSpareServers<br />
MinSpareServers<br />
StartServers<br />
ServerLimit</code></p></blockquote>
<p>Thrashing where the system is just swapping pages from physical memory to virtual memory (on disk), and vice versa, without doing any real work.<br />
Apache processes with modules (mod_perl, mod_python, mod_php) can easily be 21MB per process.<br />
Can improve with PHP opcode cache/accelerator, then you can make each Apache process take as little as 12MB.<br />
this is where one_liner for RSS sort processes by mem usage</p>
<blockquote><p><code># ps auwxx -- sort rss<br />
# icps "semiphores"</code></p></blockquote>
<p>if apache is high mem usage, check MaxRequestsPerChild and keepalives</p>
]]></content:encoded>
			<wfw:commentRss>http://pctips.us/linux/apache-performance-tuning/ /feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Install FFmpeg</title>
		<link>http://pctips.us/linux/how-to-install-ffmpeg/ </link>
		<comments>http://pctips.us/linux/how-to-install-ffmpeg/ #comments</comments>
		<pubDate>Sat, 25 Apr 2009 11:47:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[FFmpeg]]></category>
		<category><![CDATA[install]]></category>

		<guid isPermaLink="false">http://pctips.us/?p=558</guid>
		<description><![CDATA[


Following are the steps to install FFmpeg on Redhat OS. The &#8211;enable-libfaad option requires that libfaad has already been installed. This is a library for decoding mpeg4 audio (mp4a). If you don&#8217;t mind not having the ability to upload mpeg 4 audio then you won&#8217;t need it, but if you do want to be able [...]]]></description>
			<content:encoded><![CDATA[<p><div style="float:left;padding:8px;border:1px;"><script type="text/javascript"><!--
google_ad_client = "pub-8203625890107514";
/* 200x200, created 3/22/09 */
google_ad_slot = "5635169279";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Following are the steps to install FFmpeg on Redhat OS. The &#8211;enable-libfaad option requires that libfaad has already been installed. This is a library for decoding mpeg4 audio (mp4a). If you don&#8217;t mind not having the ability to upload mpeg 4 audio then you won&#8217;t need it, but if you do want to be able to upload videos with mp4a encoding you&#8217;ll have to struggle to get the faad libraries installed. </p>
<p>Download the a52dec library and compile it as below,</p>
<blockquote><p><code>curl -O http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz<br />
tar xvfz a52dec-0.7.4.tar.gz<br />
cd a52dec-0.7.4<br />
./configure<br />
make<br />
make install</code></p></blockquote>
<p>May be you can get newer faad2 library, check first this url and compile it.</p>
<blockquote><p><code>wget http://downloads.sourceforge.net/faac/faad2-2.6.tar.gz<br />
tar xvfz faad2-2.6.tar.gz<br />
cd faad2<br />
aclocal -I .<br />
autoheader<br />
libtoolize --automake --copy<br />
automake --add-missing --copy<br />
autoconf<br />
./configure<br />
make<br />
make install</code></p></blockquote>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-8203625890107514";
/* 468x60, created 4/5/09 */
google_ad_slot = "1966963155";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center></p>
<p>Install the yasm library as below.</p>
<blockquote><p><code>wget http://www.tortall.net/projects/yasm/releases/yasm-0.8.0.tar.gz<br />
tar xvfj yasm-0.8.0.tar.gz<br />
cd yasm-0.8.0<br />
./configure<br />
make<br />
make install</code></p></blockquote>
<p>x264 is necessary if you want to use it on your FFmpeg.</p>
<blockquote><p><code>wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20090424-2245.tar.bz2<br />
tar xvfj x264-snapshot-20090424-2245.tar.bz2<br />
cd x264-snapshot-20090424-2245<br />
./configure<br />
make<br />
make install</code></p></blockquote>
<blockquote><p><code>wget http://downloads.sourceforge.net/faac/faac-1.26.tar.gz<br />
tar xvfz faac-1.26.tar.gz<br />
cd faac<br />
dos2unix bootstrap<br />
find . -exec dos2unix '{}' \;<br />
sh bootstrap<br />
./configure<br />
make<br />
make install</code></p></blockquote>
<blockquote><p><code>wget http://downloads.xvid.org/downloads/xvidcore-1.1.2.tar.gz<br />
tar xvfz xvidcore-1.1.2.tar.gz<br />
cd xvidcore-1.1.2/build/generic<br />
./configure<br />
make<br />
make install</code></p></blockquote>
<blockquote><p><code>wget http://www3.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2<br />
tar xvfj MPlayer-1.0rc1.tar.bz2<br />
cd MPlayer-1.0rc1<br />
./configure<br />
make<br />
make install</code></p></blockquote>
<blockquote><p><code>wget http://ronald.bitfreak.net/priv/amrnb-0.0.1.tar.gz<br />
tar xvfz amrnb-0.0.1.tar.gz<br />
cd amrnb-0.0.1<br />
./configure<br />
make<br />
make install</code></p></blockquote>
<blockquote><p><code>wget http://downloads.xvid.org/downloads/xvidcore-1.1.3.tar.gz<br />
tar xvfz xvidcore-1.1.3.tar.gz<br />
cd xvidcore-1.1.3<br />
cd build/generic/<br />
./bootsttap.sh<br />
./configure<br />
make<br />
make install</code></p></blockquote>
<blockquote><p><code>wget http://ffmpeg.mplayerhq.hu/ffmpeg-checkout-snapshot.tar.bz2<br />
tar xvfj ffmpeg-checkout-snapshot.tar.bz2<br />
cd ffmpeg-checkout-2007-10-23</code></p></blockquote>
<p>or if your OS has svn command you can do like this to get latest version.</p>
<blockquote><p><code>svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg</code></p></blockquote>
<p>then compile ffmpeg use this options.</p>
<blockquote><p><code>./configure --enable-libfaac --enable-libfaad --enable-libamr-nb --enable-memalign-hack --enable-gpl --enable-libxvid --enable-pthreads --enable-libfaac --enable-libfaad --enable-libxvid --enable-nonfree --enable-libmp3lame --enable-libx264 --disable-demuxer=v4l --disable-demuxer=v4l2 --enable-bzlib --enable-zlib<br />
make<br />
make install</code></p></blockquote>
<p>Some (older?) versions of ffmpeg used &#8220;&#8211;enable-faad&#8221; rather than &#8220;&#8211;enable-libfaad&#8221;, so if it doesn&#8217;t work, try the other option.<br />
If you get error like this, you need to do /sbin/ldconfig first.</p>
<p><strong>Running ffmpeg</strong></p>
<p>Gemin-i Plus uses the following script to convert to .FLV flash video format. Try from the command line to see if it works. inputfile.mov is a .mov file on your server, outputfile.flv is the name you&#8217;re giving to the converted file.</p>
<blockquote><p><code>$ ffmpeg -i inputfile.mov -f flv -r 30 -y outputfile.flv</code></p></blockquote>
<p>The above command produced slow movies on two installs. Try:</p>
<blockquote><p><code>$ ffmpeg -i source.mov -ar 22050  -b 200 -r 12 -f flv -s 640x480 destination.flv</code></p></blockquote>
<p>This will resize to 640&#215;480.</p>
<p>For thumbnails, try:</p>
<blockquote><p><code>$ ffmpeg -i source.avi -an -ss 00:00:03 -an -r 1 -s 300x200 -vframes 1 -y -pix_fmt rgb24 destination%d.jpg</code></p></blockquote>
<p>You will get a file called destination1.jpg, which will show a scene three seconds into the movie you have to remove the 1 yourself, or write a script. There&#8217;s a theoretical possibility of getting more than one destination file, numbered 2 upwards.</p>
<p>The output filename MUST include %d or you will get the error below. The %d will turn into a number 1 once processed. unable for find a suitable output format for destination1.jpg </p>
<blockquote><p><code>ffmpeg: error while loading shared libraries: libavformat.so: cannot open shared object file: No such file or directory</code></p></blockquote>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-8203625890107514";
/* 468x60, created 3/22/09 */
google_ad_slot = "7243235951";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center></p>
]]></content:encoded>
			<wfw:commentRss>http://pctips.us/linux/how-to-install-ffmpeg/ /feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
