<?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>viciouz.co.uk &#187; Tutorials</title>
	<atom:link href="http://viciouz.co.uk/site/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://viciouz.co.uk/site</link>
	<description>Mundanity Incarnate</description>
	<lastBuildDate>Sat, 07 Apr 2012 21:10:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Showing &#8220;Now Playing:&#8221; in Quake &amp; derivatives</title>
		<link>http://viciouz.co.uk/site/2012/03/showing-now-playing-in-quake-derivatives/</link>
		<comments>http://viciouz.co.uk/site/2012/03/showing-now-playing-in-quake-derivatives/#comments</comments>
		<pubDate>Wed, 14 Mar 2012 16:14:34 +0000</pubDate>
		<dc:creator>ViciouZ</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Paintball 2.0]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[amip]]></category>
		<category><![CDATA[counter-strike]]></category>
		<category><![CDATA[day of defeat]]></category>
		<category><![CDATA[half-life 2]]></category>
		<category><![CDATA[quake]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://viciouz.co.uk/site/?p=286</guid>
		<description><![CDATA[I recently switched from mIRC to KVirc for a chat client, because I&#8217;ve already installed mIRC on three PCs and I can&#8217;t be bothered with getting another license. This prompted me to look for a new script to show what&#8217;s playing in my iTunes occasionally. Luckily, KVirc has a lot of media player functionality built [...]]]></description>
			<content:encoded><![CDATA[<p>I recently switched from mIRC to KVirc for a chat client, because I&#8217;ve already installed mIRC on three PCs and I can&#8217;t be bothered with getting another license. This prompted me to look for a new script to show what&#8217;s playing in my iTunes occasionally. Luckily, KVirc has a lot of media player functionality built in, with support for <a title="AMIP Homepage" href="http://amip.tools-for.net/wiki/start">AMIP</a> &#8211; a useful tool to fetch now playing information from a variety of media players. Playing around with this, I discovered there&#8217;s an option to write the information to a file in a format of your choosing. This gave me an idea: why not use it to share the song in a game?</p>
<p><a href="http://viciouz.co.uk/site/wp-content/uploadfiles/2012/03/sshot0000.jpg"><img class="aligncenter size-large wp-image-287" title="sshot0000" src="http://viciouz.co.uk/site/wp-content/uploadfiles/2012/03/sshot0000-1024x576.jpg" alt="" width="560" height="315" /></a></p>
<p>So here&#8217;s how to do it:</p>
<ol>
<li>Download and install AMIP for your player from http://amip.tools-for.net/wiki/amip/download</li>
<li>Download and install the AMIP Configurator from the same page</li>
<li>Open the AMIP Configurator and go to the &#8220;File/Email&#8221; screen under &#8220;Other Integrations&#8221;</li>
<li>Set the file path to a new .cfg file in your game&#8217;s config directory &#8211; I&#8217;m using Paintball 2.0, so in my case it&#8217;s C:\games\paintball2\pball\configs\song.cfg.</li>
<li>Set the text in the &#8220;Play&#8221; etc. windows to some appropriate commands, substituting %name where you want the song title &amp; artist. For example, in Paintball2, the &#8220;me&#8221; command will broadcast the speaker&#8217;s name followed by the text you give it. If your game does not support this, the vast majority of all quake derivatives support the &#8220;say&#8221; command, so you can use that instead.<a href="http://viciouz.co.uk/site/wp-content/uploadfiles/2012/03/example.png"><img class="aligncenter size-medium wp-image-290" title="example" src="http://viciouz.co.uk/site/wp-content/uploadfiles/2012/03/example.png" alt="" width="560" height="364" /></a></li>
<li>Click apply and then OK. If you get an error about saving the config, you may need to run the configurator again, with admin priviledges (right click-&gt;run as administrator)</li>
<li>Start your media player and select a song.</li>
<li>Start your game, and bind a key to &#8220;exec song.cfg&#8221;, or whatever you called your config. I chose the keypad enter button, so I typed: &#8220;bind kp_enter exec song.cfg&#8221;</li>
<li>Press the button you chose whenever you want to show the song you&#8217;re listening to <img src='http://viciouz.co.uk/site/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ol>
<p>This should work with most Quake 1/2/3/4 engine games, and derivatives &#8211; e.g. it works with the Source engine too, for any Half-Life 2: DM/Counter-Strike: Source/Day of Defeat: Source players out there <img src='http://viciouz.co.uk/site/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://viciouz.co.uk/site/wp-content/uploadfiles/2012/03/example2.jpg"><img class="aligncenter size-medium wp-image-291" title="CS:S Example" src="http://viciouz.co.uk/site/wp-content/uploadfiles/2012/03/example2.jpg" alt="" width="560" height="315" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://viciouz.co.uk/site/2012/03/showing-now-playing-in-quake-derivatives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: Streaming iTunes Store Videos to a Wii</title>
		<link>http://viciouz.co.uk/site/2010/05/streaming-itunes-videos-wii/</link>
		<comments>http://viciouz.co.uk/site/2010/05/streaming-itunes-videos-wii/#comments</comments>
		<pubDate>Fri, 21 May 2010 19:22:01 +0000</pubDate>
		<dc:creator>ViciouZ</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[homebrew]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[streaming]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wii]]></category>

		<guid isPermaLink="false">http://viciouz.co.uk/site/?p=69</guid>
		<description><![CDATA[Recently I bought the first series of The Thick Of It on the iTunes store &#8211; I was impressed with the ease of use and the quick download. However, watching most sorts of video on a PC monitor is quite tiring, and it can be a lot easier to watch such programmes on a regular [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I bought the first series of The Thick Of It on the iTunes store &#8211; I was impressed with the ease of use and the quick download. However, watching most sorts of video on a PC monitor is quite tiring, and it can be a lot easier to watch such programmes on a regular TV. So, as I have a Wii with the homebrew channel and MPlayer CE installed on it, I decided to put it to good use for this purpose. However, I couldn&#8217;t just put the episodes onto a SD card or USB stick and play them with MPlayer as iTunes encrypts video purchases and ties them to your account &#8211; in addition it is unlikely that the Wii&#8217;s hardware could handle the H.264 encoding of the video. So instead here is a solution to this problem &#8211; it&#8217;s quite fiddly and not very elegant but it has produced reasonable results for me.</p>
<p>To stream videos from your PC to your TV you will need:</p>
<ul>
<li>A fairly powerful PC running Windows XP or Vista (Sorry mac and linux users &#8211; I&#8217;m currently trying to work out a way to do this with open source tools)(Not tested on Windows 7)</li>
<li>A networked Wii with MPlayer (find out how to install The Homebrew Channel, MPlayer and other software on your Wii for free at http://wiibrew.org)</li>
<li>An SD card or USB stick, anything to get a file to the Wii for MPlayer to open &#8211; you can the same card that MPlayer is installed on.</li>
<li>Windows Media Encoder &#8211; get it here: (<a title="Windows Media Encoder 64bit" href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=cc41218d-7e37-4546-bf0b-1276959ee3ef" target="_blank">64bit</a> or <a title="Windows Media Encoder 32bit" href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=5691ba02-e496-465a-bba9-b2f1182cdf24" target="_blank">32bit</a>)</li>
</ul>
<p><span id="more-69"></span></p>
<p><strong>Step 1</strong></p>
<p><strong> </strong></p>
<p>Open iTunes and right click on the video that you want to play and select &#8220;Get Info&#8221;. Make a note of the &#8220;Video Dimensions&#8221; property, you will be needing this later.</p>
<p><a href="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/itunes1.png"><img class="aligncenter size-full wp-image-83" title="itunes1" src="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/itunes1.png" alt="" width="533" height="474" /></a></p>
<p>Now open up and pause a copy of your video, it may help to move the player into one corner of your desktop for later. It may help to get better quality if you right click the video and select &#8220;actual size&#8221;, this will remove any quality degradation from resizing the video. However, for HD videos you might need to resize the window to make it smaller, as the Wii cannot handle HD video. It&#8217;s good to aim for resolutions around 640&#215;480 for videos with an aspect ratio of 4:3 and 640&#215;360 for widescreen videos.</p>
<p><strong>Step 2</strong></p>
<p>Install Windows Media Encoder, whichever version is suitable for your platform (if you&#8217;re not sure, choose 32-bit). Open it up, you should see a dialog box like this:</p>
<p><a href="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc1.png"><img class="aligncenter size-full wp-image-70" title="wmenc1" src="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc1.png" alt="" width="626" height="427" /></a></p>
<p>Choose &#8220;Custom Session&#8221; and click OK</p>
<p><strong>Step 3</strong></p>
<p>You should be now presented with a new screen.</p>
<p><a href="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc2.png"><img class="aligncenter size-full wp-image-73" title="wmenc2" src="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc2.png" alt="" width="544" height="885" /></a></p>
<p>As is shown in the picture, select &#8220;Screen Capture&#8221; as a video source and click the &#8220;Configure&#8221; button next to it. You should get this window:</p>
<p><a href="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc3.png"><img class="aligncenter size-full wp-image-74" title="wmenc3" src="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc3.png" alt="" width="467" height="433" /></a></p>
<p>Select &#8220;Region of Screen&#8221;, then click the button underneath and drag it over your video, trying to be as accurate as possible. Now, tweak the &#8220;Top left corner&#8221; and Width/Height settings until you have covered the appropriate area of the screen. If you selected &#8220;Actual size&#8221; at the end of step 1, the Width and Height should be the same as the &#8220;Video Dimensions&#8221; you found from iTunes earlier. If you didn&#8217;t because your video is HD, don&#8217;t worry, just try and fit the video well. <em>Note that the width and height must both be divisible by 2 or you will get an error.</em></p>
<p>When you are done, click &#8220;OK&#8221;. Now select the audio source as &#8220;Stereo Mix&#8221; &#8211; if you can&#8217;t see it on the list, there are various tutorials on how to enable it for Vista &#8211; http://www.singsnap.com/snap/forum/topic/aa373f is one example. (Windows 7 does not have this feature; I have not yet found a solution.)</p>
<p>Your screen should by now look something like this:</p>
<p><a href="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc4.png"><img class="aligncenter size-full wp-image-75" title="wmenc4" src="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc4.png" alt="" width="544" height="885" /></a></p>
<p><strong>Step 4</strong></p>
<p>Select the &#8220;Output&#8221; tab. Verify that your screen looks like this:</p>
<p><a href="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc5.png"><img class="aligncenter size-full wp-image-76" title="wmenc5" src="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc5.png" alt="" width="544" height="885" /></a></p>
<p>Make sure your screen looks like the above screen &#8211; I have used port 8080 because it is unused on my PC. If you are unsure, click &#8220;Find Free Port&#8221;. You should also make sure that Windows Media Encoder and the port you have chosen are allowed through any firewalls you have installed on your PC (don&#8217;t bother disabling your router&#8217;s firewall if you have one, there is no need for the whole world to be able to view your stream if it is just for your Wii).</p>
<p><strong>Step 5</strong></p>
<p>Select the &#8220;Compression&#8221; tab. It probably will look something like this:</p>
<p><a href="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc6.png"><img class="aligncenter size-full wp-image-77" title="wmenc6" src="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc6.png" alt="" width="544" height="885" /></a></p>
<p>This is where we select a media profile to encode the captured video into. All these profiles are designed for web streaming; however we are streaming using specific circumstances &#8211; we have a fast network connection to a device with moderate processing power. If you&#8217;re interested in video encoding principles you can have a play around with this page and try and optimise for quality or speed &#8211; for now, let&#8217;s create a custom session that should provide a good all-round profile.</p>
<p>Try and match the screen above, then click &#8220;Edit&#8221;.</p>
<p><a href="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc7.png"><img class="aligncenter size-full wp-image-78" title="wmenc7" src="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc7.png" alt="" width="550" height="543" /></a></p>
<p>Click the tab at the top of the dialog box and enter the same settings as above. They may not be perfect but provide a good middle ground, and as mentioned earlier you can tweak them to your liking if you know what you&#8217;re doing. When you&#8217;re done, close the dialog by clicking &#8220;OK&#8221;. Your screen should now resemble this:</p>
<p><a href="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc8.png"><img class="aligncenter size-full wp-image-79" title="wmenc8" src="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc8.png" alt="" width="544" height="885" /></a></p>
<p><strong>Step 6</strong></p>
<p>Now we&#8217;ve created a profile, it might be a good time to save it &#8211; this way you can open it again weeks or months later &#8211; for episodes of the same show with the same resolution, you&#8217;ll only need one profile. This is why it&#8217;s useful to line up your iTunes video window with a corner of the screen &#8211; it makes it very easy to line up again when you load up a saved profile.</p>
<p><a href="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc10.png"><img class="aligncenter size-full wp-image-81" title="wmenc10" src="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc10.png" alt="" width="561" height="411" /></a></p>
<p>You are now ready to start encoding. Click the &#8220;Start Encoding&#8221; button on the second toolbar at the top of the window. Your encoder window should minimise itself &#8211; if you re-open it you should have something like this in front of you:</p>
<p><a href="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc9.png"><img class="aligncenter size-full wp-image-80" title="wmenc9" src="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/wmenc9.png" alt="" width="544" height="885" /></a></p>
<p><em>If the encoder stops or finishes when you restore it, don&#8217;t worry &#8211; you can disable this in the settings menu.</em></p>
<p>As you can see from the status bar at the bottom, the encoder is now broadcasting. The stats at the bottom give a good indication of whether or not your video will be of good quality &#8211; if &#8220;Average fps&#8221; is much lower than &#8220;Expected fps&#8221;, your PC cannot handle the encoding &#8211; you can try closing programs you don&#8217;t need, resizing your video window to make it smaller (don&#8217;t forget to redo the first half of step 3 if you do this!) or going back to step 5 and lowering the video and audio bitrates &#8211; however this will also affect quality.</p>
<p>Make sure there are no windows on top of your video or they will be shown in the output.</p>
<p><strong>Step 7</strong></p>
<p>So now you&#8217;ve done the hard part, you just need to get your Wii to connect. This is possible by making a playlist file. Open up a text editor such as notepad and paste the following into it:</p>
<p><code>[playlist]<br />
</code><code>File1=http://your-address:your-port<br />
Title1=Desktop Stream<br />
Length1=-1<br />
NumberOfEntries=1<br />
Version=2</code></p>
<p>This is the basis of a PLS playlist file which MPlayer can open. It&#8217;s not finished yet though. Find the internal (network) IP address of the PC you&#8217;re using &#8211; if you don&#8217;t know how, read this &#8211; it usually comes in the format &#8220;192.168.xxx.xxx&#8221;. Put this where &#8220;your-address&#8221; is in the example. Then, after the colon, put the port you chose earlier in step 4. In my case, the computer had the IP address 192.168.1.3 and the port I was using was 8080 &#8211; so the config file looked like this:</p>
<p><a href="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/playlist1.png"><img class="aligncenter size-full wp-image-71" title="playlist1" src="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/playlist1.png" alt="" width="464" height="216" /></a></p>
<p>You now need to save the file onto your SD card or USB stick. Put it somewhere easy to remember. You need to give the file a .pls extension, so when you&#8217;re saving it, call it &#8220;desktop.pls&#8221;, and make sure to select &#8220;All Files (*.*)&#8221; as the file type. Then click Save.</p>
<p><a href="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/playlist2.png"><img class="aligncenter size-full wp-image-72" title="playlist2" src="http://viciouz.co.uk/site/wp-content/uploadfiles/2010/05/playlist2.png" alt="" width="610" height="175" /></a></p>
<p><strong>Step 8</strong></p>
<p>Now take your SD card or USB stick with the playlist file on it and put it in your Wii. Start up MPlayer CE through The Homebrew Channel or another method, and then use the controller to browse to and open the playlist file you saved. After a few seconds you should see your paused video. You can now go to your PC and begin the video &#8211; due to the use of buffering in streaming, there will be a delay of several seconds before your video starts to play &#8211; this can be reduced or eliminated using the Windows Media Encoder settings. Now get a drink and some popcorn, sit back and enjoy!</p>
<p><strong>Notes</strong></p>
<p>This technique of streaming is not limited to iTunes videos &#8211; it can also be used to stream games, web videos, or other content direct from your screen. However, for many other uses there are better alternatives, such as just copying a recorded video file onto a SD card or USB stick and playing it direct from the Wii. You can also use Windows Media Encoder to save screen captures to .wmv files using a similar method, but I will not explain that here as to use it on iTunes videos to make a copy may breach copyright laws in some countries. I do not believe streaming has such issues as no &#8220;copy&#8221; of the file is being made, and if you have personally bought the content and are only streaming it to yourself, there is no &#8220;theft&#8221; taking place. For this reason you should not give out stream details freely on the internet and should also not generally allow the stream past your router&#8217;s firewall. This technique is also resource-heavy as it requires the PC to both play and encode the video in real time. The process could be improved by making it cross-platform using open-source streaming software such as VLC, although I had no luck capturing video and audio at the same time. If you do get this to succeed, please comment with the information or a link to it if you have posted it yourself.</p>
<p>Hopefully this tutorial helped you out, if you had any problems, or have a suggestion or criticism, please post a comment below and I&#8217;ll see what I can do <img src='http://viciouz.co.uk/site/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><em>If you wish to publish this tutorial on your site, please provide a link to the original article here, or post a comment explaining where and why you&#8217;re going to publish it. </em></p>
]]></content:encoded>
			<wfw:commentRss>http://viciouz.co.uk/site/2010/05/streaming-itunes-videos-wii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

