Note that this worked for me, but I can't guarantee that it won't completely destroy your computer, so use at your own risk.
Installing ffpmeg, x264, mplayer and mencoder
First, follow these instructions to install the very latest ffmpeg and x264:
http://ubuntuforums.org/showthread.php?t=786095
(svn x264 is required for compiling x264. ffmpeg can be omitted if you plan on using ffmpeg-mt fore multicore cpu utilization, see below)
Next remove mplayer and mencoder from your system by issuing the following command:
- Code: Select all
sudo apt-get remove mplayer-nogui mencoder
Next, follow these instructions to install the very latest mplayer:
http://ubuntuforums.org/showthread.php?t=1305181
(Optionally, if you would like to use the multi-threaded branch of mplayer ffmpeg-mt for better performance with multi-cpu configured PCs, use these instructions as well:
http://ubuntuforums.org/showthread.php?t=1049449)
During this section of the guide:
- Code: Select all
$ cd $HOME/mplayer
$ ./configure --cc=gcc-4.3 --confdir=/etc/mplayer --disable-mencoder --disable-x264
$ make
$ sudo checkinstall -D --install=yes --fstrans=no --pakdir "$HOME/Desktop" \
--pkgname mplayer-nogui --backup=no --deldoc=yes --deldesc=yes --delspec=yes --default \
--pkgversion "3:1.0~svn-`grep "#define VERSION" version.h | cut -d"-" -f2`"
$ make distclean
We want to REMOVE the "--disable-mencoder --disable-x264" from the command, so that mencoder and x264 support are compiled. The command should look like this:
- Code: Select all
./configure --cc=gcc-4.3 --confdir=/etc/mplayer
Once you are finished with the guide, make sure you can play movie files with smplayer before continuing.
RAR Playback fix
In order to play/encode files from within rar archives, the cache=2048 switch must be used. We can control this switch from command line by issuing something like
- Code: Select all
unrar p -inul test.rar|mplayer -cache=2048 -
but we cannot control it from within PS3 media server. As a workaround, you can add or uncomment it in your mencoder configuration file.
- Code: Select all
gedit $HOME/.mplayer/.mencoder.conf
- Code: Select all
cache=2048
optionally you can do the same to your $HOME/.mplayer/config file.
Compile the latest SVN of ps3 media server
First, install the JDK and ant.
- Code: Select all
sudo apt-get install sun-java6-jdk ant
Next, change to your home directory and download the SVN of PS3 Media server:
- Code: Select all
cd ~
- Code: Select all
svn checkout http://ps3mediaserver.googlecode.com/svn/trunk/ ps3mediaserver-read-only
Once that completes, we can go into the directory where the PS3 Media Server code is downloaded and compile it with ant
- Code: Select all
cd ps3mediaserver-read-only/ps3mediaserver
ant
You have to make sure that PMS.sh has execute permissions on it.
- Code: Select all
chmod u+x PMS.sh
You also might have to do the same thing to tsMuxeR, located in the linux directory.
- Code: Select all
cd linux
chmod u+x tsMuxeR
Next, move ps3mediaserver to your home directory and remove the ps3mediaserver-read-only directory.
- Code: Select all
cd ~
mv ps3mediaserver-read-only/ps3mediaserver .
rm -rf ps3mediaserver-read-only
Done!
Now you can run ps3 media server by changing to the ps3mediaserver directory
- Code: Select all
cd ps3mediaserver
and typing
- Code: Select all
./PMS.sh
Tweaks
I was having an issue skipping forward on certain movies. It would only allow me to skip, say 1 hour forward. Any further than that and the movie would pause and I couldn't start it. Upon examining the logs and reviewing some forum posts, it was determined that tsMuxeR was the problem. Within PS3MediaServer, I completely disabled tsmuxer, and I no longer have this issue.
Make PS3 Media Server start on login
PMS.sh HAS to be ran from the directory it is in... if you run it by typing /home/username/ps3ms/PMS.sh, you will get errors when playing your files, and if you click on the README tab or FAQ tab, they will be blank. This is because it uses relative paths in it's code. The only correct way to run PMS.sh is to first cd into the directory, then run ./PMS.sh.
It is because of this, that when you try to run PMS.sh from your Startup programs, you will run into issues trying to play movie files. To get around this, create a script file that will first cd into the directory, and then run PMS.sh.
Create a file in your home directory called start-pms.sh, with a text editor add the following to it:
- Code: Select all
#!/bin/sh
cd /home/username/ps3mediaserver
./PMS.sh
you'll want to give that file execute permissions
- Code: Select all
chmod u+x start-pms.sh
Next, click System > Preferences > Startup Applications
Click Add..
Name: PS3 Media Server
Command: /home/username/start-pms.sh
Click Add.
Click close. Now the next time you log in, you should see PS3 Media Server start. I check "start minimized" under general configuration so that I don't get the main window each time I log in.
