Skip to content

Instantly share code, notes, and snippets.

@Teaonly
Last active August 29, 2015 14:01
Show Gist options
  • Save Teaonly/cc5804318f42089b0dcd to your computer and use it in GitHub Desktop.
Save Teaonly/cc5804318f42089b0dcd to your computer and use it in GitHub Desktop.
X264/FFMPEG 在Mac OS下的编译和开发
X264对应的编译:
.configure —disable-asm —enable-shared --prefix=/Users/teaonly/opt/ffmpeg/
make;make install
libaac 也需要按上面的配置编译,并且安装到相同的制定目录
为了支持pkg-config的文件,需要将PKG_CONFIG_PATH配置对。
FFMPEG的对应编译:
./configure --disable-yasm --enable-shared --enable-libx264 --enable-gpl --enable-libfaac --enable-nonfree --enable-debug --extra-cflags=-I/Users/teaonly/opt/ffmpeg/include/ --extra-ldflags=-L/Users/teaonly/opt/ffmpeg/lib/ --prefix=/Users/teaonly/opt/ffmpeg/
另外Linu下的编译,参考
https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment