Doh, if you are going to use your Windows Server 2003 as a streaming server for your Xbox 360, you might be in trouble. For a while I went with a rather sophisticated solution, running a Windows XP Media Center within a Virtual Server on my Windows Server 2003. The solution is not the desired one and as Windows Media Center and the Media Center Extender within Xbox 360 have some trouble in streaming h.264 encoded movies files, I had to dig a bit deeper.

Before you go one, please be aware of the following disclaimer:

The following is given under a “works on my machine” premise. The proposed approach is based on my very personal attempts and comes a”as is”. If you try to attempt the following steps, you do it on your own risk. It is not supported by Microsoft, and hey, in case you brick your box don’t expect any support from Microsoft. Don’t blame it to me either as you did it on your own risk, but let me know as it could be fun, tough.

There are several ways to share media with your Xbox 360. The easiest ways is to check out http://www.xbox.com/pcsetup/. After determining your OS, you will be guided through the best way to share media. Bad luck if you work on a Windows Server 2003, though. Not supported, you will be told. 

The easiest way is to share media over Windows Media Player 11. Windows Server 2003 comes with Windows Media Player 10. But as we know the core of Windows Server 2003 is somehow Windows XP and therefore there must be away to install WMP 11 on Windows Server 2003. If you google for it, you will come along a dozen hacks and workarounds and most of them won’t work.  Recently, this guy called C:Amie posted some awesome hack to install Windows Media player 11 on Windows Server 2003. If you have time, go through it, if you are in a hurry, do it that way:

  1. Make sure your box is fully patched and Service Pack 2 is installed.
  2. Download Windows the Windows Media Player 11 installer for Windows XP. 
  3. Download the automatic installer from C:Amie’s website.
  4. Run the automatic installer and extract it to any folder on your Windows Server 2003 box.
  5. Copy the previously downloaded wmp11-windowsxp-x86-enu.exe into the same directory.
  6. Go to the folder and run the INSTALL.CMD file.
  7. Follow the onscreen instructions.

    INSTALLER.CMD

    The script creates a temporary folder on your C: drive called C:\wmp11. There you have to change the compatibility mode of two files to Windows XP. Go to C:\wmp11\update\1\. and right click the update.exe file. Chose the Compatibility tab and check the Compatibility mode for Windows XP. Make the same for the update.exe file in c:\wmp11\update\2\.

    update.exe Properties Dialog
  8. Now go back to the command line window and press a key to continue and the simply wait.
  9. The software updater wills start after some time and after some more time you will end up with the UPnP for Windows Server 2003 dialog.

    UPnP for Windows Server 2003
    Check the Universal Plug and Play checkbox and select Next and then Finish.
  10. If everything went well, you will end up with Windows Media Player 11 on a Windows Server 2003. Hurray.

    image

But you remember that we want to stream h.264 encoded files to our Xbox 360, right? The good news is that Windows 7 will support h.264 natively. The bad news is that we work on a Windows Server 2003 right now.  With some work however, we can teach our Windows Server 2003 also to deal with h.264 encoded .mp4 files. All we have to do is to install some codecs and to apply some registry hacks.

  1. For the sake of simplicity, I took the K-Lite Mega Codec pack. It took the mega pack instead of the standard pack because Dirty Harry is using a .44 and not a .375. This might be reason enough.
  2. During installation select Profile 2. It’s the default profile without the players (you remember we want to stream anyway). Feel free to experiment with other profiles and custom settings.

    K-Lite Mega Codec Pack Setup Dialog
  3. When you come along the Select Additional Task step, don’t forget to scroll down and to check Make thumbnail generation possible for the following types. This will create the thumbnails in the Windows explorer and within the Windows Media Player 11.

    K-Lite Mega Code Pack Setup Dialog - Additional Tasks

At this point your Windows Media Player can play h.264 encoded files but your server is still not capable to share any kind of .mp4 files. They won’t show up in the folders monitored by Media Player until we apply some tweaks to the registry.

On my crusade I came along two registry patches. It seems that they did not work for everybody, however, nobody tried on Windows Server 2003. It worked for me after I installed both of them.

  1. Download the first registry patch, rename to .reg and install it.
  2. Download the second registry patch, rename to .reg and install it.
  3. Reboot to apply the registry changes.

