首页 > 代码库 > 精简 ffmpeg
精简 ffmpeg
sudo ./configure --prefix=../armv7 --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --enable-cross-compile --sysroot="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk" --target-os=darwin --cc="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc" --extra-cflags="-arch armv7" --extra-ldflags="-arch armv7" --extra-ldflags=-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/usr/lib/system --arch=arm --cpu=cortex-a8 --enable-pic --disable-asm --disable-everything --enable-decoder=flv --enable-decoder=rv40 --enable-decoder=aac
以上参数仅供参考 实际测试未编译通过
--disable-avdevice
--disable-avfilter
--disable-network
然后再
--disable-everything
最后再
--enable-decoder=需要解码的codec格式
--enable-decoder=xxxx
...
--enable-demuxer=需要解码的容器格式
--enable-demuxer=xxxx