Home > Gaming, Gaming Software, Programming & scripting > Media Center on the PS3 (debian) :)

Media Center on the PS3 (debian) :)

January 25th, 2007

This guide assumes a basic knowledge about linux. Writing a step by step guide for complete beginners would take forever, and at the current state there is no reason for someone who aren’t a linux user (geek) to install this yet. I predict that eventually there will be distributions for PS3 bundled with media frontends but until then this is not for the mainstream audience. I take no responsibilities for what you do with your PS3. Don’t do this if you don’t know what you are doing (although it should be safe).

Some guy named cka at somethingawfuls forum hinted that someone should try compiling MMS (http://mms.sunsite.dk/) for PS3 since it seems kind of nice.
I gave it a shot and it worked just fine, so I might give a few hints on how to do this if you are interested.

Picture of it running (never mind the Swedish, it will use your own locales)
mms on ps3

I did this using debian on my PS3 so my guide will cover how to do this in debian, but it should work just fine on any distribution, however you will of course not be able to use the same packaging tool (apt-get) as debian-users.

Step 1: Install debian on your PS3.
This might need it’s own guide… I used the debian live cd/installer from http://www.keshi.org/moin/moin.cgi/PS3/Debian/Live . I’m extremely pleased with this and concider it much better than YDL or FC5 for PS3 use. Try to follow the instructions (use the expert install) and it should be ok.

Step 2: Install ps3utils
Download ps3utils on your ps3 Available here.
As root do

dpkg -i ps3pf-utils_1.0.9-1_powerpc.deb

Step 3: Setup correct resolution
Most of the stuff here needs root access so open a terminal and su to root.
Create a file called “ps3video” in /etc/init.d/
Write the following text to it

#!/bin/bash
ps3videomode -v 3

Replace the “3″ argument in ps3videomode with your tv’s resolution as quoted from here

DO NOT ADD THE LINES BELOW TO THE ps3video FILE. They are just for you to find out which number to use.

Video mode ID:
  0:automode
  YUV 60Hz  1:480i  2:480p  3:720p  4:1080i  5:1080p
  YUV 50Hz  6:576i  7:576p  8:720p  9:1080i 10:1080p
  RGB 60Hz 33:480i 34:480p 35:720p 36:1080i 37:1080p
  RGB 50Hz 38:576i 39:576p 40:720p 41:1080i 42:1080p
  VESA     11:WXGA 12:SXGA 13:WUXGA

  full screen mode: 

ps3videomode -v 4 configures your PS3 for 60Hz 1080i and so on. I have a 720p 60Hz tv so I use ps3videomode -v 3.

Then make your ps3video script executable by doing

chmod +x /etc/init.d/ps3video

Finally make this script run at start up

ln -s /etc/init.d/ps3video /etc/rc2.d/S09ps3video

Step 4: Setup audio
Open /etc/modules
Add “snd_ps3pf” at a new line at the bottom of the file
Restart your PS3

Step 5: Install dependencies for MMS
First install pygame. You don’t really need this but is also sets up all of SDL correctly and will make it possible for you to use my script for showing the resolutions to pick later.

As root:

apt-get update
apt-get install python-pygame

Then install the dependencies as descripted in the mms help wiki.

apt-get install libimlib2-dev libsdl1.2-dev autoconf bazaar build-essential libxine-dev mplayer-nogui
apt-get install w32codecs libtag1-dev libsqlite0-dev libpcre3-dev liblircclient-dev libtool gettext

To compile you also need the xorg development package.

apt-get install xorg-dev

Step 6: Install MMS
Make a folder to hold the source files, change directory to it and do

baz register-archive http://mms.sunsite.dk/archives/2005-mmsv2
baz get anders@gnulinux.dk--2005-mmsv2/mmsv2--mainline--1.0.8

cd into the newly created directory and then do

./configure
make
make install

If no errors occur then it should have been installed correctly!

Step 7: Configure MMS
Open up /etc/mms/config and change some stuff in it :)

1. Make sure that outdev under “Output devices” is set to “sdl”
2. Set audio_dir to your folder containing music
3. Set mov_dir to your folder containing videos
4. Set mplayeropts to “-fs -zoom -sws 0 -ao oss”
(This stands for fullscreen, zoom, no software scaling, OSS audio)
5. Set v_res and h_res to your full screen resolution. For ps3videomode -v 3 this is

v_res = 1124
h_res = 644

If you are unsure about what resolutions are supported you can download a small script I wrote to find out (pygame required).

wget buffis.com/ps3/resolutions.py
python resolutions.py

6. Make sure that fullscreen is set to “true”
(if you want full screen)

Step 8: Run MMS
Write “mms” in a terminal. Hopefully it should start.
Read how to use the application at the mms-wiki.
http://mms.kicks-ass.org/wiki/index.php/MMS_Basics

And now you are done!
The possibility of me forgetting something to write in this guide is rather high as I’m simply trying to backtrack my actions from earlier today. If anyone run into issues drop a comment and I’ll reply as fast as I can!

NHK on ps3

buffi Gaming, Gaming Software, Programming & scripting

  1. April 21st, 2007 at 16:17 | #1

    where did you get w32codecs . i don’t find it in any repository. only find i386 package but ps3 is ppc thanks for help

  2. Vishal
    August 29th, 2007 at 20:49 | #2

    Okay this is great but tell me how is the sound supposed to work. If i get only dolby prologic || or downmixed 2 ch stereo then is it worth the effort.

  3. Ricky
    September 17th, 2007 at 11:21 | #3

    You may want to look at the developments in playerback on PS3.

    There is patches out for mplayer to use SPE and also a new buffer.

    Apparently (as I have yet to use it) this will allow smooth 720p playback (and possibly 1080 too).

  4. September 20th, 2007 at 11:41 | #4

    Thanks, I’ll look into that :)

  5. Jonas
    October 5th, 2007 at 00:31 | #5

    Are you able to stream video directly from an XP PC with this mediacenter?
    Having trouble to get my Vlc to stream from my xp pc to my linux PS#. I´m having YDL on it today.

  6. October 8th, 2007 at 17:51 | #6

    No idea actually.
    I still use my xbox as my media center of choice, and this was just a proof of concept that it works on the PS3 as well.

    There are probably better options by now.

  7. Zippa
    December 5th, 2007 at 16:08 | #7

    Hi Buffi.

    I really looked forward to this, what kind of files where you able to stream, Xvid, H.264? 720 or 1080p?

    Im from sweden to, and I really want to know more about this.

    //Zippa

  8. January 29th, 2008 at 14:56 | #8

    Long time no see, Buffis.

    Recently bought a PS3 for use as a media center and will try out your guide on getting it to work under Debian as soon as I receive a keyboard to use with the PS3. Any idea if it needs to be a USB keyboard or if the PS3 Bluetoothe keyboard will work as well.

  9. January 31st, 2008 at 19:19 | #9

    Bluetooth should work fine.
    Haven’t tried it though.

  10. March 20th, 2009 at 10:22 | #10

    And adding more to PS3 will be possibile?

  1. No trackbacks yet.