FFmpeg 1.2.2 빌드( 컴파일, build compile)


//=============================================================================
* MinGW , Msys 설치
    - MinGW ("Minimalist GNU for Windows") : GNU프로그램 소스를 윈도우즈에서 실행가능하게 컴파일 할수 있게 환경
    - Msys ("Minimal SYStem") : GNU셀, CygWin 의 최소 버전
2011-11-13 이후 업데이트 없음

//=============================================================================
//모듈
    참고 : http://2uropa.tistory.com/63

* yasm   
    http://yasm.tortall.net/Download.html
        - Yasm 1.2.0  - October 31, 2011
    에서 win32.exe를 받아서 yasm-1.2.0-win32.exe -> yasm.exe 이름 변경 복사
    mingw/bin 에 yasm.exe로 복사
    - 차후 vs2010용 사용 시도해볼만

- 프로그램 다운로드(Download)

yasm.exe


* nasm
    - 필요하면 설치, 현재는 필요없음
    http://www.nasm.us/pub/nasm/releasebuilds/2.10rc8/win32/


* pkg-config
    - 이미 빌드 복사 방법
        - http://www.gtk.org/download/win32.php       
            - pkg-config     0.26 - pkg-config_0.26-1_win32.zip 다운로드
            - copy pkg-config.exe c:\MinGW\bin


pkg-config.exe


intl.dll


libglib-2.0-0.dll



* pthreads
ftp://sourceware.org/pub/pthreads-win32/
pthreads-w32-2-9-1-release.zip     1201 KB     2012-05-27     오전 12:00:00

copy pthreadGC2.dll c:\MinGW\bin
include lib 복사

* SDL
    - ffplay.exe 빌드를 위해 필요

    - 빌드
     소스 다운 : http://www.libsdl.org/release/
        - SDL version 1.2.15 - SDL-1.2.15.tar.gz 다운
        (SDL-devel-1.2.15-mingw32.tar.gz (Mingw32))

    ./configure -–prefix=/mingw  --enable-shared --disable-static
    make
    make install

* Zlib 설치
    - 의존성 가진 모듈이 많아서 설치 해야 함
    
    - 복사 설치
        - http://sourceforge.net/projects/mingw/files/MinGW/Extension/zlib/
            - libz-1.2.7-1-mingw32-dev.tar.lzma , libz-1.2.7-1-mingw32-dll-1.tar.lzma 다운 받아 압축을 푼후
            - D:\MinGW\msys\1.0\local 경로에 bin, include, lib 폴더 복사


*libiconv
    http://www.gnu.org/software/libiconv/#TOCdownloading
        - http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
$ ./configure --prefix=/usr/local
$ make
$ make install

copy C:\MinGW\msys\1.0\bin\libiconv-2.dll 사용할경로

libiconv-2.dll



* x264
ftp://ftp.videolan.org/pub/x264/snapshots/
x264-snapshot-20130802-2245-stable.tar.bz2     608 KB     2013-08-02     오후 8:45:00
libx264-133.dll

libx264-133.dll


./configure --enable-shared
make
make install

//=============================================================================
FFmpeg 1.2.2 "Magic"

2013-07-28
  libavutil      52. 18.100
  libavcodec     54. 92.100
  libavformat    54. 63.104
  libavdevice    54.  3.103
  libavfilter     3. 42.103
  libswscale      2.  2.100
  libswresample   0. 17.102
  libpostproc    52.  2.100

- 프로그램 다운
http://www.ffmpeg.org/releases/ffmpeg-1.2.2.tar.bz2

- 빌드 옵션 설정
./con1.sh 작성
#!/bin/sh

./configure --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-gpl --enable-version3 --disable-static --enable-shared  --disable-w32threads  --enable-zlib --enable-libx264   --enable-ffplay --disable-outdev=sdl


- MinGW 실행
C:\MinGW\msys\1.0\msys.bat
$ cd /build/ffmpeg-1.2.2
./con1.sh
make
make install













//=============================================================================
아래는 그냥 참고만...

//=============================================================================
* FFmpeg 2.0 "Nameless"

  - OpenCL을 지원하기 시작

2013-07-10
  libavutil      52. 38.100
  libavcodec     55. 18.102
  libavformat    55. 12.100
  libavdevice    55.  3.100
  libavfilter     3. 79.101
  libswscale      2.  3.100
  libswresample   0. 17.102
  libpostproc    52.  3.100

//=============================================================================
* 미리 빌드 사용
http://ffmpeg.zeranoe.com
http://ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-20130801-git-f118b41-win32-shared.7z
http://ffmpeg.zeranoe.com/builds/win32/dev/ffmpeg-20130801-git-f118b41-win32-dev.7z
FFmpeg version: 2013-08-01 git-f118b41
  libavutil      52. 40.100 / 52. 40.100
  libavcodec     55. 19.100 / 55. 19.100
  libavformat    55. 12.102 / 55. 12.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.100 /  3. 82.100
  libswscale      2.  4.100 /  2.  4.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100

This FFmpeg build was configured with:
  --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads -enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib


  bzip2 1.0.6 <http://bzip.org/>
  Fontconfig 2.10.93 <http://freedesktop.org/wiki/Software/fontconfig>
  Frei0r 20130321-git-245bb38 <http://frei0r.dyne.org/>
  GnuTLS 3.1.9 <http://gnutls.org/>
  libiconv 1.14 <http://gnu.org/software/libiconv/>
  libass 0.10.1 <http://code.google.com/p/libass/>
  libbluray 0.3.0 <http://videolan.org/developers/libbluray.html>
  libcaca 0.99.beta18 <http://caca.zoy.org/wiki/libcaca>
  FreeType 2.4.12 <http://freetype.sourceforge.net/>
  GSM 1.0.13-4 <http://packages.debian.org/source/squeeze/libgsm>
  iLBC 20120913-git-b5f9b10 <https://github.com/dekkers/libilbc/>
  Modplug-XMMS 0.8.8.4 <http://modplug-xmms.sourceforge.net/>
  LAME 3.99.5 <http://lame.sourceforge.net/>
  OpenCORE AMR 0.1.3 <http://sourceforge.net/projects/opencore-amr/>
  OpenJPEG 1.5.1 <http://www.openjpeg.org/>
  Opus 1.0.2 <http://opus-codec.org/>
  RTMPDump 20121230-git-df6c518 <http://rtmpdump.mplayerhq.hu/>
  Schroedinger 1.0.11 <http://diracvideo.org/>
  libsoxr 0.1.1 <http://sourceforge.net/projects/soxr/>
  Speex 1.2rc1 <http://speex.org/>
  Theora 1.1.1 <http://theora.org/>
  TwoLAME 0.3.13 <http://twolame.org/>
  VisualOn AAC 0.1.2 <https://github.com/mstorsjo/vo-aacenc>
  VisualOn AMR-WB 0.1.2 <https://github.com/mstorsjo/vo-amrwbenc>
  Vorbis 1.3.3 <http://vorbis.com/>
  vpx 1.2.0 <http://webmproject.org/>
 
  x264 20130702-git-f0c1c53 <http://videolan.org/developers/x264.html>

  XAVS svn-r55 <http://xavs.sourceforge.net/>
  Xvid 1.3.2 <http://xvid.org/>
  zlib 1.2.8 <http://zlib.net/>


반응형
Posted by codens


반응형