Merhaba,
Günümüzde popüler olan ve gittikçede yayılan video siteleri için sunucumuzun altyapısında bazı gereksinimler vardır. Bunlar ffmpeg, ffmpeg-php, mplayer, libogg, libvorbis, mp3lame olarak karşımızdadırlar. Aşağıda kurulumarını anlatacağım.
Kod:
cd /usr/local/src
wget http://www3.mplayerhq.hu/MPlayer/rel...061022.tar.bz2
wget http://rubyforge.org/frs/download.ph..._1.0.5_rc6.tgz
wget http://easynews.dl.sourceforge.net/s...me-3.97.tar.gz
wget http://easynews.dl.sourceforge.net/s...php-0.5.0.tbz2
wget http://downloads.xiph.org/releases/o...g-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/v...s-1.1.2.tar.gz
Kod:
tar zxvf flvtool2_1.0.5_rc6.tgz
tar zxvf lame-3.97.tar.gz
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
tar jxvf essential-20061022.tar.bz2
tar jxvf ffmpeg-php-0.5.0.tbz2
Kod:
mkdir /usr/local/lib/codecs/
up2date -i subversion -yada- yum install subversion
up2date -i ruby -yada- yum install ruby
Kod:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd /usr/local/src/mplayer
svn update
cd /usr/local/src
mv /usr/local/src/essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/
mkdir /usr/local/src/tmp
chmod 777 /usr/local/src/tmp
export TMPDIR=/usr/local/src/tmp
Kod:
cd /usr/local/src/lame-3.97
./configure && make && make install
cd /usr/local/src/libogg-1.1.3
./configure && make && make install
ldconfig
cd /usr/local/src/libvorbis-1.1.2
./configure && make && make install
cd /usr/local/src/flvtool2_1.0.5_rc6/
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
cd /usr/local/src/mplayer
./configure && make && make install
cd /usr/local/src/ffmpeg/
./configure --enable-mp3lame --enable-libogg --enable-vorbis --disable-mmx --enable-shared
Kod:
echo '#define HAVE_LRINTF 1 '>>config.h
make
make install
Kod:
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
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
FFMPEG-PHP:
Kod:
cd /usr/local/src/ffmpeg-php-0.5.0/
phpize
./configure
make
make install
php.ini'ye eklememiz gereken satır
Kod:
extension=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so
Not: Burdaki klasöradını ffmpeg-php'nin make install komutundan sonra göreceksiniz, kendi makinenize göre değiştiriniz.
son olarak apache sunucumuzu yeniden çalıştırıyoruz:
Kod:
service httpd restart
Alıntıdır
FFmpeg flv2
12
●2.593
- 06-04-2008, 02:34:07Üyeliği durduruldulame yi install ederken
/usr/bin/install -c -m 644 'basic.html' '/usr/local/share/doc/lame/html/basic.html' /usr/bin/install -c -m 644 'contributors.html' '/usr/local/share/doc/lame/html/contributors.html' /usr/bin/install -c -m 644 'examples.html' '/usr/local/share/doc/lame/html/examples.html' /usr/bin/install -c -m 644 'history.html' '/usr/local/share/doc/lame/html/history.html' /usr/bin/install -c -m 644 'id3.html' '/usr/local/share/doc/lame/html/id3.html' /usr/bin/install -c -m 644 'index.html' '/usr/local/share/doc/lame/html/index.html' /usr/bin/install -c -m 644 'lame.css' '/usr/local/share/doc/lame/html/lame.css' /usr/bin/install -c -m 644 'modes.html' '/usr/local/share/doc/lame/html/modes.html' /usr/bin/install -c -m 644 'node6.html' '/usr/local/share/doc/lame/html/node6.html' /usr/bin/install -c -m 644 'presets.html' '/usr/local/share/doc/lame/html/presets.html' /usr/bin/install -c -m 644 'switchs.html' '/usr/local/share/doc/lame/html/switchs.html' make[3]: Leaving directory `/usr/local/src/lame-3.97/doc/html' make[2]: Leaving directory `/usr/local/src/lame-3.97/doc/html' Making install in man make[2]: Entering directory `/usr/local/src/lame-3.97/doc/man' make[3]: Entering directory `/usr/local/src/lame-3.97/doc/man' make[3]: Nothing to be done for `install-exec-am'. test -z "/usr/local/man/man1" || mkdir -p -- "/usr/local/man/man1" /usr/bin/install -c -m 644 './lame.1' '/usr/local/man/man1/lame.1' make[3]: Leaving directory `/usr/local/src/lame-3.97/doc/man' make[2]: Leaving directory `/usr/local/src/lame-3.97/doc/man' make[2]: Entering directory `/usr/local/src/lame-3.97/doc' make[3]: Entering directory `/usr/local/src/lame-3.97/doc' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/local/src/lame-3.97/doc' make[2]: Leaving directory `/usr/local/src/lame-3.97/doc' make[1]: Leaving directory `/usr/local/src/lame-3.97/doc' Making install in include make[1]: Entering directory `/usr/local/src/lame-3.97/include' make[2]: Entering directory `/usr/local/src/lame-3.97/include' make[2]: Nothing to be done for `install-exec-am'. test -z "/usr/local/include/lame" || mkdir -p -- "/usr/local/include/lame" /usr/bin/install -c -m 644 'lame.h' '/usr/local/include/lame/lame.h' make[2]: Leaving directory `/usr/local/src/lame-3.97/include' make[1]: Leaving directory `/usr/local/src/lame-3.97/include' Making install in misc make[1]: Entering directory `/usr/local/src/lame-3.97/misc' make[2]: Entering directory `/usr/local/src/lame-3.97/misc' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/local/src/lame-3.97/misc' make[1]: Leaving directory `/usr/local/src/lame-3.97/misc' Making install in dshow make[1]: Entering directory `/usr/local/src/lame-3.97/dshow' make[2]: Entering directory `/usr/local/src/lame-3.97/dshow' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/local/src/lame-3.97/dshow' make[1]: Leaving directory `/usr/local/src/lame-3.97/dshow' Making install in ACM make[1]: Entering directory `/usr/local/src/lame-3.97/ACM' Making install in ADbg make[2]: Entering directory `/usr/local/src/lame-3.97/ACM/ADbg' make[3]: Entering directory `/usr/local/src/lame-3.97/ACM/ADbg' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/local/src/lame-3.97/ACM/ADbg' make[2]: Leaving directory `/usr/local/src/lame-3.97/ACM/ADbg' Making install in ddk make[2]: Entering directory `/usr/local/src/lame-3.97/ACM/ddk' make[3]: Entering directory `/usr/local/src/lame-3.97/ACM/ddk' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/local/src/lame-3.97/ACM/ddk' make[2]: Leaving directory `/usr/local/src/lame-3.97/ACM/ddk' Making install in tinyxml make[2]: Entering directory `/usr/local/src/lame-3.97/ACM/tinyxml' make[3]: Entering directory `/usr/local/src/lame-3.97/ACM/tinyxml' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/local/src/lame-3.97/ACM/tinyxml' make[2]: Leaving directory `/usr/local/src/lame-3.97/ACM/tinyxml' make[2]: Entering directory `/usr/local/src/lame-3.97/ACM' make[3]: Entering directory `/usr/local/src/lame-3.97/ACM' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/local/src/lame-3.97/ACM' make[2]: Leaving directory `/usr/local/src/lame-3.97/ACM' make[1]: Leaving directory `/usr/local/src/lame-3.97/ACM' Making install in mac make[1]: Entering directory `/usr/local/src/lame-3.97/mac' make[2]: Entering directory `/usr/local/src/lame-3.97/mac' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/local/src/lame-3.97/mac' make[1]: Leaving directory `/usr/local/src/lame-3.97/mac' make[1]: Entering directory `/usr/local/src/lame-3.97' make[2]: Entering directory `/usr/local/src/lame-3.97' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/local/src/lame-3.97' make[1]: Leaving directory `/usr/local/src/lame-3.97' [root@server lame-3.97]#
sonunda boyle oluyo... ve enable-lame falan yaparken de
[root@server lame-3.97]# cd /usr/local/src/ffmpeg/ [root@server ffmpeg]# ./configure --enable-mp3lame --enable-libogg --enable-vorbis --disable-mmx --enable-shared Unknown option "--enable-mp3lame". See ./configure --help for available options. [root@server ffmpeg]# bu oluyo...?? ya sinir oldum gunlerdir ugrasıorm.. ama .... arkadaslar bi cwp atarsanız sewinirim...