You must have Xcode installed with Unix Tools. Xcode 3 is available for free via Apple Developer Center. However, Xcode 4 is available through the App Store (free for Lion users).
# Create a temporary directory for sources.
SOURCES=$(mktemp -d /tmp/XXXXXXXXXX)
cd $SOURCES
# Download the necessary sources.
curl -#LO http://downloads.sourceforge.net/project/faac/faac-src/faac-1.28/faac-1.28.tar.gz
curl -#LO http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.tar.gz
curl -#LO http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz
curl -#LO http://pkg-config.freedesktop.org/releases/pkg-config-0.25.tar.gz
curl -#LO http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.2.tar.gz
curl -#LO http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2
# curl -#LO http://downloads.sourceforge.net/project/opencore-amr/vo-amrwbenc/vo-amrwbenc-0.1.1.tar.gz
curl -#LO http://www.tortall.net/projects/yasm/releases/yasm-1.1.0.tar.gz
curl -#LO http://webm.googlecode.com/files/libvpx-v0.9.7-p1.tar.bz2
curl -#LO ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
curl -#LO http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz
# curl -#LG -d "p=ffmpeg.git;a=snapshot;h=HEAD;sf=tgz" -o ffmpeg.tar.gz http://git.videolan.org/
curl -#LO http://ffmpeg.org/releases/ffmpeg-0.8.5.tar.bz2
# Unpack files
for file in `ls ${SOURCES}/*.tar.*`; do
tar -xzf $file
rm $file
done
cd faac-*/
CFLAGS="-D__unix__" ./configure && make -j 4 && sudo make install; cd ..
cd lame-*/
./configure && make -j 4 && sudo make install; cd ..
cd libogg-*/
./configure && make -j 4 && sudo make install; cd ..
cd pkg-config-*/
./configure && make -j 4 && sudo make install; cd ..
cd libvorbis-*/
./configure --disable-oggtest --build=x86_64 && make -j 4 && sudo make install; cd ..
cd libtheora-*/
./configure --disable-oggtest --disable-vorbistest --disable-examples --disable-asm
make -j 4 && sudo make install; cd ..
# cd vo-amrwbenc-*/
# ./configure && make -j 4 && sudo make install; cd ..
cd yasm-*/
./configure && make -j 4 && sudo make install; cd ..
cd libvpx-*/
./configure --enable-vp8 --enable-pic && make -j 4 && sudo make install; cd ..
cd x264-*
CFLAGS="-I. -fno-common -read_only_relocs suppress" ./configure --enable-pic --enable-shared && make -j 4 && sudo make install; cd ..
cd xvidcore/build/generic
./configure --disable-assembly && make -j 4 && sudo make install; cd ../../..
# For Lion, we have to change which compiler to use (--cc=clang).
# If you're building on Snow Leopard, you can omit this flag so it defaults to gcc.
cd ffmpeg-*/
CFLAGS="-DHAVE_LRINTF" ./configure --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-hardcoded-tables --enable-shared --enable-pthreads --disable-indevs --cc=clang && make -j 4 && sudo make install
# --enable-libvo-amrwbenc
# FFMpeg creates MP4s that have the metadata at the end of the file.
# This tool moves it to the beginning.
cd tools
gcc -D_LARGEFILE_SOURCE qt-faststart.c -o qt-faststart
sudo mv qt-faststart /usr/local/bin
下载
分享到:
相关推荐
2.4.1. General Notes on Installing MySQL on Mac OS X 2.4.2. Installing MySQL on Mac OS X Using Native Packages 2.4.3. Installing the MySQL Startup Item 2.4.4. Installing and Using the MySQL Preference...
2. **设置(Setup)**: 分为硬件设置(HardwareSetup)和软件设置(SoftwareSetup),其中包含了使用前的先决条件(Prerequisites)和FFmpeg编译(Compiling FFmpeg)的具体步骤。 3. **基础测试(Basic Testing)**: 包含了多...
康威的人生游戏 ... compiling under MAC OS X). - ffmpeg is required. It is used in the script that converts the output text file to video. - For MAC OS X users (tested only in Mavericks)
Mac OS X with Xcode: * Read docs/README-macosx.md Mac OS X from the command line: * Run './configure; make; make install' Linux and other UNIX systems: * Run './configure; make; make install' ...
下面我们将详细讨论这些工具的功能、用法以及如何在Mac环境下操作它们。 首先,`apktool`是一个强大的Android反编译工具,由IzzySoft开发。它允许开发者解包APK文件,解析其资源、布局文件、XML配置等,并可以重新...
这两个编译器都支持多种平台,包括Windows、Linux和Mac OS。GCC包含了G++,这是专门针对C++的编译器,而Clang作为LLVM项目的一部分,也提供了对C++的良好支持。 在压缩包"TC"中,很可能包含了编译器的安装程序或者...
Aho and Ullman - The Theory of Parsing, Translation, and Compiling - Vol. 1 (1972).djvu Aho and Ullman - The Theory of Parsing, Translation, and Compiling - Vol. 2 (1973).djvu
问题6:OS compile’可能会在某些情况下被中断,同时提示如下错误消息:"Error occurred compiling the object" 这个问题可能是由于某些情况下,OS编译过程中出现了错误,导致编译中断。解决方法是,查看OS编译记录...
### 高级C和C++编译技术概览 #### 引言 本书《高级C和C++编译》深入探讨了C与C++语言在现代操作系统环境下的编译技术,旨在帮助读者深入了解这两个广泛使用的编程语言在多任务操作系统中的工作原理及优化技巧。...
Advanced C and C++ Compiling 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者...
VS6.0 安装及运行解决 Compiling... error spawning cl.exe 问题 本文将详细介绍 VS6.0 的安装与运行过程,并解决 Compiling... error spawning cl.exe 问题,以便帮助初学者更好地理解和应用 VS6.0。 路径的概念 ...
### "Compiling..., Error spawning cl.exe" 错误解析与解决方案 #### 一、问题概述 在使用Visual C++ 6.0进行编程时,不少用户可能会遇到一个常见的错误:“Compiling..., Error spawning cl.exe”。当尝试编译或...
C++编译过程详解 C++编程语言的编译过程是一项复杂的系统工程,涉及多个阶段,从源代码到可执行程序的转化过程中,编译器起着至关重要的作用。本资料详细介绍了C++的编译过程,包括预处理、编译、汇编和链接四个...
压缩包rsmpeg是 FFmpeg 的 Rust 绑定之上的一个薄而安全的层,它...bash utils/linux_ffmpeg.rs# Windows# You need a Linux machine for cross compiling, then copy the artifact to your# Windows machine. bash ut
Here's a patch to fix problems compiling the armulator on newer systems (invalid lvalue error). What you get Here are some files you can use to put together uClinux running in the GDB/ARMulator. ...
本书《Advanced C and C++ Compiling.pdf》是一本深入探讨C与C++编程语言编译技术和实践的专业书籍。通过本书的学习,读者可以深入了解如何高效地利用这两种语言进行程序设计与优化。 #### 作者简介 该书由一位具有...