This is only an adaptation of the excellent post done by vmlinuz here.
This HowTo was realised in a VM on Fusion using 2 vCPU and 1024Mb of RAM.
Transcoding of 1080p MKV worked fine !
I'm now ready to buy the parts needed to build my new DIY NAS which will also serve as a PS3 Media Server
The procedure start here !
get 'svn' and' git' apps and needed compile tools
- Code: Select all
sudo -s
apt-get install subversion build-essential git-core checkinstall yasm libgpac-dev
get neeeded lib dev here.
- Code: Select all
apt-get install em8300-headers gawk gettext html2text intltool-debian \
ladspa-sdk libaa1-dev libasound2-dev libatk1.0-dev libaudio-dev \
libaudio2 libaudiofile-dev libavahi-client-dev libavahi-common-dev libcaca-dev \
libcairo2-dev libcdparanoia0-dev libcucul-dev libdbus-1-dev libdbus-glib-1-dev \
libdirectfb-dev libdirectfb-extra libdts-dev libdv4-dev libenca-dev libenca0 \
libesd0-dev libexpat1-dev libfaac-dev libfaac0 libfontconfig1-dev libfreebob0 \
libfreetype6-dev libfribidi-dev libggi-target-x libggi2 libggi2-dev libggimisc2 \
libggimisc2-dev libgif-dev libgii1 libgii1-dev libgii1-target-x libgl1-mesa-dev \
libglib2.0-dev libglide3 libglu1-mesa-dev libglu1-xorg-dev libgtk2.0-dev libice-dev \
libjack-dev libjack0 libjpeg62-dev liblzo-dev liblzo1 liblzo2-2 liblzo2-dev libmad0 \
libmad0-dev libmail-sendmail-perl libmp3lame-dev libmp3lame0 libmpcdec-dev libmpcdec3 \
libncurses5-dev libogg-dev libopenal-dev libopenal1 libpango1.0-dev libpixman-1-dev \
libpng12-dev libpopt-dev libpthread-stubs0 libpthread-stubs0-dev libpulse-dev \
libpulse-mainloop-glib0 libsdl1.2-dev libslang2-dev libsm-dev libsmbclient-dev \
libspeex-dev libsvga1 libsvga1-dev libsys-hostname-long-perl libsysfs-dev \
libtheora-dev libtwolame-dev libtwolame0 libvorbis-dev libx11-dev libxau-dev \
libxcb-render-util0-dev libxcb-render0-dev libxcb1-dev \
libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev \
libxft-dev libxi-dev libxinerama-dev libxrandr-dev libxrender-dev libxt-dev libxv-dev \
libxvidcore4 libxvidcore4-dev libxvmc-dev libxvmc1 libxxf86dga-dev libxxf86vm-dev \
mesa-common-dev po-debconf sharutils x11proto-composite-dev x11proto-core-dev \
x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev \
x11proto-randr-dev x11proto-render-dev x11proto-video-dev x11proto-xext-dev \
x11proto-xf86dga-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev \
xtrans-dev zlib1g-dev libschroedinger-dev libstdc++5 libfaad-dev \
libgsm1-dev libdc1394-22-dev libfaad-dev libsdl1.2-dev
get latest svn mplayer
- Code: Select all
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
get ffmpeg-mt
- Code: Select all
git clone git://gitorious.org/ffmpeg/ffmpeg-mt.git
get last x264
- Code: Select all
git clone git://git.videolan.org/x264.git
compil x264
- Code: Select all
cd x264
./configure --enable-shared
make
checkinstall --fstrans=no --install=yes --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`-ubuntu"
/usr/src/x264# ldconfig
compil and install ffmpeg multithread
- Code: Select all
cd ffmpeg-mt/
Delete /usr/src/ffmpeg-mt/libswscale
- Code: Select all
git clone git://git.ffmpeg.org/libswscale/
- Code: Select all
./configure –-enable-pthreads
make
make install
compil and install mencoder multithread
- Code: Select all
cd ../mplayer/
cp -rf ../ffmpeg-mt/libavcodec libavcodec
cp -rf ../ffmpeg-mt/libavformat libavformat
cp -rf ../ffmpeg-mt/libavutil libavutil
./configure
make
make install
export LD_LIBRARY_PATH=/usr/local/lib/
You need ant and its stuff
- Code: Select all
apt-get install ant ant-gcj ant-optional ant-optional-gcj \
ca-certificates-java default-jdk default-jre default-jre-headless gcj-4.3-base java-common \
libaccess-bridge-java libgcj-bc libgcj-common libgcj9-0 libgcj9-jar libjaxp1.3-java \
libjaxp1.3-java-gcj libxerces2-java libxerces2-java-gcj openjdk-6-jdk openjdk-6-jre \
openjdk-6-jre-headless openjdk-6-jre-lib rhino ttf-bengali-fonts ttf-kannada-fonts \
ttf-oriya-fonts ttf-telugu-fonts ttf-wqy-zenhei tzdata-java
Now get last SVN PMS code
- Code: Select all
cd /usr/src/
svn checkout http://ps3mediaserver.googlecode.com/svn/trunk/ ps3mediaserver-read-only
Compile it
- Code: Select all
cd ps3mediaserver-read-only/ps3mediaserver
ant
Open PMS.conf and set mencoder_ass to “false” to allow correct subtitles display.
Add you JAVA_HOME path to /etc/environment. (mine was : /usr/lib/jvm/java-6-openjdk/jre)
You must also add
- Code: Select all
JAVA_HOME=/usr/lib/jvm/java-6-openjdk/jre
After the DIRNAME=`dirname $0`line in your PMS.sh file
Now you can use latest compiled PMS.jar or extract full release from generated tar.gz file
The procedure was updated on 9/10/2008. I still have to check that everything works at home.
Enjoy !
Big Thanks to useful links
http://ubuntuforums.org/showthread.php?t=786095 for ffmpeg
http://ubuntuforums.org/showthread.php?t=1024592 for mplayer
