Created
July 29, 2012 12:49
-
-
Save dmcrodrigues/3198517 to your computer and use it in GitHub Desktop.
FFmpeg on OSX 10.7
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 | |
PKG_CONFIG_VERSION=0.25 | |
YASM_VERSION=1.2.0 | |
PARALLEL_JOBS=3 | |
### pkg-config ######################################## | |
echo "installing pkg-config ${PKG_CONFIG_VERSION}..." | |
curl -#LO http://pkg-config.freedesktop.org/releases/pkg-config-${PKG_CONFIG_VERSION}.tar.gz | |
tar zxvf pkg-config-${PKG_CONFIG_VERSION}.tar.gz | |
cd pkg-config-${PKG_CONFIG_VERSION} | |
./configure && make -j${PARALLEL_JOBS} && sudo make install | |
echo "pkg-config ${PKG_CONFIG_VERSION} installed!" | |
echo "-------------------------------" | |
cd .. | |
### Yasm ############################################## | |
echo "installing yasm ${YASM_VERSION}..." | |
curl -#LO http://www.tortall.net/projects/yasm/releases/yasm-${YASM_VERSION}.tar.gz | |
tar zxvf yasm-${YASM_VERSION}.tar.gz | |
cd yasm-${YASM_VERSION} | |
./configure && make -j${PARALLEL_JOBS} && sudo make install | |
echo "yasm ${YASM_VERSION} installed!" | |
echo "-------------------------------" | |
cd .. | |
### FFmpeg ############################################ | |
echo "installing FFmpeg..." | |
if [ ! -d ffmpeg ]; then | |
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg | |
fi | |
cd ffmpeg | |
make clean | |
sudo ./configure \ | |
--enable-static \ | |
--enable-shared \ | |
--enable-gpl \ | |
--enable-libx264 \ | |
&& sudo make -j${PARALLEL_JOBS} && sudo make install | |
echo "-------------------------------" | |
echo "FFmpeg installed!" | |
cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment