Ffmpeg부터 ffmpeg-php 완벽설치 가이드

출처 : http://letmelove.net/blog/56


wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/ essential-20061022.tar.bz2
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

3. 소스 압축풀기

bunzip2 essential-20061022.tar.bz2; 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

4.  코덱디렉토리 만들고 가져오깅..

mkdir /usr/local/lib/codecs/
mv /essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/

5.  최신버젼으로 가져오기위해.. SVN 설치...

yum install subversion
yum install ruby
yum install ncurses-devel

6. SVN을 이용해 최신버젼가져오기


svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer

7.  LAME 컴파일
cd ~/ffmpeg/lame-3.97
./configure
make
make install

8. libOGG 컴파일
cd ~/ffmpeg/libogg-1.1.3
./configure
make
make install

9. libVorbis 컴파일
cd ~/ffmpeg/libvorbis-1.1.2
./configure
make
make install

10.   flvtool2 컴파일
cd ~/ffmpeg/flvtool2_1.0.5_rc6
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install

11. MPlayer 컴파일
cd ~/ffmpeg/mplayer
./configure
make
make install

12. FFMPEG 컴파일..
cd ~/ffmpeg/ffmpeg
./configure --enable-mp3lame --enable-libogg --enable-vorbis --disable-mmx --enable-shared
echo '#define HAVE_LRINTF 1' >> config.h
make
make install

13. 코덱 셋업해주기..
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

14. FFMPEG-PHP 컴파일 ..
cd ~/ffmpeg/ ffmpeg-php-0.5.0
phpize
./configure
make
make install

15. FFMPEG-PHP  확장모듈..ㅋ(php.ini 경로 정확해야함..ㅋ.)
echo 'extension=/usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so' >> /usr/local/Zend/etc/php.ini

16. 아파치 재시작하기.

service httpd restart

17. 올라왓는지 확인하기..ㅋㅋㅋ
php -r 'phpinfo();' | grep ffmpeg

If you get a few lines such as
ffmpeg
ffmpeg support (ffmpeg-php) => enabled
ffmpeg-php version => 0.5.0
ffmpeg.allow_persistent => 0 => 0

이로써 끝났습니다..

이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 바람부는데로

Response
No Trackback , No Comment
RSS :
http://apmusers.com/tt/dbckdghk/rss/response/76

Trackback URL : 이 글에는 트랙백을 보낼 수 없습니다

« Previous : 1 : ... 40 : 41 : 42 : 43 : 44 : 45 : 46 : 47 : 48 : ... 95 : Next »

블로그 이미지

유창화의 블로그(사진은 10년전 모습)

- 바람부는데로

Archives

Calendar

«   2012/02   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

이올린 추천글

Site Stats

Total hits:
235013
Today:
54
Yesterday:
87