<?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>Vaughan Knight - Blog &#187; Video</title>
	<atom:link href="http://vaughanknight.com/topics/video/feed/" rel="self" type="application/rss+xml" />
	<link>http://vaughanknight.com</link>
	<description>Technology as Artforms</description>
	<lastBuildDate>Sun, 10 Apr 2011 06:30:22 +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>html5cube&#8211;The HTML5 Cube</title>
		<link>http://vaughanknight.com/2011/04/html5cubethe-html5-cube/</link>
		<comments>http://vaughanknight.com/2011/04/html5cubethe-html5-cube/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 00:08:08 +0000</pubDate>
		<dc:creator>Vaughan</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Rubixel]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://vaughanknight.com/2011/04/html5cubethe-html5-cube/</guid>
		<description><![CDATA[I’ve been wanting to do a puzzle cube with video on each side for a long time as a tech showcase.&#160; Finally I got bored enough to do it. html5cube is a 3D puzzle cube with video on each side.&#160; Make sure you’re running IE9, Opera, or at least Chrome, and go check it out [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been wanting to do a puzzle cube with video on each side for a long time as a tech showcase.&#160; Finally I got bored enough to do it.</p>
<p>html5cube is a 3D puzzle cube with video on each side.&#160; Make sure you’re running IE9, Opera, or at least Chrome, and go check it out at <a href="http://html5cube.com/" target="_blank">html5cube.com</a>.</p>
<p>I haven’t extensively ripped it apart in many browsers, other than IE9 and Chrome.&#160; FIrefox got a real workover, and after Firefox 3 or 4 simply not able to play nice, I’ve ignored them.&#160; Their performance is crap, and I think that ends up causing all sorts of race conditions.&#160; I might look into it in the future, but this experiment isn’t for Firefox.</p>
<p><a href="http://www.vaughanknight.com/images/HTML5-Cube_8AC0/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.vaughanknight.com/images/HTML5-Cube_8AC0/image_thumb.png" width="359" height="349" /></a></p>
<p>Lessons learnt:</p>
<ul>
<li>IE9 still outperforms the other browsers when juggling more than 1 thing (matrix maths + lots of drawImage calls)</li>
<li>webm is much fatter than H.264 and OGG.&#160; I increased the encoded images by 4x, H.264 ended up SMALLER, OGG went up by about 20%, and webm went up about 3x.&#160; As such the worst video quality is webm since it’s the low res version.</li>
<li><font face="Courier New">&lt;video&gt;</font> playback varies between browser in terms of CPU priority.&#160; This means that CPU intensive JavaScript calculations can chop the video around, and other browsers the video chops the JavaScript around.&#160; Yet another metric to balance.</li>
<li><a href="https://github.com/mrdoob/three.js/" target="_blank">Three.js</a> is excellent.</li>
<li>Canvas rendering (as per my previous post) leave visual artifacts and different approaches in each browser.&#160; Anti aliasing, and texture resizing all differ and it causes changing visuals.&#160; IE9 tends to look the best, but I think that’s half good management, half convenient accident.</li>
<li>It’s on canvas, and I think every browser that has WebGL support is ignoring canvas performance completely.&#160; I still am surprised at Chrome’s poor scaling with pixel count.</li>
<li>Cubes are still very very awesome.</li>
<li>Cubes that have video in each side are much much harder to solve.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://vaughanknight.com/2011/04/html5cubethe-html5-cube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Video Codec Selection in JavaScript</title>
		<link>http://vaughanknight.com/2011/04/html5-video-codec-selection-in-javascript/</link>
		<comments>http://vaughanknight.com/2011/04/html5-video-codec-selection-in-javascript/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 15:10:55 +0000</pubDate>
		<dc:creator>Vaughan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://vaughanknight.com/2011/04/html5-video-codec-selection-in-javascript/</guid>
		<description><![CDATA[I was looking around for a nice video codec selection via JavaScript, and possibly writing my own if I couldn’t find one.&#160; Outside of the video players, there isn’t a library either.&#160; It is possible to interrogate the &#60;video&#62; element to find out what codec support it has.&#160; The problem is that it is only [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking around for a nice video codec selection via JavaScript, and possibly writing my own if I couldn’t find one.&#160; Outside of the video players, there isn’t a library either.&#160; </p>
<p>It is possible to interrogate the <font face="Courier New">&lt;video&gt;</font> element to find out what codec support it has.&#160; The problem is that it is only reliable in Opera.&#160; All other browsers are completely unreliable.</p>
<p>But there is an easier solution if all you are trying to do is load the right video via JavaScript.&#160; With video selection being an option within the video tag itself, you just need to create the <font face="Courier New">&lt;video&gt;&lt;source/&gt;&lt;source/&gt;&lt;/video&gt;</font> via JavaScript.&#160; Assuming your video files are encoded correctly (and the server is sending back the right mime types) you’re set!</p>
<blockquote><p><font size="5" face="Courier New">// Takes a file with no extension, and</font></p>
<p><font size="5" face="Courier New">/</font><font face="Courier New">/ creates a video element for webm/h264/ogg</font></p>
<p><font face="Courier New">// and plays it</font></p>
<p><font size="5" face="Courier New">function createVideo(fileNoExt)</font></p>
<p><font face="Courier New">{</font></p>
<p><font size="5" face="Courier New">&#160;&#160;&#160; var newVid = document.createElement(&#8216;video&#8217;);</font></p>
<p><font size="5" face="Courier New"></font></p>
<p><font size="5" face="Courier New">&#160;&#160;&#160; // IE, Safari, IOS</font></p>
<p><font size="5" face="Courier New">&#160;&#160;&#160; var h264 = document.createElement(&#8216;source&#8217;);       <br />&#160;&#160;&#160; h264.setAttribute(&#8216;src&#8217;, fileNoExt+&#8217;.mp4&#8242;);        <br />&#160;&#160;&#160; h264.setAttribute(&#8216;type&#8217;, &#8216;video/mp4&#8242;);</font></p>
<p><font face="Courier New"></font></p>
<p><font face="Courier New">&#160;&#160;&#160; // Firefox</font></p>
<p><font size="5" face="Courier New">&#160;&#160;&#160; var ogv = document.createElement(&#8216;source&#8217;);       <br />&#160;&#160;&#160; ogv.setAttribute(&#8216;src&#8217;, fileNoExt+&#8217;.ogv&#8217;);        <br />&#160;&#160;&#160; ogv.setAttribute(&#8216;type&#8217;, &#8216;video/ogg&#8217;);</font></p>
<p><font face="Courier New"></font></p>
<p><font face="Courier New">&#160;&#160;&#160; // Chrome</font></p>
<p><font size="5" face="Courier New">&#160;&#160;&#160; var webm = document.createElement(&#8216;source&#8217;);       <br />&#160;&#160;&#160; webm.setAttribute(&#8216;src&#8217;, fileNoExt+&#8217;.webm&#8217;);        <br />&#160;&#160;&#160; webm.setAttribute(&#8216;type&#8217;, &#8216;video/webm&#8217;);</font></p>
<p><font face="Courier New"></font></p>
<p><font size="5" face="Courier New">&#160;&#160;&#160; newVid.appendChild(webm);       <br />&#160;&#160;&#160; newVid.appendChild(h264);        <br />&#160;&#160;&#160; newVid.appendChild(ogv);</font></p>
<p><font face="Courier New">&#160;&#160;&#160; document.body.appendChild(newVid);</font></p>
<p><font face="Courier New">&#160;&#160;&#160; newVid.play();</font></p>
<p><font face="Courier New">}</font></p>
</blockquote>
<p>I’ve been using this approach for a few things, and it seems to work every time.&#160; </p>
<p><strong>NOTE:</strong> The order of source elements is important.&#160; iOS 3.x has a bug where it only looks for the first element, so H.264 should always go first.    </p>
]]></content:encoded>
			<wfw:commentRss>http://vaughanknight.com/2011/04/html5-video-codec-selection-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fallout 3 and Cooking in the Dangerzone</title>
		<link>http://vaughanknight.com/2008/11/fallout-3-and-cooking-in-the-dangerzone/</link>
		<comments>http://vaughanknight.com/2008/11/fallout-3-and-cooking-in-the-dangerzone/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 11:02:44 +0000</pubDate>
		<dc:creator>Vaughan</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Chernobyl]]></category>
		<category><![CDATA[Cooking]]></category>

		<guid isPermaLink="false">http://vaughanknight.com/?p=46</guid>
		<description><![CDATA[Fallout 3 is possibly the most vast games I have seen.  With 100 hour gameplay, I am scratching the surface, and the enormity of the environment only sinks in many hours into the game.  The game is flawed, in many ways, but at the same time the good bits make the entire game worth experiencing. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://vaughanknight.com/wp-content/uploads/2008/11/cook_danger3_wt_l_1.jpg"><img class="aligncenter size-full wp-image-47" title="Cooking in the Dangerzone" src="http://vaughanknight.com/wp-content/uploads/2008/11/cook_danger3_wt_l_1.jpg" alt="Cooking in the Dangerzone" width="0" height="1" /> </a><img class="alignright size-medium wp-image-48" title="Fallout 3" src="http://vaughanknight.com/wp-content/uploads/2008/11/100x100falloutav-vb.gif" alt="Fallout 3" width="100" height="100" /> <a title="http://fallout.bethsoft.com/eng/home/home.php" href="http://fallout.bethsoft.com/eng/home/home.php">Fallout 3</a> is possibly the most vast games I have seen.  With 100 hour gameplay, I am scratching the surface, and the enormity of the environment only sinks in many hours into the game.  The game is flawed, in many ways, but at the same time the good bits make the entire game worth experiencing.</p>
<p>This enormity has changed my behaviour.  What I have found in <a title="http://fallout.bethsoft.com/eng/home/home.php" href="http://fallout.bethsoft.com/eng/home/home.php">Fallout 3</a> is that I play it for just a few minutes, and walk away at any point.  The game is just so big, that persisting is pointless, and whilst the game has milestones, progression feels analog.  Living with your consequences makes the game very interesting.  For example, my uber hacking-lockpicking-sneaking-melee strategy isn&#8217;t going so good.  Why?  Let me point out there are few buildings, let alone doors, and even less computers, and in the vast expanse of the wasteland visibility is 100 miles, and nearly everyone has at least one gun.</p>
<p style="text-align: center;"><img class="size-medium wp-image-48 aligncenter" title="Fallout 3" src="http://vaughanknight.com/wp-content/uploads/2008/11/screen15b1-300x168.jpg" alt="Fallout 3" width="300" height="168" /></p>
<h6 style="text-align: center;">Fig 1. Guns &gt; Sneaky</h6>
<p>But I&#8217;m sick of such large budget games not getting the characterisation solid.  Every second character in the game still feel like cardboard cutouts.  Some major characters are excellent, others feel like someone has wheeled them in.</p>
<p>The other aspect is radiation poisoning.  Radioactive poisoning in Fallout 3 is cool.   From rivers of toxic waste, to inactive bombs, and old war sites.  You start to feel like the entire world is a post apocolyptic Chernobyl.  Every time you eat a piece food, you get radiation poisoning.  Get too much and you start to get sick.  This in turn can be reduced by taking radiation reduction formula.  That is pretty simple.  Regardless, I dub this the &#8216;did we forget to balance this&#8217; game mechanic.  It constantly feels like a ball and chain slowing you down through the game progression.  I like the fact swimming in radioactive water can make me sick, it is immersive, but I am at a loss as to how eating a kebab somehow makes me more radioactive than swimming across an ocean of radioactive sludge.</p>
<p>But enough of Fallout 3.  It&#8217;s good, either buy it if you can&#8217;t wait, or borrow it when your mate has completed the billion hours of gameplay or died of radiation sickness.</p>
<p>Second up on the agenda today is <a title="Cooking in the Dangerzone" href="http://news.bbc.co.uk/1/hi/programmes/cooking_in_the_danger_zone/default.stm">Cooking in the Dangerzone</a> .  You can watch it on TV (in Australia) <a title="Cooking in the Dangerzone" href="http://www.sbs.com.au/blogarticle/108534/Sneak-Peek-of-Episode-1-Chernobyl">Wednesday November 5th on SBS</a> .  <a title="The Gastronaut" href="http://www.thegastronaut.com/index/Home/Home.html">Stefan Gates</a> sets out on his way to Chenobyl, and against his producer&#8217;s advice, he eats the local food, with some interesting results.   A short clip from the show below&#8230;</p>
<div style="text-align: center;"><script src="http://flash.revver.com/player/1.0/player.js?mediaId:1264557;width:480;height:392;" type="text/javascript"></script></div>
<p>A really interesting show, and well worth the watch. And with an 80 year old women eating radioactive food every day of her life, you start to realise how unbalanced that game mechanic really was.</p>
]]></content:encoded>
			<wfw:commentRss>http://vaughanknight.com/2008/11/fallout-3-and-cooking-in-the-dangerzone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Prince of Persia Trailer</title>
		<link>http://vaughanknight.com/2008/10/new-prince-of-persia-trailer/</link>
		<comments>http://vaughanknight.com/2008/10/new-prince-of-persia-trailer/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 21:30:50 +0000</pubDate>
		<dc:creator>Vaughan</dc:creator>
				<category><![CDATA[Art]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Prince of Persia]]></category>

		<guid isPermaLink="false">http://vaughanknight.com/?p=42</guid>
		<description><![CDATA[Just watched the Prince of Persia Trailer on Kotaku. Glorious. So watch it. That is all. Thank you Mr. Ewer for showing me.]]></description>
			<content:encoded><![CDATA[<p>Just watched the Prince of Persia Trailer on Kotaku.  Glorious.  So watch it.  That is all.<br />
<center><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="463" height="387" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://blip.tv/play/gb1B0qUQjflk" /><embed type="application/x-shockwave-flash" width="463" height="387" src="http://blip.tv/play/gb1B0qUQjflk"></embed></object></center></p>
<p>Thank you Mr. Ewer for showing me.<a href="http://vaughanknight.com/wp-content/uploads/2008/10/princeofpersia.jpg"><img class="aligncenter size-medium wp-image-41" title="New Prince of Persia " src="http://vaughanknight.com/wp-content/uploads/2008/10/princeofpersia-300x168.jpg" alt="New Prince of Persia " width="0" height="1" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://vaughanknight.com/2008/10/new-prince-of-persia-trailer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turn Your Xbox 360 into a Streaming Netflix Player</title>
		<link>http://vaughanknight.com/2008/06/turn-your-xbox-360-into-a-streaming-netflix-player/</link>
		<comments>http://vaughanknight.com/2008/06/turn-your-xbox-360-into-a-streaming-netflix-player/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 01:21:31 +0000</pubDate>
		<dc:creator>Vaughan</dc:creator>
				<category><![CDATA[Video]]></category>
		<category><![CDATA[Xbox360]]></category>
		<category><![CDATA[Netflix]]></category>
		<category><![CDATA[vmcnetflix]]></category>
		<category><![CDATA[Xbox 360]]></category>

		<guid isPermaLink="false">http://vaughanknight.com/blog/?p=11</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>That&#8217;s right.&nbsp; Watch <a href="http://www.netflix.com/">NetFlix</a> on your Xbox 360 with the vmcNetflix plug-in!&nbsp; It is a bit slow, in beta, but it works.&nbsp; </p>
<p><center><br />
<object height="344" width="425"><param name="movie" value="http://www.youtube.com/v/XcqEh10JDKw&amp;hl=en" /><param name="wmode" value="transparent" /><embed src="http://www.youtube.com/v/XcqEh10JDKw&amp;hl=en" type="application/x-shockwave-flash" wmode="transparent" height="344" width="425"></object><br />
</center><br/><br/><br />
This video via <a href="http://lifehacker.com/">Lifehacker</a> giving a demo of it working.&nbsp; Head on over to <a href="http://lifehacker.com/">Lifehacker</a> to find out more on what you need to <a href="http://lifehacker.com/396881/turn-your-xbox-360-into-a-streaming-netflix-player">turn your Xbox 360 into a streaming netflix player</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://vaughanknight.com/2008/06/turn-your-xbox-360-into-a-streaming-netflix-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

