<?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>The Computer Guy &#187; Tips</title>
	<atom:link href="http://compguyaug.com/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://compguyaug.com</link>
	<description>Get more out of your computer</description>
	<lastBuildDate>Thu, 22 Mar 2012 01:03:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The Amazon Cloud</title>
		<link>http://compguyaug.com/2012/03/the-amazon-cloud/</link>
		<comments>http://compguyaug.com/2012/03/the-amazon-cloud/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 01:02:00 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://compguyaug.com/?p=615</guid>
		<description><![CDATA[Currently, I am in the process of moving all of my sites to the Amazon Cloud platform. The transition will begin this Saturday, March 24th at 9pm EDT, that&#8217;s 3/25 1AM GMT. Once started, the following sites will be down for maintenance until DNS records are updated by your ISP:

compguyaug.com
cafeworldhelper.com
nonogramsonline.com
urpuzzled.com

cafeworldhelper.com


No related posts.
Related posts brought to [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Currently, I am in the process of moving all of my sites to the Amazon Cloud platform. The transition will begin this Saturday, March 24th at 9pm EDT, that&#8217;s 3/25 1AM GMT. Once started, the following sites will be down for maintenance until DNS records are updated by your ISP:</p>
<ul>
<li><a href="http://compguyaug.com">compguyaug.com</a></li>
<li><a href="http://cafeworldhelper.com">cafeworldhelper.com</a></li>
<li><a href="http://nonogramsonline.com">nonogramsonline.com</a></li>
<li><a href="http://urpuzzled.com">urpuzzled.com</a></li>
</ul>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 57px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">cafeworldhelper.com</div>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://compguyaug.com/2012/03/the-amazon-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What you should know about memory leaks</title>
		<link>http://compguyaug.com/2011/01/what-you-should-know-about-memory-leaks/</link>
		<comments>http://compguyaug.com/2011/01/what-you-should-know-about-memory-leaks/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 11:00:06 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://compguyaug.com/?p=578</guid>
		<description><![CDATA[Have you ever noticed that your browser slows down after running for a while? Heck, most times the whole computer slows down after running for a while. This is primarily because a program requested a chunk of memory and not releasing that chunk when said program is done. This is called a memory leak.
When I [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Have you ever noticed that your browser slows down after running for a while? Heck, most times the whole computer slows down after running for a while. This is primarily because a program requested a chunk of memory and not releasing that chunk when said program is done. This is called a memory leak.</p>
<p>When I speak of memory, I&#8217;m speaking of RAM, not the hard drive. RAM forgets everything when the computer turns off. The hard drive stores the programs, music, e-mails, etc. while the computer is off. At least until the hard drive fails, and it will one day. Reason #1 to Make Backups!</p>
<p>Every program uses RAM. It&#8217;s impossible to run a program without copying it to RAM first. On top of that, when a program needs more RAM, it requests it from the operating system. Once the program exits, the OS should release that RAM so another program can use it. Sadly, this is not always the case.</p>
<h3>Checking for Leaks</h3>
<p>It&#8217;s quite easy to check for memory leaks for a specific program. If you&#8217;re running Windows:</p>
<ol>
<li>Right click on the task bar and select task manager</li>
<li>Click on the Processes tab</li>
<li>Select Options -&gt; Select Columns&#8230;</li>
<li>Check the VM Size and Mem Usage</li>
<li>Click OK</li>
<li>Run the program, if its not already running</li>
<li>Keep a watch on it&#8217;s statistics</li>
<li>If the VM Size and/or Mem Usage keeps going up and not going down, that program has a memory leak!</li>
</ol>
<p>Note: Once you do steps 3-5, you won&#8217;t have to do them again on that computer.</p>
<p>Using Linux or MacOS:</p>
<ol>
<li>Open a command prompt</li>
<li>Run: top</li>
<li>The columns to watch at Virt(ual Memory) and  Res(idual Memory)</li>
<li>Run the program, if its not already running</li>
<li>Keep a watch on it&#8217;s statistics</li>
<li>If Virt and/or Res keeps going up and not going down, that program has a memory leak!</li>
</ol>
<p>Note: Press h for help while running top.</p>
<h3>Most Leaks Occur in the Browser</h3>
<p>Sadly, tons websites have memory leaks. To check for this:</p>
<ol>
<li>Do steps 1-5 above or run top</li>
<li>Load up your browser</li>
<li>Go directly to Google.com(No Leaks There!)</li>
<li>Check the VM Size and Mem Usage</li>
<li>Go to a site that regularly slows your browser down</li>
<li>Check the numbers, they should have gone up</li>
<li>Go back to Google.com</li>
<li>Check the numbers again</li>
</ol>
<p>If they don&#8217;t go down at all, you can almost guarantee that that website has at least one memory leak. I&#8217;ve noticed this is especially true for Cafe World and Frontierville on Facebook, but almost all flash-based game will have memory leaks because flash has memory leaks. That is why the newer versions of Firefox runs flash as a separate program.</p>
<p>Luckily, all you have to do is restart your browser and those numbers will be reset. Setting your homepage to something simple that doesn&#8217;t leak, about:blank is good, can help too.</p>
<h3>Memory Leaks Are NOT Dangerous</h3>
<p>These leaks are not dangerous, just frustrating and annoying. Restarting the program or computer will speed things back up. That&#8217;s not a permanent solution, but it is usually the easiest fix.</p>
<p>Another option is to call tech support, but most of the time they can&#8217;t do anything for you except forward your complaint to the proper department and tell you to restart your computer or the program. If you choose this option, make sure to have all your number written down before you even call.</p>
<p>Sometimes, the best solution is to just stop using that program or website. Find an alternative that doesn&#8217;t have memory leaks. You might even find a gem in the rough.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://compguyaug.com/2011/01/what-you-should-know-about-memory-leaks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cool Drag &amp; Drops</title>
		<link>http://compguyaug.com/2010/03/cool-drag-drops/</link>
		<comments>http://compguyaug.com/2010/03/cool-drag-drops/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 10:00:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[right click]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://compguyaug.com/?p=562</guid>
		<description><![CDATA[If you´ve been working with computers for a bit, you know that you can drag and drop files from folder to folder. What you may now know is that there are plenty more uses for drag and drop. Here´s a 3 very useful drag and drops:

Drag a program from the start menu to the desktop.
This [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>If you´ve been working with computers for a bit, you know that you can drag and drop files from folder to folder. What you may now know is that there are plenty more uses for drag and drop. Here´s a 3 very useful drag and drops:</p>
<ol>
<li>Drag a program from the start menu to the desktop.<br />
This is great if you use something all the time, but the program did not install a desktop icon. Note: Putting freecell on your desktop may be hazardous to your productivity.</li>
<li>Drag a folder/file/program to the start menu.<br />
You can´t just drop it anywhere on the start menu, as parts of it were written in stone.</li>
<li>Drag a tab in Firefox to the Bookmark menu.<br />
This makes bookmarks super easy. You can even drag the tab to the bookmark toolbar.</li>
</ol>
<p><strong>Pointer Clues<br />
</strong></p>
<p>When you drag and drop, your mouse pointer will change. If you are not allowed to drop something somewhere, you will have a no sign (like no smoking). If you are allowed to drop something there, you will have a normal pointer with a dashed box. Usually, a black line will show where the item will drop.</p>
<p><strong>Right-Click Drag and Drop<br />
</strong></p>
<p>If you use the right mouse button instead of the left, when you drop the item you will see a little menu. This will ask if you want to copy, move, create a shortcut, or cancel. Most of the time, Windows will move the item. Sometimes a copy is made. If you right-drag it, you can decide.</p>
<p><strong>Middle-Click</strong></p>
<p>Sadly, the scroll wheel, sometimes called the middle button, does not drag and drop. It does have some pretty cool uses though, including opening a link in a new tab.</p>
<p><strong>One Final Clickity Note</strong></p>
<p>Always use the <strong>left</strong> mouse button, unless told specifically to use another button.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://compguyaug.com/2010/03/cool-drag-drops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cafe World Cheat #2</title>
		<link>http://compguyaug.com/2010/01/cafe-world-cheat-2/</link>
		<comments>http://compguyaug.com/2010/01/cafe-world-cheat-2/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 11:30:13 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://compguyaug.com/?p=539</guid>
		<description><![CDATA[UPDATE 3/18/2010: I have created some tools to help at http://www.cafeworldhelper.com.  Included are a cooking suggestion tool, more cheats and tricks, a forum,  even a spice tool.
I&#8217;ve got another cheat for all you cafe world fans.
If you turn your stove toward a wall or table or another stove, you will not have to [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE 3/18/2010</strong>: I have created some tools to help at <a href="http://www.cafeworldhelper.com/">http://www.cafeworldhelper.com</a>.  Included are a cooking suggestion tool, more cheats and tricks, a forum,  even a spice tool.</p>
<p>I&#8217;ve got another cheat for all you cafe world fans.</p>
<p>If you turn your stove toward a wall or table or another stove, you will not have to walk to the stove. Ever. In fact, the only place your character will walk to is a serving table.</p>
<p><strong>Bonus Tip</strong></p>
<p>Max your buzz rating to 105.0 by making sure no customer leaves without food. Following my <a href="http://compguyaug.com/2010/01/cafe-world-cheat/">original Cafe World post</a>, will almost ensure this.</p>
<p>Once your employees are boxed in, if anyone leaves without food, (re)move the table/chair where that person was sitting.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://compguyaug.com/2010/01/cafe-world-cheat-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cafe World Cheat</title>
		<link>http://compguyaug.com/2010/01/cafe-world-cheat/</link>
		<comments>http://compguyaug.com/2010/01/cafe-world-cheat/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 11:00:12 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://compguyaug.com/?p=516</guid>
		<description><![CDATA[UPDATE 3/18/2010: I have created some tools to help at http://www.cafeworldhelper.com.   Included are a cooking suggestion tool, more cheats and tricks, a forum,   even a spice tool.
UPDATE 2/6/2010: Cafe World upgraded their game this past week. Instead of a plant, you must use a chair or  table now to block your [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE 3/18/2010</strong>: I have created some tools to help at <a href="http://www.cafeworldhelper.com/">http://www.cafeworldhelper.com</a>.   Included are a cooking suggestion tool, more cheats and tricks, a forum,   even a spice tool.</p>
<p><strong>UPDATE 2/6/2010:</strong> Cafe World upgraded their game this past week. Instead of a plant, you must use a chair or  table now to block your employees.</p>
<p>Recently, I&#8217;ve been playing Cafe World on Facebook. It&#8217;s one of those games that you play in spurts, cooking food. It&#8217;s quite addicting, and leveling goes fairly quick. I&#8217;ve figured out an easy cheat that anyone can do.</p>
<p>You can block your employees behind serving counters and they don&#8217;t have to walk to the tables. They pick up the food and it magically appears on the table. Also, the employee will &#8220;clean&#8221; the counter directly in front of them, leaving all servings there and a plate in the dining room disappears.</p>
<p>There is a trick to doing this. You have to block them in with a small object. I use a plant:</p>
<p><a href="http://compguyaug.com/wp-content/uploads/2010/01/screenshot8.jpg"><img class="aligncenter size-full wp-image-534" title="Cafe World Screenshot" src="http://compguyaug.com/wp-content/uploads/2010/01/screenshot8.jpg" alt="Employees trapped between 2 walls, a wall of counters, and a plant." width="338" height="273" /></a></p>
<p>The plant was even a gift from a neighbor. This is super simple and can help raise your buzz rating.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://compguyaug.com/2010/01/cafe-world-cheat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Timezone</title>
		<link>http://compguyaug.com/2010/01/mysql-timezone/</link>
		<comments>http://compguyaug.com/2010/01/mysql-timezone/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 11:00:55 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[timezone]]></category>
		<category><![CDATA[to do list]]></category>

		<guid isPermaLink="false">http://compguyaug.com/?p=512</guid>
		<description><![CDATA[I have been using a to do list web application for the past couple of years. It&#8217;s not perfect, but it gets the job done. Well, from time to time, I stay up past midnight and am still working on my to do list. When that happens, I have to manually set the completed date, [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I have been using a to do list web application for the past couple of years. It&#8217;s not perfect, but it gets the job done. Well, from time to time, I stay up past midnight and am still working on my to do list. When that happens, I have to manually set the completed date, but not anymore.</p>
<p>I changed the timezone for the mysql session of the web app. It&#8217;s quite simple. The app uses good programming practices, so there&#8217;s only 1 place that I had to modify: immediately after the database connect &amp; select db. These two lines now run as well:</p>
<pre>mysql_query( 'SET time_zone = \'-8:00\'' );
date_default_timezone_set( 'America/Los_Angeles' );</pre>
<p>My timezone is -5:00 (EST), so I set the timezone to -8:00 (PST). That gives me until 3AM local time to complete the tasks. If only there was a way to set the timezone of a particular database or user.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://compguyaug.com/2010/01/mysql-timezone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HDTV using MPlayer</title>
		<link>http://compguyaug.com/2010/01/hdtv-using-mplayer/</link>
		<comments>http://compguyaug.com/2010/01/hdtv-using-mplayer/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 11:00:03 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[tv]]></category>

		<guid isPermaLink="false">http://compguyaug.com/?p=510</guid>
		<description><![CDATA[In my desktop computer, I&#8217;ve got an nvidia GeForce 6150 PCI-E video card. It has a built-in mpeg2 decoding helper in it. Using Linux, this is called XvMC, or Xvideo Motion Compensation. I finally got it partially usable.
I&#8217;m currently watching the news on WJBF, the only channel I get b/c I haven&#8217;t fully setup my [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>In my desktop computer, I&#8217;ve got an nvidia GeForce 6150 PCI-E video card. It has a built-in mpeg2 decoding helper in it. Using Linux, this is called XvMC, or Xvideo Motion Compensation. I finally got it partially usable.</p>
<p>I&#8217;m currently watching the news on WJBF, the only channel I get b/c I haven&#8217;t fully setup my antenna. Using xvmc is fairly simple:</p>
<pre>mplayer -vc ffmpegmc12 -vo xvmc -framedrop dvb://WJBF-DT</pre>
<p>I add -framedrop to keep the video and audio sync&#8217;ed.  Mplayer will rant about waiting for retrace. Using OpenGL is actually better, for me at least.</p>
<pre>mplayer -vo gl2 -framedrop dvb://WJBF-DT</pre>
<p>It dropped 14 frames at the beginning, but hasn&#8217;t dropped another in 10 minutes. XvMC would have crapped out by now. A/V sync is still perfect. I&#8217;ve even got it full screen and it&#8217;s resizing from 1280&#215;720 (720 HD resolution) to 1440&#215;900.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://compguyaug.com/2010/01/hdtv-using-mplayer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>X11 Forwarding</title>
		<link>http://compguyaug.com/2010/01/x11-forwarding/</link>
		<comments>http://compguyaug.com/2010/01/x11-forwarding/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 16:04:35 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://compguyaug.com/?p=506</guid>
		<description><![CDATA[A few days, I moved my desktop computer out into the living room. The computer has a tuner card that can receive digital broadcasts. I don&#8217;t own a TV, so this is the closest I&#8217;ve got to one. I still have to set up lircd before I can use a remote, but I wanted something [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>A few days, I moved my desktop computer out into the living room. The computer has a tuner card that can receive digital broadcasts. I don&#8217;t own a TV, so this is the closest I&#8217;ve got to one. I still have to set up lircd before I can use a remote, but I wanted something a bit easier</p>
<p>Today, I discovered a new trick &#8230; SSH X11 Forwarding. Now, I can play video on my desktop right from my netbook. It&#8217;s wonderful and very simple!</p>
<p>In the following instructions, the &#8220;<strong>A</strong>&#8221; refers to the computer playing the video and &#8220;<strong>B</strong>&#8221; refers to any other computer.</p>
<ol>
<li>Make sure &#8220;X11Forwarding Yes&#8221; is in your sshd_config file on computer <strong>A</strong>. Restart sshd if you had to uncomment/add it.</li>
<li>On <strong>B</strong>, run `ssh -XC <strong>A</strong>`</li>
<li>In the ssh session, type `DISPLAY=:0.0`.</li>
<li>Now run mplayer or any other video player in the  ssh session and it will play on computer <strong>A</strong>.</li>
</ol>
<p>If you want  to have a program run on computer <strong>A</strong> and use the screen on computer <strong>B</strong>, the process is very similar:</p>
<ol>
<li>Make sure &#8220;X11Forwarding Yes&#8221; is in your sshd_config file on computer <strong>A</strong>. Restart sshd if you had to uncomment/add it.</li>
<li>On <strong>B</strong>, run `xhost <strong>A</strong>`</li>
<li>On <strong>B</strong>, run `ssh -XC <strong>A</strong>`</li>
<li>Now run mplayer or any other video player in the  ssh session and it will play on computer <strong>A</strong>.</li>
</ol>
<p>Step 2 authorizes use of the current display by computer <strong>A</strong> and only needs to be run once. Also, note that the display variable doesn&#8217;t need to be set when using <strong>B</strong>&#8217;s screen.</p>
<p>Mplayer works wonderfully when playing on my desktop, plus I control it via the ssh session. It has tons of keyboard shortcuts. The ones I use the most are space for pause and the arrow keys for skipping around.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://compguyaug.com/2010/01/x11-forwarding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PVR Update</title>
		<link>http://compguyaug.com/2010/01/pvr-update/</link>
		<comments>http://compguyaug.com/2010/01/pvr-update/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 11:00:43 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[mencoder]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://compguyaug.com/?p=499</guid>
		<description><![CDATA[In anticipation of TV shows coming back on, I&#8217;ve been tweaking my PVR scripts. These record shows from the digital airwaves right onto my computer. I&#8217;ve separated the script into two parts: recording and encoding. Each is a simple one line shell script that can be called easily from the command line or from a [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>In anticipation of TV shows coming back on, I&#8217;ve been tweaking my PVR scripts. These record shows from the digital airwaves right onto my computer. I&#8217;ve separated the script into two parts: recording and encoding. Each is a simple one line shell script that can be called easily from the command line or from a cron. The record.sh script is:</p>
<pre>/usr/bin/mencoder dvb://$1 -ovc copy -oac copy -o "$2.mpeg" -endpos $3</pre>
<p>All this does is copy the video and audio streams directly to the disk. The three parameters are  the station name, as stated in ~/.mplayer/channels.conf, the filename and the end position. This end position can be the number or seconds to record, or a time format of hh:mm:ss. This makes recording fairly simple within the cron.</p>
<p>The encode.sh script contains:</p>
<pre>/usr/bin/mencoder -vf scale=640:-2 -ovc xvid -xvidencopts bitrate=1700:threads=2 \
 -oac copy "$1" -o "$1.avi"</pre>
<p>This, slightly more complex use of mencoder, will scale the video to 640 wide, the height calculated to keep the aspect ratio. The video is encoded into xvid at 1700kbps using 2 threads. To speed up the encoding process, the audio is not re-encoded, but copied as is.</p>
<p>You will need to play with the number of xvid threads to find the best fps. I have a dual-core and it encodes the fastest with 2 threads. It does need to be an integer, and most dual-cores will work best at 2.</p>
<p>Then, two lines are required in the cron to record and encode the program:</p>
<pre>59 19 * * 1 /dvr/record.sh WAGTNBC /dvr/shows/heroes 01:03:00
05 20 * * 1 /dvr/encode.sh /dvr/shows/heroes.mpeg</pre>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://compguyaug.com/2010/01/pvr-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ffmpeg Cheat Sheet</title>
		<link>http://compguyaug.com/2009/12/ffmpeg-cheat-sheet/</link>
		<comments>http://compguyaug.com/2009/12/ffmpeg-cheat-sheet/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 11:00:37 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://compguyaug.com/?p=484</guid>
		<description><![CDATA[ffmpeg is a video encoder for linux. This tool is very versatile and can do pretty much any kind of video processing all from the console.
As with any linux tool, there a tons of bells and whistles. This makes the learning curve kind of steep, but with a bit of determination anyone can make sense [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>ffmpeg is a video encoder for linux. This tool is very versatile and can do pretty much any kind of video processing all from the console.</p>
<p>As with any linux tool, there a tons of bells and whistles. This makes the learning curve kind of steep, but with a bit of determination anyone can make sense of it. Without further ado, here’s the cheat sheet:</p>
<table border="0">
<tbody>
<tr>
<td>ffmpeg -i clip1.avi -i clip2.avi -vcodec copy -acodec copy new-clip.avi</td>
<td>Copies clip1 and clip2 into new-clip.avi</td>
</tr>
<tr>
<td>ffmpeg -i clip.avi -vcodec libxvid -b 800000  -acodec libmp3lame -ab 128 new-clip.avi</td>
<td>Encodes a clip with the xvid codec at 800Kbps and mp3 audio at 128Kbps.</td>
</tr>
<tr>
<td>ffmpeg -i clip.avi -t 00:05:00 -vcodec copy -acodec copy new-clip.avi</td>
<td>Copies the first 5 minutes from clip.avi into new-clip.avi</td>
</tr>
<tr>
<td>ffmpeg -i clip.avi -t 00:05:00 -ss 60 -vcodec copy -acodec copy new-clip.avi</td>
<td>Copies 5 minutes from clip.avi into new-clip.avi, skipping the first minute.</td>
</tr>
<tr>
<td>ffmpeg -i clip.avi -s 640:576 -vcodec libxvid -b 1200000 -acodec copy -o new-clip.avi</td>
<td>Resizes the video to 640&#215;576, then encoding video using xvid at 1200Kbps and copying the audio directly</td>
</tr>
<tr>
<td>ffmpeg -i clip.avi -target ntsc-dvd -b 5000000 dvd-clip.mpeg</td>
<td>Encodes clip.avi into a dvd-compatible mpeg at 5000Kbps</td>
</tr>
</tbody>
</table>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://compguyaug.com/2009/12/ffmpeg-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

