My Ubuntu still 32bits cause 64bits IOMMU issue with my MB
I don't explain howto install it cause of lot better howto are around on forums.
Do a update, security and bug issues must closed
restart
I use kernel 2.6.27-11-generic
If you plan to use svn, just skip this java 6 install step. By installing 'ant' and its tools, you will take java and javac 1.6
Java 6 install ( choose --> Linux (fichier auto-extractible))
download it from http://www.java.com/fr/download/manual.jsp
mine was stored on my desktop
open a terminal
- Code: Select all
vmlinuz@vmlinuz-desktop:~$ sudo -s
[sudo] password for vmlinuz:
root@vmlinuz-desktop:~# cd /opt
root@vmlinuz-desktop:~/opt# chmod 777 /home/vmlinuz/Bureau/jre-6u11-linux-i586.bin
root@vmlinuz-desktop:/opt# /home/vmlinuz/Bureau/jre-6u11-linux-i586.bin
Do you agree to the above license terms? [yes or no] yes
...
Done.
root@vmlinuz-desktop:/opt# cd
add this line at end of file : JAVA_HOME=/opt/jre1.6.0_11/
- Code: Select all
root@vmlinuz-desktop:~# vi .bashrc
exit and open terminal again
check JAVA_HOME var
- Code: Select all
vmlinuz@vmlinuz-desktop:~$ echo $JAVA_HOME
/opt/jre1.6.0_11
download, unzip PMS, and do it ready for run mode
- Code: Select all
vmlinuz@vmlinuz-desktop:~$ wget http://ps3mediaserver.googlecode.com/files/pms-linux-1.03.tgz
...
- « pms-linux-1.03.tgz » sauvegardé [5839087/5839087]
vmlinuz@vmlinuz-desktop:~$ tar -xvzf pms-linux-1.03.tgz
pms-linux-1.03/linux/
...
pms-linux-1.03/pms.jar
vmlinuz@vmlinuz-desktop:~$ cd pms-linux-1.03/
vmlinuz@vmlinuz-desktop:~/pms-linux-1.03$ chmod 744 PMS.sh
add JAVA_HOME=/opt/jre1.6.0_11/ after DIRNAME=`dirname $0` line
- Code: Select all
vmlinuz@vmlinuz-desktop:~/pms-linux-1.03$ vi PMS.sh
get tsMuxer exec perms
- Code: Select all
vmlinuz@vmlinuz-desktop:~/pms-linux-1.03$ chmod 744 linux/tsMuxeR
now launch your favorite amazing PMS app, and enjoy
- Code: Select all
vmlinuz@vmlinuz-desktop:~/pms-linux-1.03$ ./PMS.sh
At this time you can use tsMuxer, no other encoder, so do PMS internal conf for that usage, use next step to get mencoder
Before next step, explanations are proposed to multi-core CPU owners.
let me know if it's work on single core
- Code: Select all
vmlinuz@vmlinuz-desktop:~/pms-linux-1.03$ cd /usr/src/
vmlinuz@vmlinuz-desktop:/usr/src$ sudo -s
sudo password for vmlinuz:
get 'svn' and' git' apps and needed compile tools
- Code: Select all
root@vmlinuz-desktop:/usr/src#apt-get install subversion build-essential git-core checkinstall yasm libgpac-dev
get neeeded lib dev here change libglide2 by libglide3 if you are on Ubuntu 64bits
- Code: Select all
vmlinuz@vmlinuz-desktop:/usr/src$ apt-get install em8300-headers gawk gettext html2text intltool-debian \
ladspa-sdk libaa1-dev libartsc0 libartsc0-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 libglide2 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 libxcb-xlib0-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
root@vmlinuz-desktop:/usr/src# svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
...
Référence externe extraite à la révision 1166.
Révision 28388 extraite.
root@vmlinuz-desktop:/usr/src#
get ffmpeg-mt
- Code: Select all
root@vmlinuz-desktop:/usr/src# git clone git://gitorious.org/ffmpeg/ffmpeg-mt.git
...
Resolving deltas: 100% (66342/66342), done.
root@vmlinuz-desktop:/usr/src#
get last x264
- Code: Select all
root@vmlinuz-desktop:/usr/src# git clone git://git.videolan.org/x264.git
compil x264
- Code: Select all
root@vmlinuz-desktop:/usr/src# cd x264
root@vmlinuz-desktop:/usr/src/x264# ./configure --enable-shared
You can run 'make' or 'make fprofiled' now.
root@vmlinuz-desktop:/usr/src/x264# make
root@vmlinuz-desktop:/usr/src/x264# checkinstall --fstrans=no --install=yes --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`-ubuntu"
root@vmlinuz-desktop:/usr/src/x264# ldconfig
compil and install ffmpeg multithread
- Code: Select all
root@vmlinuz-desktop:/usr/src# cd ffmpeg-mt/
root@vmlinuz-desktop:/usr/src/ffmpeg-mt# git clone git://git.ffmpeg.org/libswscale/
root@vmlinuz-desktop:/usr/src/ffmpeg-mt# ./configure
root@vmlinuz-desktop:/usr/src/ffmpeg-mt# make
root@vmlinuz-desktop:/usr/src/ffmpeg-mt# make install
note you could do the same for single multicore
#get, compil and install ffmpeg non multi thread
#root@vmlinuz-desktop:/usr/src# svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
#root@vmlinuz-desktop:/usr/src# cd ffmpeg
#root@vmlinuz-desktop:/usr/src/ffmpeg# ./configure
#root@vmlinuz-desktop:/usr/src/ffmpeg# make
#root@vmlinuz-desktop:/usr/src/ffmpeg# make install
compil and install mencoder multithread
- Code: Select all
root@vmlinuz-desktop:/usr/src# cd ../mplayer/
root@vmlinuz-desktop:/usr/src/mplayer# cp -rf ../ffmpeg-mt/libavcodec libavcodec
root@vmlinuz-desktop:/usr/src/mplayer# cp -rf ../ffmpeg-mt/libavformat libavformat
root@vmlinuz-desktop:/usr/src/mplayer# cp -rf ../ffmpeg-mt/libavutil libavutil
root@vmlinuz-desktop:/usr/src/mplayer# ./configure
root@vmlinuz-desktop:/usr/src/mplayer# make
root@vmlinuz-desktop:/usr/src/mplayer# make install
root@vmlinuz-desktop:/usr/src/mplayer# export LD_LIBRARY_PATH=/usr/local/lib/
Launch PMS.sh and try it with multicore purpose
------------------------
If you want to get the last SVN PMS code read-only and compil it
You need ant and its stuff
- Code: Select all
root@vmlinuz-desktop:~# 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
root@vmlinuz-desktop:~# svn checkout http://ps3mediaserver.googlecode.com/svn/trunk/ ps3mediaserver-read-only
Compile it
- Code: Select all
root@vmlinuz-desktop:~# cd ps3mediaserver-read-only/ps3mediaserver
root@vmlinuz-desktop:~# ant
Now you can use latest compiled PMS.jar or extract full release from generated tar.gz file
Enjoy !
Big Thanks to useful links
http://ubuntuforums.org/showthread.php?t=786095 for ffmpeg
http://ubuntuforums.org/showthread.php?t=1024592 for mplayer
