<?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>Haz&#039;s Blog &#187; Articles</title>
	<atom:link href="http://www.hazsoft.co.uk/cat/articles/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hazsoft.co.uk</link>
	<description>More then just an average WordPress blog!</description>
	<lastBuildDate>Tue, 03 May 2011 18:20:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Tutorial: Stop-Motion in Linux</title>
		<link>http://www.hazsoft.co.uk/2011/05/03/stop-motion-in-linux/</link>
		<comments>http://www.hazsoft.co.uk/2011/05/03/stop-motion-in-linux/#comments</comments>
		<pubDate>Tue, 03 May 2011 17:25:39 +0000</pubDate>
		<dc:creator>Haz</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[Creative Commons]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Stop Motion]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Ubuntu-UK]]></category>

		<guid isPermaLink="false">http://www.hazsoft.co.uk/?p=267</guid>
		<description><![CDATA[EDIT: Just been told there&#8217;s another way to do this using ffmpeg, I might add this in once I&#8217;ve had a play with it. Show &#9660; Command I shall have to test: ffmpeg -f image2 -i foo-%d.jpg -r FRAMERATE -s &#8230;<p class="read-more"><a href="http://www.hazsoft.co.uk/2011/05/03/stop-motion-in-linux/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>EDIT: Just been told there&#8217;s another way to do this using ffmpeg, I might add this in once I&#8217;ve had a play with it. <a href="javascript:void(null);" onclick="s_toggleDisplay(document.getElementById('SID316225867'), this, 'Show &#9660;', 'Hide &#9650;');">Show &#9660;</a></p>
<div id='SID316225867' style='display:none;'>
Command I shall have to test: ffmpeg -f image2 -i foo-%d.jpg -r FRAMERATE -s XxY -vcodec libx264 -vpre slow -b BIT_RATE -threads 0 foo.mp4
</div>
<p></strong></p>
<p>This is just a quick post. It&#8217;s something I&#8217;ve always wanted to do, but never got round to it and minecraft was the best excuse to do it with. Video I made is embedded at the very end (or you can click here to watch it now: <a href="http://youtu.be/JdQxXj5czrU">http://youtu.be/JdQxXj5czrU</a>).</p>
<h2>How I Made The &#8220;Frames&#8221;</h2>
<p>Basically I took many screenshots in minecraft, roughly about 3-6 screenshots per section I wanted to show in the video, using the F2 key. I did this on my laptop using the &#8220;Play Offline&#8221; feature, and setting my server to allow anyone. So I showed up in game as &#8220;Player&#8221; and set him where I wanted the &#8220;camera&#8221;. I then logged into Minecraft on my workstation using my normal account. Then I began building, every so often taking 3-6 screenshots with the laptop.</p>
<h2>How I Rendered The Images</h2>
<p>Now obviously I&#8217;m going to assume before you started taking screenshots that you cleared out your previous minecraft screenshots folder (or webcam stills, whatever), and that your folder is full of images that you want to make into a video <b>only</b>. The screenshots folder is found at &#8220;/home/<b>your_user</b>/.minecraft/screenshots/&#8221; without quotes. Since these are terminal commands, you&#8217;ll need to &#8220;cd&#8221; to that folder when you want to render.</p>
<h3>Step 1: Installing &#8220;mencoder&#8221;.</h3>
<p>First you&#8217;ll need to install &#8220;mencoder&#8221; since this is what makes the initial video. This is found in most distros repos. I&#8217;m using Ubuntu 10.10, but should work for all. Do this with the following (you should be able to find it in the software centre too):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mencoder</pre></div></div>

<h3>Step 2: Creating a file with list of images.</h3>
<p>Now we&#8217;re going to cd to the screenshots folder, and we&#8217;re going to make a file with a list of all the images in the correct order as stated by modified date/time. This is going to be used by mencoder so that it creates the stop-motion video. To make this file we&#8217;re going to do this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-1tr</span> <span style="color: #000000; font-weight: bold;">&gt;</span> files.txt</pre></div></div>

<p>You can name the file anything you want, in this example I&#8217;m using &#8220;files.txt&#8221;, however make sure you remember what file name you give it, and please note that&#8217;s a <b>one (1)</b> not a lower-case L. The <b>-1</b> is so that each file is on its own line, <b>t</b> is to list by the modified time/date, and <b>r</b> is for reversing the order. Please check the <b>man</b> pages (command: man ls) if you want to use other options. I find this the best way to do it however.</p>
<h3>Step 3: Render the video! \o/</h3>
<p>Now that we have our file full of all the images we&#8217;re going to be using on each line (and in the correct order), we now need to finally render it into a video. Now I&#8217;m not going to go into details about the options I have picked, but it basically outputs into a raw video file (~200MB for a 1 minute long video) and is great for editing should you wish to do so. Anyways, on with the command line stuff!</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mencoder <span style="color: #660033;">-nosound</span> <span style="color: #660033;">-ovc</span> copy <span style="color: #660033;">-lavcopts</span> <span style="color: #007800;">vcodec</span>=mpeg4 <span style="color: #660033;">-mf</span> <span style="color: #007800;">fps</span>=<span style="color: #000000;">6</span> mf:<span style="color: #000000; font-weight: bold;">//@</span>files.txt <span style="color: #660033;">-o</span> video.avi</pre></div></div>

<p>The important thing to note by the way, is the <b>-o</b> option &#8211; this is to set the filename of the output. You can call this whatever you like, I just chose &#8220;video.avi&#8221;. Also note that </b>vcodec</b> is which codec we&#8217;re going to be using (in this case mpeg4), the <b>-ovc copy</b> is how I&#8217;m making this video output as raw video (basically a direct copy of the images), and one last thing I should mention is you&#8217;ll notice <b>fps=6</b> &#8211; This basically defines what the framerate is, I set this to 6 because I was using ~6 images each time. However have a play with that number until you get the right results your after. Doing it this way takes less time, since it doesn&#8217;t have to process very much. Plus you get quality as good as the images your working with, which is perfect.</p>
<h3>Step 4 <i>(optional)</i>: Edit video, add sound.</h3>
<p>You don&#8217;t have to do this, but well ~200MB is a bit much to upload to things like YouTube (plus it has no sound!). So I used PiTiVi Video Editing software that comes with ubuntu to import the video and song of my choice. And then rendered it how I liked it. I use MP4 Muxer with default options, because the size is decent at the end, and looks reasonable for the end quality (and works in YouTube).</p>
<p>That&#8217;s everything! We&#8217;ve just made a stop-motion video file! With that, I shall now present my first ever stop-motion video, using the medium of Minecraft! The song used is released under the Creative Commons licence (info in the video description), the pictures were designed by me (using popular ideas as a base), and the game used is Minecraft which is owned by Mojang. Enjoy!</p>
<p><iframe width="640" height="390" src="http://www.youtube.com/embed/JdQxXj5czrU?rel=0" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hazsoft.co.uk/2011/05/03/stop-motion-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Who said Open-Source developers don&#8217;t get paid?</title>
		<link>http://www.hazsoft.co.uk/2009/04/04/who-said-open-source-developers-dont-get-paid/</link>
		<comments>http://www.hazsoft.co.uk/2009/04/04/who-said-open-source-developers-dont-get-paid/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 00:30:30 +0000</pubDate>
		<dc:creator>Haz</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Linus Torvald]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open-Source]]></category>

		<guid isPermaLink="false">http://www.hazsoft.co.uk/?p=55</guid>
		<description><![CDATA[digg_url = 'http://www.hazsoft.co.uk/2009/04/04/who-said-open-source-developers-dont-get-paid/'; digg_title = 'Who said Open-Source developers don\'t get paid?'; digg_bodytext = 'Wonderful quote from Linus Torvalds himself recently (found here):\nHow is life at the moment? Are you enjoying work at the Linux Foundation in Portland, Ore.?\n\nI\'m all &#8230;<p class="read-more"><a href="http://www.hazsoft.co.uk/2009/04/04/who-said-open-source-developers-dont-get-paid/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<div style="float: left; margin-right: 10px; margin-bottom: 4px;"><div class="wdt_button">
	<script type='text/javascript'>
	digg_url = 'http://www.hazsoft.co.uk/2009/04/04/who-said-open-source-developers-dont-get-paid/';
	digg_title = 'Who said Open-Source developers don\'t get paid?';
	digg_bodytext = 'Wonderful quote from Linus Torvalds himself recently (found here):\nHow is life at the moment? Are you enjoying work at the Linux Foundation in Portland, Ore.?\n\nI\'m all happy with my life. The reason I come to Linux.conf.au is it is summer here and freezing in Portland. My job is the same, and I do the kernel and nobody tells me what to do and th';
	</script>
	<script src='http://digg.com/tools/diggthis.js' type='text/javascript'></script></div></div><p>Wonderful quote from Linus Torvalds himself recently (<a href="http://www.computerworld.com/action/article.do?command=viewArticleBasic&amp;taxonomyName=Software&amp;articleId=9126619&amp;taxonomyId=18&amp;pageNumber=5" target="_blank">found here</a>):</p>
<blockquote><p><strong>How is life at the moment? Are you enjoying work at the Linux Foundation in Portland, Ore.?</strong></p>
<p>I&#8217;m all happy with my life. The reason I come to Linux.conf.au is it is summer here and freezing in Portland. My job is the same, and I do the kernel and nobody tells me what to do and they pay me for it, which is just the way I like it.</p></blockquote>
<p>Just goes to show you that despite everyone who tells you that Linux or Open-Source developers don&#8217;t get paid for their work &#8211; their wrong. You just have to have an interesting project that shows some future value, and you will get paid for your work. Just thought I&#8217;d get the myth clarified.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hazsoft.co.uk/2009/04/04/who-said-open-source-developers-dont-get-paid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What does Open-Source truely mean?</title>
		<link>http://www.hazsoft.co.uk/2009/03/31/what-does-open-source-truely-mean/</link>
		<comments>http://www.hazsoft.co.uk/2009/03/31/what-does-open-source-truely-mean/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 13:13:35 +0000</pubDate>
		<dc:creator>Haz</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[Licence]]></category>
		<category><![CDATA[Open-Source]]></category>

		<guid isPermaLink="false">http://www.hazsoft.co.uk/42/what-does-open-source-truely-mean/</guid>
		<description><![CDATA[digg_url = 'http://www.hazsoft.co.uk/2009/03/31/what-does-open-source-truely-mean/'; digg_title = 'What does Open-Source truely mean?'; digg_bodytext = 'Well, I\'ve been trying to look into it and this one quote is by far the best one I\'ve seen on the matter (found here comment number 25):\n\n\nRe: &#8230;<p class="read-more"><a href="http://www.hazsoft.co.uk/2009/03/31/what-does-open-source-truely-mean/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<div style="float: left; margin-right: 10px; margin-bottom: 4px;"><div class="wdt_button">
	<script type='text/javascript'>
	digg_url = 'http://www.hazsoft.co.uk/2009/03/31/what-does-open-source-truely-mean/';
	digg_title = 'What does Open-Source truely mean?';
	digg_bodytext = 'Well, I\'ve been trying to look into it and this one quote is by far the best one I\'ve seen on the matter (found here comment number 25):\n\n\nRe: BUT..\nby Xanthir, FCD - Apr 23rd, 2008 @ 1:11pm\n\nIncorrect. The GPL states that you must release the source code to people you distribute the program to. If you never distribute it, you never have to s';
	</script>
	<script src='http://digg.com/tools/diggthis.js' type='text/javascript'></script></div></div><p>Well, I&#8217;ve been trying to look into it and this one quote is by far the best one I&#8217;ve seen on the matter (found <a href="http://www.techdirt.com/articles/20080423/004519925.shtml" target="_blank">here</a> comment number <a href="http://www.techdirt.com/article.php?sid=20080423/004519925#c316" target="_blank">25</a>):</p>
<blockquote><p>
Re: BUT..<br />
by Xanthir, FCD &#8211; Apr 23rd, 2008 @ 1:11pm</p>
<p>Incorrect. The GPL states that you must release the source code to people you distribute the program to. If you never distribute it, you never have to share the source, and your improvements remain your own.</p>
<p>However, if you make an improvement to some GPLed code and then use that in your product that you sell, you *do* have to release the source code with it (along with your improvements). As noted by a previous respondent, that&#8217;s THE feature of GPL. GPL is a viral license that infects anything that touches it. The point is to eventually make virtually everything GPL, so that we return to the early state of computing where anyone could change any program they had to do what they wished.
</p></blockquote>
<p>This is why the Open-Source model is always overlooked! Everyone thinks, just because as part of the GPL you <u>MUST</u> release the source code, that Open-Sourced must be bad!</p>
<p>This is wrong and should be clarified to the media right now! Yes, you must release the code along with your compiled version, but that isn&#8217;t a bad thing. You only have to distribute the code to the audience that your distributing it to &#8211; I might be wrong on this statement though, but bare with me.</p>
<p>If, say, your creating some code for a business (bank) and by disclosing your work to the public could be a risk to people&#8217;s privacy (in this case money). Now, recreating the wheel is terrible. I know, I&#8217;ve tried to recreate code that&#8217;s already been out there for years and its hard work! Specially when doing it from scratch. Using the GPL as the licence, I could use Open-Source code, improve it and then sell my changes to the bank (but obviously provide my code with it). Since the program will not be used outside of the bank&#8217;s building, that code never needs to be released publicly &#8211; but any code that the bank doesn&#8217;t mind disclosing, could be sent out back to the community. For example I fixed a bug that people have been trying to work on for months, this could be then sent back and help the community forward.</p>
<p>Where do you see the bad side in this? If the bank later needs to adjust the code further, sure they could hire someone else &#8211; which could be bad &#8211; but aren&#8217;t they more likely going to trust the man who made it originally? Won&#8217;t his services, if they thought it was good enough, worth re-hiring for alterations? But on the other hand, it also means they can get a new set of eyes to improve their software further, and life would continue, bug fixes and code the bank again doesn&#8217;t mind disclosing could be sent back out to the community&#8230; etc&#8230; etc&#8230; life goes on, people are getting paid for their hard work, etc&#8230;</p>
<p>If someone thinks this is the wrong thinking towards the GPL, please do bring it to my attention, but as far as I&#8217;m aware this is what the GPL was made for, to make code viral and spread to everyone.</p>
<p><b><u>Edit:</u></b><br />
Wow, I couldn&#8217;t of put this any better. It seems I am right in my thinking above. Read the quote found <a href="http://www.techdirt.com/article.php?sid=20080423/004519925#c417" target="_blank">here</a>, he uses references from the actual <a href="http://www.gnu.org/licenses/#GPL" target="_blank">GPL licence</a> website.</p>
<p><b><u>Edit, Edit:</u></b><br />
Some <a href="http://apcmag.com/french-police-switch-from-windows-to-linux.htm" target="_blank">news</a> on a French police organisation that has switched from Windows to Linux (ubuntu no less). ;)</p>
<p>&#8211; Everyday I like the Open-Source community more and more. :)<br />
Haz</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hazsoft.co.uk/2009/03/31/what-does-open-source-truely-mean/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

