Cygwinでニコ動用mp4を出力するためのffmpegを野良ビルドする手順

俺得なメモ


gccとかmakeとか必要なものは一通り入ってる前提。
Cygwinは1.7系で確認
gitのクライアントが必要。あとwgetもね
Ubuntuでやった手順をCygwinに持ってきただけなので、機能的には割と最小限に削ってある。ffmpeg全般としてはアレかも
・yasmをインストール
http://www.tortall.net/projects/yasm/wiki/Download
./configure; make; make install
・lameをインストール
http://sourceforge.net/projects/lame/files/lame/
./configure; make; make install
・faacをインストール
http://sourceforge.net/projects/faac/files/
./configure; make; make install
・x264をインストール

git clone git://git.videolan.org/x264.git
cd x264
./configure --enable-shared --enable-static --extra-cflags="-mtune=native -mfpmath=sse -msse -msse2"
make; make install

・theora(これは無くてもいい→というかCygwinのインストーラから入る)
http://downloads.xiph.org/releases/theora/
./configure –disable-shared; make; make install

・ffmpeg

git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg
export LIBRARY_PATH=/usr/local/lib:${LIBRARY_PATH}
export CPATH=/usr/local/include:${CPATH}
./configure --extra-cflags="-mtune=native -mfpmath=sse -msse -msse2 -U__STRICT_ANSI__" --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libx264 --disable-encoder=aac --disable-dxva2
make
make install

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です


The reCAPTCHA verification period has expired. Please reload the page.