PS3 Media Server on Windows 7

Lots of guys are whining because of problems getting PMS running on Microsoft Windows 7. This weekend I installed Win7 myself and also did a basic installation of PMS. I couldn’t detect any problems ;)

So here’s a howto what I did…

First of all I have to say that I’m running the OS in 64bit mode. I installed necessary 64bit software when available.

Windows 7 64bit

You should enable UPNP on your router to get all functionality on your Playstation 3. Here’s an example of my Fritzbox router:

Fritzbox router

You should also check wether the services upnphost and ssdpsrv are running. This should be default behaviour of Windows 7. You have to be Admin in order to install software like mentioned below.

00ssdp_upnp

Download and install Sun JDK/JRE 6 Update 16 / Windows x64: http://java.sun.com/javase/downloads/index.jsp

I prefer the JDK which also includes the JRE. You will need the JDK if you want to compile latest betas of PMS by yourself.

01jdk 02jre

Set variable JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16 (optional for compiling)

03java_home

Download Apache ant (optional for compiling) Windows zip-package: http://ant.apache.org/bindownload.cgi

Exctract the zip and copy the content to C:\Program Files (x86)\apache-ant-1.7.1

set variable ANT_HOME=C:\Program Files (x86)\apache-ant-1.7.1

04ant_home

Add the ant-binary-path to system variable PATH:

PATH=… ;C:\Program Files (x86)\apache-ant-1.7.1\bin

Download and install Tortoise SVN (optional for compiling) msi-package 64bit (+ language pack if necessary): http://tortoisesvn.net/downloads

05tortoise

Reboot Windows and create a folder for PMS sourcecode (optional for compiling). Reight click on folder to checkout the PMS code…

06tortoise 07tortoise

After downloading the code you are able to compile the latest PMS beta.

Open command prompt and change to pms sourcecode directory, type ant to start compiling…

08compile

After compiling you can find the installer in dist-subdirectory.

09dist

Right click on windows installer and choose run as admin.

10runas

Install PMS and follow the instructions…

11pms

Maybe you get a strange popup after finishing installation. You have to choose that PMS was installed correctly.

12installed

After that start PMS. There will be another popup caused by Windows Firewall. You have to choose that Java will be able to connect to your home network.

13firewall

Instead of that you also can set a firewall rule manually (which is more secure):

Add Inbound and Outbound rules to the Windows firewall for tcp and udp port 5001 using the “Advanced Settings” in Control Panel \ System and Security \ Windows Firewall.

You may also want to disable the Windows firewall completely (which is less secure) if you have at least a firewall enabled on your router.

After configuring firewall stop PMS and start it once again. Maybe you get the strange popup once again. Choose that PMS is installed correctly.

14installed

Now PMS starts and connects to PS3.

15start

Everything is fine, PMS icon appears on XMB, some streaming tests also worked as expected.

O.k. That was the basic installtion of PMS on Windows 7 x64 including how to compile it by myself…

Windows 7 special

location of config files and log has changed when not run as Administrator:

C:\Users\xxx\AppData\Roaming\PMS\PMS.conf

C:\Users\xxx\AppData\Local\Temp\javaps3media\debug.log

This entry was posted in Media Server and tagged , , , . Bookmark the permalink.

24 Responses to PS3 Media Server on Windows 7

  1. Mooja says:

    This worked great for me, but now, in order to open PMS, i have to run PMS.bat instead of going to the start menu shortcut

  2. otmanix says:

    Hi Mooja, what’s wrong with the desktop shortcut?

  3. ASA says:

    I am having trouble compiling the code. I get the following when i try ANT at command prompt.
    “Files was unexpected at this time”
    Any help will be highly appreciated.

    PS: I am on a Windows 7, 64 bit AMD machine.

  4. otmanix says:

    I assume that ANT_HOME isn’t set correctly, ant binary is not in PATH or you didn’t reboot the PC.

  5. Junktruffle says:

    Why all the programs and setup ? I too run Windows 7 in a 64bit Environment.
    Here’s what worked for me.
    Downloaded PS3 media server, Installed it, Turned on PS3, Run Media server, Allow Access through firewall.. PS3 Found .. Hey Presto ! Streaming in 1080 no problem.

  6. otmanix says:

    Well, as you said simple setup is working great for most people. If you always want to have latest beta version of PMS and some additional features then setup in my article is the right choice…

  7. Danchoys says:

    Dowloaded and installed Sun Java 6 upd 18 win x64, but when I first opened the PMS it said that it is going to dowload Java as it needs it to work O__o. And it really downloaded and now uses the older Java 6 upd 10 win x32!!!! How to make the program see the new 64-bit version of that Java engine?

  8. otmanix says:

    start PMS with your desired version of java via command line:
    c:\Users\otmanix>cd “c:\Program Files\Java\jre6\bin”
    c:\Program Files\Java\jre6\bin>java -jar “c:\Program Files (x86)\PS3 Media Server\pms.jar”

    you may also create a shortcut with
    “c:\Program Files\Java\jre6\bin\java” -jar “c:\Program Files (x86)\PS3 Media Server\pms.jar”

    or change pms.bat (add path to Java binary)

    or set JAVA_HOME

    this should do the trick…

  9. Danchoys says:

    Really dunno how to write a path in the bat file =)
    Command line helped – the program really understood everything and that I use 64 bit OS as well. Still neither mencoder nor tsmuxer opened and the program cried about it ;) Kinda fixed with this http://ps3mediaserver.org/forum/viewtopic.php?f=2&t=1271. Still thanks a lot :)

  10. BS says:

    I notice that when compiling using the latest source code, the PMS version shows up as v1.20 (though SVN Update shows the most recent build, currently 386).

    When I download the public build, the version shows 1.11 rev. 386.

    Is there something I am not doing correctly when compiling? Thank you for the great howto.

  11. otmanix says:

    Hi BS, you’re doing everything right. Showing up v1.20 is expected behaviour, the revision number cannot be found after compiling. I already suggested a change in sourcecode in order to see the rev#…

  12. MJH says:

    Hi.

    Thanks for your awesome instructions….

    Quick question – How do I add a path to the pms.bat file?

  13. otmanix says:

    edit the file with a text editor like notepad++

  14. minfinitum says:

    Although it’s been mentioned before, those that get an error “Files was unexpected at this time”.
    Ensure your JAVA_HOME path does not contain spaces. Use a short name instead.

    i.e.
    set JAVA_HOME=C:\PROGRA~1\Java\JDK16~1.0_1
    or
    set JAVA_HOME=C:\PROGRA~2\Java\JDK16~1.0_1

    To figure out the short path… try listing each directory in short format via command prompt using dir /x [path]

    i.e
    C:\>dir /x prog*
    Volume in drive C
    Directory of C:\

    31/01/2010 09:03 PM PROGRA~1 Program Files
    05/02/2010 08:21 PM PROGRA~2 Program Files (x86)

    C:\>dir /x progra~2\java\*
    Volume in drive C

    Directory of C:\progra~2\java

    05/02/2010 08:21 PM JDK16~1.0_1 jdk1.6.0_18

  15. tricky says:

    Umm, okey i couldnt get it to work even though i followed every steps of the other guides, then i saw this. Aha, w7 x64, that might be it! Only to see this, if i would have ps3 mediaserver to work i first have to study programming for four years, then come back and try sort this guide out. This totally ruined my day :(

  16. otmanix says:

    PMS also works well with 32bit version of Java Runtime on Windows 7 x64. There’s no need to do the steps marked as optional. Compiling is for advanced users who want to have latest beta before available in official forum. This guide is for them.
    Without compiling you just have to download Java Runtime and PMS – run setup as Admin. After starting PMS the first time you may have to setup personal firewall.
    So, no university degree necessary to run PMS… ;)

  17. pwnmaster3001 says:

    how do u allow excess to the program from the firewall?

  18. Bruce says:

    Everytime I tried to install PS3 media server [Beta.409] PS3 media server says “PMS uses Java Runtime Environment 6.0, it will now be downloaded and installed.”

    It appears to DL and install. When I launch PS3 MS again it says “Download Failed: Unable to open C:\Users\Bruce\AppData\Local\Temp\Java Runtime Environment.exe.” and then closes.

    I have Win 7 64bit and have manually DL and installed 32bit and 64bit versions of JRE-6U20. I had no trouble on Vista 32 to see error msg view PS3 Blog:
    http://ps3mediaserver.org/forum/viewtopic.php?f=6&t=7043

  19. Tim says:

    Since i got a new pc with windows 7 on it, PMS is giving problems..
    My netwerk and router are the same and with them PMS worked perfect before.

    When i want to start a movie on my ps3 it always gives me the following error when i click on the movie pic to start it; Corrupted data.

    I already disabled the windows 7 firewall, does someone have some tips for me?

  20. otmanix says:

    @Tim: Have a look at debug.log. This text file contains a protocol of all PMS activities and errors. You can find the file in C:\Users\USERNAME\AppData\Local\Temp\javaps3media or in PMS installation folder.

  21. dan says:

    This looks like a great way for me to get all my movies to the PS3, but PMS only works for a day and then won’t recognize the PS3 anymore. I have the Java DL, and ran the install as an admin and PMS itself. I run win7-64bit Home Premium. I read through all the docs I could find that relate to this nut to no avail. I am positive I must have missed something any help would be greatly appreciated!

  22. otmanix says:

    stop PMS, kill hanging Java processes with Task manager if necessary, right click on PMS shortcut, run as admin
    I assume everything will be fine then… if that is the case change settings of PMS shortcut to run as admin every time when started…
    PMS is not UAC aware. The hint above is a workaround for UAC problems.
    http://en.wikipedia.org/wiki/User_Account_Control

  23. dan says:

    thanx for the info. Seems to be running with no problems.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>