Now, out Windows Server 2003 is capable to stream h.264 encoded media files. The previous patches will now cause that Windows Media Player 11 will add all kinds of .mp4 or .m4a files within the monitored folders. Adding these folders to be streamed is straight forward.

  1. Go to  Libary /Add to Library… 

    Windows Media Player 11 - Library Menu
  2. Add all kinds of folders that should be streamed to your Xbox 360. The media types will be organized automatically, so movies, music files and images will be shown in the corresponding tabs in the NXE. 

    Add to Library Dialog
     
  3. In some rare cases (and I know what I am talking about as I encountered this rare case) all your mp4 files won’t show up in the movie folders. In this case select Library / Other and check if the files are shown there.

    Windows Media Player 11 - Other  Media 

    If you find all your files here, something went terrible wrong with your media library. Calm down, there is a easy workaround (FWIW: if you already share media, stop sharing as the following won’t work).

    Go to C:\Documents and Settings\[YouProfileName]\Local Settings\Application Data\Microsoft and delete the Media Player folder. This will wipe out the whole media library for this computer. Restart from 1. and everything should be green now.

    Media Player Library  

Now, where everything is nicely organized, indexed and monitored, we are ready to share our media with the Xbox 360.

  1. Turn on your Xbox 360. 

    No kidding, you won’t be able to turn on sharing if the 360 is not on at that point of time.
  2. Go to Library / Media Sharing…

    Media Sharing 
  3. Now it’s straight forward:

    a) Check Share my media to

    b) Select your Xbox 360

    c) Click Allow 

    Media Sharing Dialog

  4. Finally, don’t forget to check out the Customize button which will open a dialog for some more fine tuning (what kinds of media to share, what ratings to share, etc.)

Now got to your Xbox 360 and enjoy your h.264 streamed media.

There are a few point’s I haven’t found out how to resolve, yet.

  1. The registry hacks don’t include .mkv file extensions. Also both hacks could be combined into one. I simply haven’t spend time in this yet.
  2. The 360 won’t show any thumbnails for the h.264 encoded files. Not sure if this is related to the XNE or the Media Player. This might worth some more investigation.
  3. The 360 does not show the length of the media file. It does so for .avi files, so this might be automatically answered once 2. is answered.
Posted at Saturday, February 28, 2009 6:33:11 PM (W. Europe Standard Time, UTC+01:00) 
Comments [10] #      | 

This evening I found some minutes to pimp my Mac mini. Actually, there is not a lot of things I am doing with it. iTunes, watching DVDs and sometimes doing some movie stuff with our DV camcorder. However, after the upgrade of my Tablet PC some weeks ago [1], two 512 MB S0 DDR-2 66z MHz  modules have been left over. Lucky for me it's exactly what the Mac mini likes...

Sounds easy, somebody told me, you just have to open the case and put the memory on the left side of the chassis. I also got a link including how to open the chassis [2]. Yeah! This sounds not too hard since BtK did this also a long time ago [3]. To cut a long story short, I search for a putty knife and started opening the box.

Putty Knife

The whole process does not take too long. In the very beginning you start carefully but soon you get a feeling for it. However, after opening the case, I was looking for the memory module... nothing on the left, nothing on the right... no memory modules on the front or in the back. Still impressed of the size of the components, I started to gather some tools for the following surgery. This included

  • still the putty knife
  • a small Phillips screwdriver
  • a Maglite flashlight
  • a small gripper

Actually there are four screws of get rid of located on the four corners of the board.

Open Mac mini

The only problem actually was the antenna on the tight upper corner. I tried some time to reach the screw, however the screw and the access hole are straight under the antenna. So nothing else was left than removing the antenna. This is necessary anyway since this part of the Mac mini has to be flipped over later during the surgery. Actually, this is quite simple: just press the black grippers right below the antenna. The attached spring lifts the antenna a bit so you can remove it.

Mac mini antenna 

A second more or less critical point is a small connector to the main board in front of the Mac mini. This has to be removed before you can flip the black plastic case which includes the DVD drive and the HDD. this connector should not be forgotten whilst closing the case alter as I almost did.

Mac mini connector

The memory then is located in the left side of the board. It takes some brain to go there. Since the mini was running for a while I took this chance tom remove some dust from the fan and from the cooling elements.

Mac mini RAM

