ppietro wrote:Paul's spanking new, updated build post -
now with 20% more sparkle!!! 1. Install Mplayer codecs to
/usr/local/lib/codecshttp://www.mplayerhq.hu/design7/dload.h ... ary_codecsThis is a simple archive of codecs - use the PPC archive, and expand and copy the contents to /usr/local/lib/codecs however you like.
2. Open a terminal window, and make a directory to build mplayer-ps3 in:
mkdir mplayer-ps3
cd mplayer-ps33. Checkout latest build from svn in this directory:
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayerThis will create an mplayer subdirectory with the latest source code.
A version that works:
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk@30631 mplayer4. Download latest patch file:
http://proxima.isp.tula.ru:20080/mplaye ... -30099.zipand put it NEXT to the mplayer directory svn created in the step above. In my examples, this would be the
mplayer-ps3 directory.
5. Expand zip archive. It will copy a number of files into mplayer directory automatically.
unzip mplayer-ps3-patch-30099.zip 6. Change working directory to the mplayer build directory:
cd mplayer7. Patch the current mplayer source with the mplayer-ps3 patch:
patch -p0 < 30099.diff8. You will need to reconcile the patch by editing
configure - one segment will fail. Luckily, it's a two line change, according to configure.rej. Here's the change:
Original configure:
- Code: Select all
--enable-vesa) _vesa=yes ;;
--disable-vesa) _vesa=no ;;
--enable-fbdev) _fbdev=yes ;;
--disable-fbdev) _fbdev=no ;;
--enable-dvb) _dvb=yes ;;
--disable-dvb) _dvb=no ;;
--enable-dvbhead) _dvbhead=yes ;;
--disable-dvbhead) _dvbhead=no ;;
Make it like this by adding the
--enable-ps3 and
--disable-ps3 lines:
- Code: Select all
--enable-vesa) _vesa=yes ;;
--disable-vesa) _vesa=no ;;
--enable-fbdev) _fbdev=yes ;;
--disable-fbdev) _fbdev=no ;;
--enable-ps3) _ps3=yes ;;
--disable-ps3) _ps3=no ;;
--enable-dvb) _dvb=yes ;;
--disable-dvb) _dvb=no ;;
--enable-dvbhead) _dvbhead=yes ;;
--disable-dvbhead) _dvbhead=no ;;
Use your favorite editor - vi, gedit, emacs, etc. - to make this change.
9. In the same mplayer directory, create a folder called
spu-medialib and place copies of
spu_control.h &
yuv2argb_scaler.h in there:
mkdir spu-medialib
cp ../spu_scaler/spu-medialib/spu_control.h spu-medialib
cp ../spu_scaler/yuv2argb_scaler.h spu-medialibYou can find both of those files in the spu_scaler folder that's created in the unzip archive of step 5. The spu_scaler folder will be next to the mplayer folder.
10. Configure the build
./configure --enable-ps3I had to add the --enable-ps3 because I wasn't convinced the autodetect logic was working without spu-medialib installed. It appeared that configure was looking for some hardcoded folders to tell, even though the dependencies on these folders were eliminated.
11. Build it!
make12. Switch to root and install it:
su
make installThis will place an mplayer binary in /usr/local/bin. From there, you can test it by invoking it with the -vo ps3 command. e.g.:
/usr/local/bin/mplayer -vo ps3 filename_of_your_movieThat's all I got! I didn't even try building the GUI, etc. Sleep beckoned - it was 5:00 AM when I logged off for the night.
Cheers,
Paul
P.S. This is not required, but I'm keeping it here just case. You don't need to do this - I just built it without it.
-----------------------------
Install libps3fb:
http://forums.ps2dev.org/viewtopic.php?t=9110NOTE: I'm not sure if this is necessary or not.
I saw an mplayer build tutorial that claimed it was, and since it has low system impact, I installed it. We can try a build without it, and see how that works. For now, leave it in.