﻿
■ How to build ( compile ) the open source library called FFMPEG 


< Download >
1. You can download the source code of FFMPEG 2.6.1 at http://ffmpeg.org/  
2. You can download the version r10d of android ndk tool at the site of http://developer.android.com/ndk/downloads/index.html 


< Build ( Compile ) >

1. You may uncompress the file of ffmpeg-2.6.1.tar.bz2 which it is downloaded at above site. 


2. You can create "build_ffmpeg.sh" file in the root directory of ffmpeg 
   : build_ffmpeg.sh  ( This file is attached. ) 

3. run the build_ffmpeg.sh file 

4. You can get the binaries or libraries in the android directory which is created when you run the build_ffmpeg.sh file 


Reference Site 1) http://blog.naver.com/ljeljy/220508067228
Reference Site 2) http://www.roman10.net/2013/08/18/how-to-build-ffmpeg-with-ndk-r9/

===============================================================================================

■ open source library FFMPEG 빌드 기술서

<다운로드>
1. http://ffmpeg.org/ 에서 FFMPEG 2.6.1 소스코드 다운로드
2. http://developer.android.com/ndk/downloads/index.html 에서 android ndk 버전 r10d 를 다운로드

<빌드>
1. 다운로드 받은 ffmpeg-2.6.1.tar.bz2 를 압축을 푼다.
2. 환경 설정과 빌드옵션 설정을 위해 ffmpeg 폴더의 root 에 파일을 하나 만든다. 
  : build_ffmpeg.sh (파일첨부 함)
3. build_ffmpeg.sh 파일을 실행함
4. ffmpeg 폴더의 root 에 android 라는 폴더가 생기고 그 안에 binary 들이 있다.
5. android 라는 폴더를 사내 소스코드에 반영함 > source code 는 빌드할때만 사용했고 생성된 library 파일 들을 바로 merge 시킴


참조사이트1) http://blog.naver.com/ljeljy/220508067228
참조사이트2) http://www.roman10.net/2013/08/18/how-to-build-ffmpeg-with-ndk-r9/


===============================================================================================