After exchanging the two memory modules everything I had to do was putting all the parts together. The larger of the four screws has to go the front right corner, and not to forget the tiny plug as I almost did. Connecting monitor, power, mouse (a black Microsoft Wheel Mouse Optical USB) and the iPod. And...

Mac booting after RAM upgrade

Happy about the fact, my Mac mini now runs with 1 GB of RAM instead of 512 MB, I've learned two lessons:

  1. The memory on a Intel CPU-based Mac mini is on the last place you would look for.
  2. Check MSN Search next time before experimenting with hardware since somebody probably has done this before [4].

[1] http://blog.aheil.de/WindowsVistaVsM400.aspx 
[2] http://www.macworld.com/weblogs/editors/2005/01/...
[3] http://www.schrankmonster.de/...
[4] http://www.methodshop.com/gadgets/tutorials/macmini-ram/

Posted at Sunday, April 29, 2007 12:15:43 AM (W. Europe Daylight Time, UTC+02:00) 
Comments [0] #      | 

Windows Vista comes with a whole bunch of new, high-color icons. How to create own icons for Vista applications is explained in the Vista Icon Creation Guidelines [1]. If I find some time I will purchase Axialis IconWorkshop [2]. The tutorial [3] for that tool look quite promising.

[1] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/UxGuide/UXGuide/Resources/WhatsNewInVista/Icons.asp
[2] http://www.axialis.com/iconworkshop
[3] http://www.axialis.com/tutorials/tutorial-vistaicons.html

Posted at Wednesday, October 04, 2006 3:02:28 PM (W. Europe Daylight Time, UTC+02:00) 
Comments [0] #      | 
World Clock
Posted in Modding | Tools

Today I spent some minutes to enhance my desktop. I installed AveDesk 1.2 [1] and the World Clock v0.2.0 docklet [2]. Just rename the dockelt's zip-file to .aveinst and double click it. Also ensure, that SysStats [3] is installed before that. After spending some more time with setting up the clocks, I got only one black clock without any map in it. It took a while to find out, whre the problem was. The problem is already known [4] and depends on the regional settings of your windows. Using the german settings the system expects some floats using a format like this xxx.xxx.xxx,xx while the US layout the docklet was written for, uses xxx,xxx,xxx.xx. Unlike in the article before [4] the World.vba there does not work, because the french settings use numbers with a format like xxx xxx xxx,xx.

This additional function and the two changes in MoveMap() should be enough for the german settings:

Function stringToFloat(strMeters)
    if isNull(strMeters) then
        stringToFloat = 0
        exit function
    end if

    'US xxx,xxx.xx to DE xxx.xxx,xx
    strMeters = replace(strMeters, ".", "foobar")
    strMeters = replace(strMeters, ",", ".")
    strMeters = replace(strMeters, "foobar", ",")

    stringToFloat = strMeters
End Function

Function MoveMap()
    centerX = SysStatsModel.Width/2
    centerY = SysStatsModel.Height/2
    
    latitude = stringToFloat(SysStatsModel.Meters("Latitude"))
    longitude = stringToFloat(SysStatsModel.Meters("Longitude"))
' ...

You can download the modified World.vbs [5] (as it is, without any warranty, usage on your own risk). Just copy the file to the folder Docklets\SysStats\scripts\world within your AveDesk directory. If you try to add more then one instances of the world clock on your desktop, copy the World.ini file from the Docklets\SysStats\configs directory for each clock and rename it. Assign to each clock its own .ini file. Otherwise all the docklets will be the same after the next start of AveDesk.

After spending this afternoon to find out how it works, it looks pretty nice:

[1] http://www.dockex.com/?pageId=docks
[2] http://www.dockex.com/index.php?pageId=docklets&dkview=81
[3] http://www.dockex.com/index.php?pageId=docklets&dkview=38
[4] http://www.aqua-soft.org/board/showthread.php?t=25989&highlight=world+clock
[5] http://www.aheil.de/files/World.vbs

Posted at Tuesday, August 02, 2005 11:03:18 PM (W. Europe Daylight Time, UTC+02:00) 
Comments [0] #      | 
Copyright © 1995-2009 by Andreas Heil. aheil is a registered trademark of Andreas Heil. All rights reserved.
The opinions expressed herein are my own personal opinions and do not represent my employers' views in any way. Content and thoughts expressed on these pages and the weblog are subject to be changed. Out of date posts should not be considererd as my current thoughts and opinions.