ffmpeg 설치

일단 준비부터 하자

코     덱 :  http://www5.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
flvtool : http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz
lame    : http://downloads.sourceforge.net/lame/lame-3.97.tar.gz?modtime=1159107882&big_mirror=0
ffmpeg  : subversion을 써서 받는다. svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
libvorbis : http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
libogg  : http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz

압축 해제 -> 컴파일 -> 설치는 알아서.. -_-; ( 알잖나   ./configure -> make -> make install )

아.. flvtool은 좀 다르다.
해당 디렉토리에서
# ruby setup.rb config
# ruby setup.rb setup
# ruby setup.rb install

에러나면 해당 프로그램 만든 이에게 메일을 쏴 주시고~
코덱은 /usr/local/lib/codecs 아래에 둔다.
퍼미션은 -R 755

이제 ffmpeg를 컴파일하자.

# ./configure --enable-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --enable-shared
# echo '#define HAVE_LRINTF 1' >> config.h
# make
# make install


자.. 설치도 했으니 ffmpeg 디렉에서
# ./ffserver -f doc/ffserver.conf
./ffserver: error while loading shared libraries: libavformat.so.51: cannot open shared object file: No such file or directory

에러다. 공유 라이브러리 없다는 건데.. 분명히 코덱을 깔았잖나? 그래.. 깔았는데.. 단지 링크를 안걸었다.
# export | grep LD_LIBRARY_PATH
LD_LIBRARY_PATH를 확인해보자.. /usr/local/lib 가 있나? 없다면 두가지 방법이 중 하나를 쓰자.

/usr/lib 에.. 코덱 라이브러리 파일을 하나하나 심볼릭 링크를 건다. 귀찮긴 하다.
게으르다면 ..
/etc/profile 에 다음을 추가해주자.
# vi /etc/profile
...
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

편집 완료 후 적용
# source /etc/profile

그리고 나서 다시 서버에 시동을 걸어보자. 부릉부릉~
# ./ffserver -f doc/ffserver.conf
ffserver started.

계속 작업

by refill | 2007/07/18 18:36 | Programming | 트랙백 | 덧글(0)

트랙백 주소 : http://refill.egloos.com/tb/3610612
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]

:         :

:

비공개 덧글

◀ 이전 페이지 다음 페이지 ▶