test os : CentOS release 5.7 (Final)
- 소스 받기
cd /usr/local/src; mkdir ffmpeg ; cd ffmpeg
wget http://www1.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://sourceforge.net/projects/lame/files/lame/3.99/lame-3.99.tar.gz/download
http://ffmpeg-php.svn.sourceforge.net/viewvc/ffmpeg-php/trunk/
Download GNU tarball 클릭해서 다운로드
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 ; tar xvf essential-20061022.tar
tar zxvf flvtool2_1.0.5_rc6.tgz
tar zxvf lame-3.99.tar.gz
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
tar xvzfp ffmpeg-php-trunk.tar.gz
- 코덱 디렉토리 생성
mkdir /usr/local/lib/codecs/
mv essential-20061022/* /usr/local/lib/codecs
chmod -R 755 /usr/local/lib/codecs/
- 최신 버전 적용위해 svn 설치
yum install subversion
yum install ruby
yum install ncurses-devel
- 최신 버전 가져오기
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
- LAME 설치
cd lame-3.99
./configure
make
make install
- libOGG 설치
cd ../libogg-1.1.3
./configure
make
make install
- libVorbis 설치
ogg 버전이 낮다고 나와서 아래처럼 설치
yum -y install libogg
cd ../libvorbis-1.1.2
./configure
make
make install
- flvtool2 설치
cd ../flvtool2_1.0.5_rc6
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
- yasm 설치
cd ../
wget http://www.tortall.net/projects/yasm/releases/yasm-0.8.0.tar.gz
tar xvzfp yasm-0.8.0.tar.gz
cd yasm-0.8.0
./configure
make; make install
- MPlayer 설치 ---> 에러.
cd ../mplayer/
vi configure
아래부분 주석
50 #if ! test -e ffmpeg ; then
51 # echo "No FFmpeg checkout, press enter to download one with git or CTRL+C to abort"
52 # read tmp
53 # if ! git clone --depth 1 git://git.videolan.org/ffmpeg.git ffmpeg ; then
54 # rm -rf ffmpeg
55 # echo "Failed to get a FFmpeg checkout"
56 # exit 1
57 # fi
58 # touch ffmpeg/mp_auto_pull
59 #fi
./configure
make
make install
- FFMPEG 설치
mkdir /usr/local/src/ffmpeg/ffmpeg/tmp
chmod 1777 /usr/local/src/ffmpeg/ffmpeg/tmp
export TMPDIR=/usr/local/src/ffmpeg/ffmpeg/tmp
cd ../ffmpeg
./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared
make
make install
- 코덱 셋업
ln -s /usr/local/lib/libavformat.so /usr/lib/libavformat.so
ln -s /usr/local/lib/libavcodec.so /usr/lib/libavcodec.so
ln -s /usr/local/lib/libavutil.so /usr/lib/libavutil.so
ln -s /usr/local/lib/libmp3lame.so /usr/lib/libmp3lame.so
- FFMPEG-PHP 설치
mkdir /usr/local/include/ffmpeg
cp -p /usr/local/src/ffmpeg/ffmpeg/libavformat/avio.h /usr/local/include/ffmpeg/
cp -p /usr/local/src/ffmpeg/ffmpeg/libavformat/avformat.h /usr/local/include/ffmpeg/
cp -p /usr/local/src/ffmpeg/ffmpeg/libavcodec/avcodec.h /usr/local/include/ffmpeg/
cp -pv /usr/local/src/ffmpeg/ffmpeg/libswscale/swscale.h /usr/local/include/ffmpeg/
cp -pv /usr/local/src/ffmpeg/ffmpeg/libavutil/avutil.h /usr/local/include/ffmpeg/
cd /usr/local/src/ffmpeg/trunk/ffmpeg-php
phpize
./configure
make
make install
cd modules/
cp -pv ffmpeg.so /usr/local/lib
- php.ini 설정
extension_dir 경로 잡힌곳에 복사
extension=ffmpeg.so 추가
- 확인
php -r "phpinfo();" | grep ffmpeg
ffmpeg
ffmpeg-php version => 0.6.3
ffmpeg-php built on => Oct 24 2011 12:50:21
ffmpeg-php gd support => enabled
ffmpeg libavcodec version => Lavc52.108.0
ffmpeg libavformat version => Lavf52.93.0
ffmpeg swscaler version => SwS0.12.0
ffmpeg.allow_persistent => 0 => 0
ffmpeg.show_warnings => 0 => 0
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 430 | 19년 전 | 4129 | ||
| 429 | 19년 전 | 3324 | ||
| 428 | 19년 전 | 4144 | ||
| 427 | 19년 전 | 3493 | ||
| 426 | 19년 전 | 3119 | ||
| 425 | 19년 전 | 3430 | ||
| 424 | 19년 전 | 2452 | ||
| 423 | 19년 전 | 2881 | ||
| 422 | 19년 전 | 2373 | ||
| 421 | 19년 전 | 3723 | ||
| 420 | 19년 전 | 4755 | ||
| 419 | 19년 전 | 3831 | ||
| 418 |
|
19년 전 | 1767 | |
| 417 | 19년 전 | 2766 | ||
| 416 | 19년 전 | 2411 | ||
| 415 | 19년 전 | 2614 | ||
| 414 | 19년 전 | 4430 | ||
| 413 |
|
19년 전 | 2624 | |
| 412 | 19년 전 | 3065 | ||
| 411 |
|
19년 전 | 3003 | |
| 410 |
|
19년 전 | 3710 | |
| 409 |
|
19년 전 | 3652 | |
| 408 |
|
19년 전 | 1872 | |
| 407 | 19년 전 | 2245 | ||
| 406 | 19년 전 | 2811 | ||
| 405 | 19년 전 | 2477 | ||
| 404 | 19년 전 | 4323 | ||
| 403 | 19년 전 | 3315 | ||
| 402 |
NeoGenesis
|
19년 전 | 4111 | |
| 401 | 19년 전 | 2621 | ||
| 400 |
|
19년 전 | 2526 | |
| 399 | 19년 전 | 2979 | ||
| 398 | 19년 전 | 2512 | ||
| 397 | 19년 전 | 2807 | ||
| 396 | 19년 전 | 2510 | ||
| 395 | 19년 전 | 3219 | ||
| 394 | 19년 전 | 1761 | ||
| 393 | 19년 전 | 3013 | ||
| 392 | 19년 전 | 2291 | ||
| 391 | 19년 전 | 2192 | ||
| 390 | 19년 전 | 2302 | ||
| 389 | 19년 전 | 2665 | ||
| 388 | 19년 전 | 2211 | ||
| 387 | 19년 전 | 4495 | ||
| 386 |
|
19년 전 | 2703 | |
| 385 |
|
19년 전 | 2511 | |
| 384 | 19년 전 | 3051 | ||
| 383 | 19년 전 | 3078 | ||
| 382 | 19년 전 | 3124 | ||
| 381 |
|
19년 전 | 2651 | |
| 380 |
|
19년 전 | 3034 | |
| 379 | 19년 전 | 2561 | ||
| 378 | 19년 전 | 2232 | ||
| 377 | 19년 전 | 2793 | ||
| 376 | 19년 전 | 2480 | ||
| 375 |
|
19년 전 | 2578 | |
| 374 | 19년 전 | 3837 | ||
| 373 | 19년 전 | 3289 | ||
| 372 | 19년 전 | 5012 | ||
| 371 |
세은아빠2
|
19년 전 | 2433 | |
| 370 | 19년 전 | 4514 | ||
| 369 | 19년 전 | 3121 | ||
| 368 | 19년 전 | 2920 | ||
| 367 | 19년 전 | 3746 | ||
| 366 | 19년 전 | 2673 | ||
| 365 | 19년 전 | 3759 | ||
| 364 | 19년 전 | 4036 | ||
| 363 | 19년 전 | 3471 | ||
| 362 | 20년 전 | 3503 | ||
| 361 | 20년 전 | 4128 | ||
| 360 |
hwatta
|
20년 전 | 2383 | |
| 359 | 20년 전 | 5126 | ||
| 358 | 20년 전 | 3675 | ||
| 357 | 20년 전 | 2621 | ||
| 356 |
sdesign1s
|
20년 전 | 2300 | |
| 355 | 20년 전 | 2778 | ||
| 354 | 20년 전 | 3042 | ||
| 353 | 20년 전 | 2808 | ||
| 352 |
|
20년 전 | 5788 | |
| 351 |
|
20년 전 | 2726 | |
| 350 |
|
20년 전 | 4314 | |
| 349 |
hwatta
|
20년 전 | 2207 | |
| 348 | 20년 전 | 7322 | ||
| 347 | 20년 전 | 2427 | ||
| 346 | 20년 전 | 3523 | ||
| 345 | 20년 전 | 4328 | ||
| 344 | 20년 전 | 2673 | ||
| 343 | 20년 전 | 3937 | ||
| 342 | 20년 전 | 3083 | ||
| 341 | 20년 전 | 4114 | ||
| 340 |
|
20년 전 | 5170 | |
| 339 |
|
20년 전 | 4254 | |
| 338 | 20년 전 | 5898 | ||
| 337 | 20년 전 | 2060 | ||
| 336 |
|
20년 전 | 3353 | |
| 335 |
|
20년 전 | 3570 | |
| 334 |
|
20년 전 | 2964 | |
| 333 |
hwatta
|
20년 전 | 2469 | |
| 332 | 20년 전 | 4672 | ||
| 331 | 20년 전 | 2296 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기