Megabyte Computing Solutions

Computer Support and Software Development: Evolved
Home
About Us
Applications
Current Promotion
Our Services
Preflight (FFmpeg library downloads, curl -O downloads the source code and tar -zxvf unzips the archive)

#!/bin/sh

cd /tmp && svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg && cd /tmp/ffmpeg && curl -O http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2 && tar -jxvf libtheora-1.1.1.tar.bz2 && curl -O http://downloads.xiph.org/releases/flac/flac-1.2.1.tar.gz && tar -zxvf flac-1.2.1.tar.gz && curl -O http://downloads.xiph.org/releases/ogg/libogg-1.1.4.tar.gz && tar -zxvf libogg-1.1.4.tar.gz && curl -O http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.3.tar.gz && tar -zxvf libvorbis-1.2.3.tar.gz && curl -O http://softlayer.dl.sourceforge.net/project/lame/lame/3.98.2/lame-398-2.tar.gz && tar -zxvf lame-398-2.tar.gz && curl -O http://downloads.xvid.org/downloads/xvidcore-1.2.2.tar.gz && tar -zxvf xvidcore-1.2.2.tar.gz && curl -O http://softlayer.dl.sourceforge.net/project/faac/faac-src/faac-1.28/faac-1.28.tar.gz && tar -zxvf faac-1.28.tar.gz && curl -O http://softlayer.dl.sourceforge.net/project/faac/faad2-src/faad2-2.7/faad2-2.7.tar.gz && tar -zxvf faad2-2.7.tar.gz


Postflight (Configure, compile, and install all libraries, as well as move the final FFmpeg executable into the MCS Utilities application)

#!/bin/sh

cd /tmp/ffmpeg/faac-1.28 && ./configure --enable-static && gnumake && sudo gnumake install
cd /tmp/ffmpeg/faad2-2.7 && ./configure --enable-static && gnumake && sudo gnumake install
cd /tmp/ffmpeg/lame-398-2 && ./configure --enable-static && gnumake && sudo gnumake install
cd /tmp/ffmpeg/libogg-1.1.4 && ./configure --enable-static && gnumake && sudo gnumake install
cd /tmp/ffmpeg/libtheora-1.1.1 && ./configure --enable-static && gnumake && sudo gnumake install
cd /tmp/ffmpeg/libvorbis-1.2.3 && ./configure --enable-static && gnumake && sudo gnumake install
cd /tmp/ffmpeg/xvidcore/build/generic && ./configure --enable-static --disable-assembly && make && sudo make install
cd /tmp/ffmpeg && ./configure --enable-nonfree --enable-gpl --enable-encoder=rawvideo --enable-encoder=mpeg1video --enable-encoder=mpeg2video --enable-encoder=mpeg4 --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-encoder=aac --enable-encoder=ac3 --enable-encoder=flashsv --enable-encoder=flv --enable-encoder=libfaac --enable-encoder=mp2 --enable-encoder=msmpeg4v1 --enable-encoder=msmpeg4v2 --enable-encoder=msmpeg4v3 --enable-encoder=vorbis --enable-encoder=wmav1 --enable-encoder=wmav2 --enable-encoder=wmv1 --enable-encoder=wmv2 --disable-ffserver && gnumake
mv /tmp/ffmpeg/ffmpeg /Applications/MCS\ Utilities.app/Contents/Resources/.exec
sudo rm -r /tmp/ffmpeg