Created
May 5, 2011 22:23
-
-
Save jeeb/958098 to your computer and use it in GitHub Desktop.
x264 building related stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Some kind of buildscript for x264 libs | |
P64B=`ls /mingw |grep x86_64` | |
echo Gotten prefix: ${P64B} | |
echo "" | |
cd lame-3.98.4 | |
# 32bit | |
make distclean | |
PKG_CONFIG_PATH=/mingw/i686-pc-mingw32/lib/pkgconfig/ ./configure --prefix=/mingw/i686-pc-mingw32 --disable-shared | |
make | |
make install | |
# 64bit | |
make distclean | |
PKG_CONFIG_PATH=/mingw/${P64B}/lib/pkgconfig/ ./configure --host=${P64B} --prefix=/mingw/${P64B} --disable-shared | |
make | |
make install | |
cd .. | |
# Uncomment if you can has no libopencore-amr | |
# libopencore-amr from git | |
# git clone git://opencore-amr.git.sourceforge.net/gitroot/opencore-amr/opencore-amr opencore-amr | |
cd opencore-amr | |
# 32bit | |
make distclean | |
PKG_CONFIG_PATH=/mingw/i686-pc-mingw32/lib/pkgconfig/ ./configure --prefix=/mingw/i686-pc-mingw32 --disable-shared | |
make | |
make install | |
# 64bit | |
make distclean | |
PKG_CONFIG_PATH=/mingw/${P64B}/lib/pkgconfig/ ./configure --host=${P64B} --prefix=/mingw/${P64B} --disable-shared | |
make | |
make install | |
cd .. | |
# libav | |
cd libav | |
make distclean | |
git pull | |
git rev-list HEAD -n 1 | cut -c 1-7 > ../builds/ffmpeg_ffms.txt | |
# 32bit | |
./configure --prefix=/mingw/i686-pc-mingw32 --enable-gpl --enable-postproc --enable-filters --disable-network --enable-memalign-hack --extra-cflags='-U__STRICT_ANSI__' --enable-runtime-cpudetect --enable-pthreads --extra-cflags='-DPTW32_STATIC_LIB' --disable-hwaccels --enable-libmp3lame --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb | |
make -j2 | |
make install | |
make distclean | |
# 64bit | |
./configure --prefix=/mingw/${P64B} --cross-prefix=${P64B}- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-postproc --enable-filters --disable-network --extra-cflags='-U__STRICT_ANSI__' --enable-runtime-cpudetect --enable-pthreads --extra-cflags='-DPTW32_STATIC_LIB' --disable-hwaccels --enable-libmp3lame --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb | |
make -j2 | |
make install | |
cd .. | |
# Build ffmpegsource | |
cd ffmpegsource | |
make distclean | |
svn up | |
svn info | grep Revision >> ../builds/ffmpeg_ffms.txt | |
# 32bit | |
PKG_CONFIG_PATH=/mingw/i686-pc-mingw32/lib/pkgconfig/ ./configure --prefix=/mingw/i686-pc-mingw32 | |
make | |
make install | |
make distclean | |
# 64bit | |
PKG_CONFIG_PATH=/mingw/${P64B}/lib/pkgconfig/ ./configure --host=${P64B} --prefix=/mingw/${P64B} | |
make | |
make install | |
cd .. | |
# GPAC | |
cd gpac | |
make distclean | |
svn up | |
svn info | grep Revision >> ../builds/ffmpeg_ffms.txt | |
# 32bit | |
./configure --prefix=/mingw/i686-pc-mingw32 | |
make lib | |
make install-lib | |
make distclean | |
# 64bit | |
./configure --cpu=x86_64 --prefix=/mingw/${P64B} --cross-prefix=${P64B}- | |
make lib | |
make install-lib | |
cd .. | |
# All done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Some kind of buildscript for the x264 | |
P64B=`ls /mingw |grep x86_64` | |
echo Gotten prefix: ${P64B} | |
echo "" | |
# Patched x264 | |
cd x264-patched | |
# git reset --hard HEAD | |
# Patchan and committan | |
make distclean | |
# 8bit | |
# 32bit | |
PKG_CONFIG_PATH=/mingw/i686-pc-mingw32/lib/pkgconfig/ ./configure > ../patched_configures.txt | |
make fprofiled VIDS="../zeroma.y4m ../foreman_cif.y4m" | |
cp x264.exe ../builds/32/x264.exe | |
make distclean | |
# 64bit | |
PKG_CONFIG_PATH=/mingw/${P64B}/lib/pkgconfig/ ./configure --cross-prefix=${P64B}- --host=${P64B} >> ../patched_configures.txt | |
make fprofiled VIDS="../zeroma.y4m ../foreman_cif.y4m" | |
cp x264.exe ../builds/64/x264.exe | |
make distclean | |
# 10bit | |
# 32bit | |
PKG_CONFIG_PATH=/mingw/i686-pc-mingw32/lib/pkgconfig/ ./configure --bit-depth=10 >> ../patched_configures.txt | |
make fprofiled VIDS="../zeroma.y4m ../foreman_cif.y4m" | |
cp x264.exe ../builds/32/x264-10bit.exe | |
make distclean | |
# 64bit | |
PKG_CONFIG_PATH=/mingw/${P64B}/lib/pkgconfig/ ./configure --cross-prefix=${P64B}- --host=${P64B} --bit-depth=10 >> ../patched_configures.txt | |
make fprofiled VIDS="../zeroma.y4m ../foreman_cif.y4m" | |
cp x264.exe ../builds/64/x264-10bit.exe | |
make distclean | |
# ALL DONE; LET'S HAVE A DRINK! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment