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/ /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

  1. FFmpeg doesn’t need to be painful, just use a precompiled framework

    • True. Way back frameworks or static libs for OpenCV and FFMPEG didn’t exist. Also it could be helpful for someone if they want to compile their own version.

      Thanks for the link to framework 🙂

      • Thanks, we try to help. I mean we can’t give everything away and stay in business. But we love to support the open source community.

        Iframeextractor is an old example but still a good piece of code to study if your just getting into ffmpeg .

        As an exercise we did this for someone, here’s the beauty of frameworks, this took about 15 minutes from forking to borrowing code from one of our more elaborate players.

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>