My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
FfmpegOsX  
Building ffmpeg on OS X
Updated Feb 4, 2010 by jond...@gmail.com

(Thanks to Peter Boling for these instructions.)

Here's our (Sagebit) build sequence on MacOS X . It has worked on various Intel based Macs with various levels of twiddling:

1) Libs that play nice

on each package |foo| do

curl -O foo_http_path OR svn foo_svn tar xzf foo (if needed) cd foo ./configure make (-j2 if you have dual core or more) sudo make install

2) Libs that don't play nice

before ./configure, you need to run:

aclocal -I . | autoheader | glibtoolize --automake | automake --add- missing | autoconf

then before ./configure, you need to fix the misspaced line in the config file at ac_config_files. configure, make, make install as above.

the dipwads at faad didn't tar correctly.. so

mkdir faad || cd faad tar zxf ../faad_src_20020104.tar.gz aclocal -I . | autoheader | glibtoolize --automake | automake --add- missing | autoconf

THEN once built / installed, copy faad.h to /usr/local/include like (sudo cp include/faad.h /usr/local/include)

(navigate to xvidcore/builds/generic) see http://rob.opendot.cl/index.php/useful-stuff/xvid-with-asm-on-os-x/ make those changes, then make / make install

3) Now, get and build ffmpeg

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg cd ffmpeg ./configure --enable-pp --enable-pthreads --disable-debug --enable- static --enable-libmp3lame --enable-libfaac --enable-libx264 --enable- libfaad --enable-libogg --enable-libvorbis --disable-ffplay --disable- ffserver --enable-gpl --enable-libxvid make -j2 sudo make install

resources: http://troykelly.com/2007/01/18/building-ffmpeg-on-os-x/

libs I haven't tackled yet: -enable-theoris -enable-libgsm

could also try adding-enable-shared

NOTE: old versions of ffmpeg use the video codec 'mp3', not 'libmp3lame'. If-enable-mp3lame is in the build, mp3 works. We've upgraded to ffmpeg trunk and only-enable-mp3lame and -vocdec libmp3lame works now.


Sign in to add a comment
Powered by Google Project Hosting