sebenarnya tutorial ini untuk system operasi CentOS 6.3 x86 tapi karena saya pikir clearos itu masih satu saudara dengan CentOS saya kira tutorial ini dapat digunakan, Lagipula saya telah mencobanya dan berhasil :D
pertama login ke ClearOS bisa menggunakan SSH maupun Putty
yum updateketika muncul konfirmasi pilih "Y"
kemudian
yum install gccDownload the source files needed:
cd /usr/local/src
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2Extract the Source files:
wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
wget http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
bunzip2 essential-20061022.tar.bz2;Create a directory for codecs & import them:
tar xvf essential-20061022.tar
tar zxvf flvtool2_1.0.5_rc6.tgz
tar zxvf lame-3.97.tar.gz
bunzip2 ffmpeg-php-0.5.0.tbz2;
tar xvf ffmpeg-php-0.5.0.tar
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
mkdir /usr/local/lib/codecs/
mv essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/
yum install subversion
yum install ruby
yum install ncurses-devel
Get the latest FFMPEG/MPlayer from the subversion:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
Fix few Lib issues for next steps:
Add this line in /etc/ld.so.conf
/usr/local/libthen run:
ldconfig -vCompile LAME:
cd /usr/local/src/lame-3.97Compile libOGG:
./configure
make && make install
cd /usr/local/src/libogg-1.1.3Compile libVorbis:
./configure
make && make install
cd /usr/local/src/libvorbis-1.1.2
./configure
make && make install
Compile flvtool2:
Add this line to your php.ini file (Check the correct path of php.ini)
Create a file called phpinfo.php in your web root and add the following code:
Maaf tutornya pake bahasa inggris buat belajar bahasa inggris sekalian. (#ALIBI hehehe)
Kalo binggung nggak usah repot tinggal copas perintahnya lalu masukkan satu per satu ...
CMIIW
sebagai copazer yang baik saya selalu menunjukkan sumbernya hehe
postingan saya dapat di sini
cd /usr/local/src/flvtool2_1.0.5_rc6Compile MPlayer:
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
cd /usr/local/src/mplayerCompile FFMPEG:
./configure
make && make install
cd /usr/local/src/ffmpegFinalize the codec setups:
./configure --enable-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --enable-shared
echo '#define HAVE_LRINTF 1' >> config.h
make && make install
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50Few tasks before compiling FFMPEG-PHP:
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51
yum install automakeCompile FFMPEG-PHP:
yum install autoconf
yum install libtool
cd /usr/local/src/ffmpeg-php-0.5.0Add FFMPEG-PHP as an extension of PHP:
phpize
./configure
make && make install
Add this line to your php.ini file (Check the correct path of php.ini)
extension=ffmpeg.soRestart Apache to load FFMPEG-PHP:
service httpd restartCheck if FFMPEG-PHP is loaded correctly:
Create a file called phpinfo.php in your web root and add the following code:
<?phpRun this page using your browser and if you see a section on ffmpeg then everything is installed and working.
phpinfo();
?>
Maaf tutornya pake bahasa inggris buat belajar bahasa inggris sekalian. (#ALIBI hehehe)
Kalo binggung nggak usah repot tinggal copas perintahnya lalu masukkan satu per satu ...
CMIIW
sebagai copazer yang baik saya selalu menunjukkan sumbernya hehe
postingan saya dapat di sini
Post a Comment
Pembaca yang baik selalu meninggalkan "JEJAK" !!!!