Code Monkey home page Code Monkey logo

iframeextractor's Introduction

original copyright

This project extracts frames from video recorded by iPhone 3Gs using the LGPL FFmpeg libraries.

This software is licensed under the GNU-LGPL version 2.1 or later.

Copyright 2010 Lajos Kamocsay

lajos at codza dot com

Introduction

This project is forked from https://github.com/lajos/iFrameExtractor. I update the code for the latest ffmpeg and iOS version. The source code is tested on Mac OS 10.7.4(Lion) for ffmpeg 0.11.1 and iOS 5.1 with Xcode 4.3.2.

Build steps

  • Download the code using

git clone git://github.com/PinkyJie/iFrameExtractor.git

  • Download the latest ffmpeg (0.11.1 tested) using

git clone git://source.ffmpeg.org/ffmpeg.git

  • Put the ffmpeg source code into the folder ffmpeg

  • Copy the perl script gas-preprocessor.pl into /usr/local/bin folder

  • Change directory to your ffmpeg folder, select your target platform and follow the scripts below

Platforms

  • armv7 (for iPhone 3GS and devices after 3GS)
configure

./configure \

--cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \

--as='/usr/local/bin/gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \

--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk \

--target-os=darwin \

--arch=arm \

--cpu=cortex-a8 \

--extra-cflags='-arch armv7' \

--extra-ldflags='-arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk' \

--prefix=compiled/armv7 \

--enable-cross-compile \

--enable-nonfree \

--enable-gpl \

--disable-armv5te \

--disable-swscale-alpha \

--disable-doc \

--disable-ffmpeg \

--disable-ffplay \

--disable-ffprobe \

--disable-ffserver \

--disable-asm \

--disable-debug

make

make clean

make && make install

  • armv6 (for devices before 3GS)
configure

./configure \

--cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \

--as='/usr/local/bin/gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \

--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk \

--target-os=darwin \

--arch=arm \

--cpu=arm1176jzf-s \

--extra-cflags='-arch armv6' \

--extra-ldflags='-arch armv6 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk' \

--prefix=compiled/armv6 \

--enable-cross-compile \

--enable-nonfree \

--enable-gpl \

--disable-armv5te \

--disable-swscale-alpha \

--disable-doc \

--disable-ffmpeg \

--disable-ffplay \

--disable-ffprobe \

--disable-ffserver \

--disable-asm \

--disable-debug

make

make clean

make && make install

  • i386 (for simulator)
configure

./configure \

--cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc \

--as='/usr/local/bin/gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc' \

--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk \

--target-os=darwin \

--arch=i386 \

--cpu=i386 \

--extra-cflags='-arch i386' \

--extra-ldflags='-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk' \

--prefix=compiled/i386 \

--enable-cross-compile \

--enable-nonfree \

--enable-gpl \

--disable-armv5te \

--disable-swscale-alpha \

--disable-doc \

--disable-ffmpeg \

--disable-ffplay \

--disable-ffprobe \

--disable-ffserver \

--disable-asm \

--disable-debug

make

make clean

make && make install

  • universal (using one *.a files for all platforms)

mkdir -p ./compiled/fat/lib

lipo -output ./compiled/fat/lib/libavcodec.a -create \

-arch armv6 ./compiled/armv6/lib/libavcodec.a \

-arch armv7 ./compiled/armv7/lib/libavcodec.a \

-arch i386 ./compiled/i386/lib/libavcodec.a

lipo -output ./compiled/fat/lib/libavdevice.a -create \

-arch armv6 ./compiled/armv6/lib/libavdevice.a \

-arch armv7 ./compiled/armv7/lib/libavdevice.a \

-arch i386 ./compiled/i386/lib/libavdevice.a

lipo -output ./compiled/fat/lib/libavformat.a -create \

-arch armv6 ./compiled/armv6/lib/libavformat.a \

-arch armv7 ./compiled/armv7/lib/libavformat.a \

-arch i386 ./compiled/i386/lib/libavformat.a

lipo -output ./compiled/fat/lib/libavutil.a -create \

-arch armv6 ./compiled/armv6/lib/libavutil.a \

-arch armv7 ./compiled/armv7/lib/libavutil.a \

-arch i386 ./compiled/i386/lib/libavutil.a

lipo -output ./compiled/fat/lib/libswresample.a -create \

-arch armv6 ./compiled/armv6/lib/libswresample.a \

-arch armv7 ./compiled/armv7/lib/libswresample.a \

-arch i386 ./compiled/i386/lib/libswresample.a

lipo -output ./compiled/fat/lib/libpostproc.a -create \

-arch armv6 ./compiled/armv6/lib/libpostproc.a \

-arch armv7 ./compiled/armv7/lib/libpostproc.a \

-arch i386 ./compiled/i386/lib/libpostproc.a

lipo -output ./compiled/fat/lib/libswscale.a -create \

-arch armv6 ./compiled/armv6/lib/libswscale.a \

-arch armv7 ./compiled/armv7/lib/libswscale.a \

-arch i386 ./compiled/i386/lib/libswscale.a

lipo -output ./compiled/fat/lib/libavfilter.a -create \

-arch armv6 ./compiled/armv6/lib/libavfilter.a \

-arch armv7 ./compiled/armv7/lib/libavfilter.a \

-arch i386 ./compiled/i386/lib/libavfilter.a

The complied static libraries (*.a) lie in theffmpeg/compiled folder.

iframeextractor's People

Contributors

lajos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iframeextractor's Issues

build script

can someone explain to me how this extremely long build script is supposed to work? i gave up trying

How to compile x264 for use in an iPhone application.

Hi lajos,

iFrameExtractor made me grow a lot.

I'm learning How to compile x264 for use in an iPhone application.

My version is 3.2.5 xcode,and I get x264-armv6 with https://github.com/gabriel/ffmpeg-iphone-build/issues#issue/1.

./configure --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/gas-preprocessor.pl /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk --cpu=arm1176jzf-s --extra-cflags='-arch armv6' --extra-ldflags='-arch armv6'

Obtained config.err at compile, and My libzvcodes.a size 19.7M, that I have not added x264.

I have something else?

sory my poor English.

Thanks.

update ffmpeg?

how can I update only ffmpeg version from ffmpeg official git using this project

./configure

  1. open Terminal
    1. clone the repository: git clone git://github.com/lajos/iFrameExtractor.git
    2. go to the ffmpeg folder in the project: cd iFrameExtractor/ffmpeg
    3. build the ffmpeg libraries: ./build_universal
    4. open the xcode project and run it on your iPhone device

before ./build_universal users should call ./configure

Can build ffmpeg-0.10

Hi, brother,

I want know the versions of ffmpeg in iFrameExtractor,is 0.10?

I donwload ffmpeg-0.10 form git://source.ffmpeg.org/ffmpeg.git

and add it to iFrameExtractor,But I can't Build it.

Can you help me?

Regard & Thanks .

Can you provide configure settiings for SDK 4.3

Hello lajos.
I have created iPhone app, that encodes images and sounds to video file.
It works great at simulator, but not works at device. I think the issue in libraries.

I use libraries from your project. Can you help me? how to configure and build libs for sdk 4.3?

I have trying to change build_armv6, build_armv7 etc. (iPhoneOS4.1.sdk to iPhoneOS4.3.sdk, but it has no effect)
Best redgards, Hariton Batkov

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.