Build Note

FFMPEG 빌드하기 위한 사전 라이브러리 설치

김모작자 2012. 3. 22. 15:14


※ 대부분의 라이브러리는 static 빌드를 위해 --enable-static 를 포함시켰다
※ MINGW 는 2011.11.11 일 새로 받은 버전을 사용했다

1. libgsm 설치 (http://libgsm.sourcearchive.com/)
msys 에 없는 함수를 사용하지 않도록 하기 위해 inc/config.h 에 있는 매크로 주석 처리해버림
 - 해당 함수 : chown, fchown, fchmod 등
빌드 후 include/gsm.h 는 시스템 루트의 /include/gsm 폴더에 복사했다
빌드 후 lib/libgsm.a 는 시스템 루트의 /lib 에 복사했다

2. libmp3lame 설치
빌드하고 나니 /usr/local 에 설치되어서 이동시킴

3. pthread
make clean GC-static 으로 빌드해서 올림

4. OpenCore AMR 설치 (http://sourceforge.net/projects/opencore-amr/)
OpenCore Adaptive Multi Rate 라이브러리라고 하던데 잘 모르겠음.
이걸 설치하면 --enable-opencore-amrwb , --enable-opencore-armnb 둘다 사용 가능하게된다
루트 폴더의 .h 파일 두개를 시스템 include 로 복사해야한다
make install 후에 /usr/local/* 에 있는 파일 이동


5. X264 설치 (http://www.videolan.org/developers/x264.html)
make install 후에 /usr/local/* 에 있는 파일 이동
x264 는 static 으로 빌드 되어야 configure 과정에서 인식이 된다


6. Theora (http://www.theora.org/)
빌드할때 OGG 가 필요한데 표준 경로상에 ogg 헤더 파일등이 없는 경우 직접 경로를 써줘야 한다
 /usr/local 에 헤더+라이브러리가 들어가 있는 경우 아래와 같이 써준다

configure --with-ogg=/usr/local  --enable-static

7. Xvid  (http://www.xiph.org)
build/generic 에서 bootstrap.sh 를 실행하면 configure 생김
configure 를 실행 후 빌드할때 오류가 발생할 거임..
이 경우 build/platform.inc 에서 -mno-cygwin 을 제거하면 에러 없앨수있음

8. YASM 설치
http://yasm.tortall.net/Download.html

9. OGG, Vorbis, Speex, Theora (http://www.xiph.org)

10. VisualOn AAC encoder (일명 vo-aac; http://sourceforge.net/projects/opencore-amr/files/vo-aacenc/)