Monthly Archives: October 2011

Compiling FFMPEG for iFrameExtractor

iFrameExtractor is an app for iOS to extract frames from videos using FFMPEG. As FFMPEG supports many video formats one can assume same for iFrameExtractor as well. Though compiling FFMPEG could be painful for iOS. Here is one tip which may help if you are stuck withc compilation.

You may need to add an –extra-ldflags. This points to usr/lib/system directory in your iOS SDK. Following command shows an example which can be easily modified for iOS 5.

./configure –extra-ldflags=-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib/system –disable-bzlib –disable-doc –disable-ffmpeg –disable-ffplay –disable-ffserver –enable-cross-compile –arch=arm –target-os=darwin –cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc –as=’gas-preprocessor/gaspreprocessor.plĀ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc’ –sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk –cpu=cortex-a8 –extra-cflags=’-arch armv7′ –extra-ldflags=’-arch armv7′ –enable-pic