bilgilendirdiğin için teşekkürler arkadaşım
video sitesi açmak için sunucuya
FFmpeg + FFmpeg-PHP + Mplayer ++ Libog + flv2tool + LAME MP3 Encoder
kurdum, bunların kurulumunu yabancı bir siteden yaptım: kurulum şöyle:
Kod:
nstall : FFmpeg + FFmpeg-PHP + Mplayer +Mencoder+ Libog + flv2tool + LAME MP3 Encoder
FFmpeg
FFmpeg-PHP
Mplayer + Mencoder (mencoder is now built into the mplayer svn release )
flv2tool (REQUIRES RUBY ON RAILS)
LAME MP3 Encoder
Libogg
Libvorbis
Download the required source files.
#cd /usr/local/src
#wget http://www3.mplayerhq.hu/MPlayer/rel...061022.tar.bz2
#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
#wget http://superb-west.dl.sourceforge.ne...php-0.5.0.tbz2http://rubyforge.org/frs/download.ph..._1.0.5_rc6.tgz
#wget http://easynews.dl.sourceforge.net/s...me-3.97.tar.gz
Extract the loaded tar files.
#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
#mkdir /usr/local/lib/codecs/
Download the ffmpeg and mplayer
#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
Please make sure that subversion and ruby is installed. If its not install, then you need install subversion and ruby.
#rpm -qa | grep subversion
#rpm -qa | grep ruby
#yum install subversion
#yum install ruby
Install and configure the modules.
#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-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --enable-shared --enable-xvid --enable-gpl
#echo ‘#define HAVE_LRINTF 1 ‘>> config.h
#make
#make install
If Installation went ok without any erros, then execute
#ldd ./ffmpeg
If Path to "lib" Libraries are not ok then check to see if /usr/local/lib exists on this file
#cat /etc/ld.so.conf
If not
#echo /usr/local/lib >>/etc/ld.so.conf
#ldconfig
#ldd ./ffmpeg
FFmpeg should be complete and installed.
FFMPEG-PHP Installation.
#cd /usr/local/src/ffmpeg-php-0.5.0/
#phpize
#./configure
#make
#make install
Note : Check for the active php.ini file on the server.
# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/Zend/etc/php.ini
#echo 'extension=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so' >> /usr/local/Zend/etc/php.ini
Restart httpd on server :
#service httpd stop
#killall -KILL htppd
#service httpd start
bunları kurdum ve php.iniye eklediğim kod nedeniyle sunucunun logları felaket şişti her gün 1-2 gb alanım gidiyor, bana bunları tam olarak nasıl silebileceğim hakkında bilgi verirseniz çok memnun olurum, yardımlarınızı bekliyorum arkadaşlar.