Giter VIP home page Giter VIP logo

ffmpegc's Introduction

Compile ffmpeg for iOS, support armv7s , armvs7 & i386 simulator.

  • iOS 7 version not support x.264 module
  • iOS 6 version support x.264 module ( version 1.0 )

##iOS 7 Release Note

  • support iOS 7 & XCode 5
  • remove x.264 module(coming soon)

##iOS 7 & XCode Version Requirement

  • XCode 5 or later
  • iOS 7 or later

##How to use?

###Download & Compile ffmpeg

git clone [email protected]:lvjian700/ffmpegc.git
cd ffmpegc
./install-ffmpeg.sh

###How to use ?

You can find output in "ffmpegc/build/built/universal".

  1. Drag lib/*.a files to your project(copy to project).
  2. Add include folder to your "Header Search Paths".

##iOS 6 Version Requirement(Old Version)

You can find old version in release tabs.

  • XCode 4.*
  • CommandLine Tools
  • iOS 6.*

##How to use?

###Download & Compile ffmpeg

git clone [email protected]:lvjian700/ffmpegc.git
cd ffmpegc
./install-ffmpeg.sh

###Custom

1.Change ffmpeg version: Change this line on install-ffmpeg.sh file:

VERSION="2.0.2"	

2.Change iOSSDK version: Change this line on each compile-*.sh file:

SDKVERSION="7.1"	

###How to use ffmpeg?

You can see this project:
ffmpegc-demo

full demo, include video and audio: (License LGPL v3)
twplayer

##Occur mistake?

  1. You may not install XCode command-line tools
  2. /usr/sbin/gas-preprocessor.pl file exists. "sudo rm /usr/sbin/gas-preprocessor.pl"
  3. please check your gas-preprocessor.pl path, more details see issue#4

Thanks @Ronan0912. I can add armv7s support from this blog: (version 1.0) http://www.tangentsoftworks.com/blog/2012/11/12/how-to-prepare-your-mac-for-ios-development-with-ffmpeg-libraries/

ffmpegc's People

Contributors

lvjian700 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

ffmpegc's Issues

Compilation fails with iOS 7.0

It looks like that the script doesn't work with the new release of iOS and Xcode tools :

"compile armv7 ...
Makefile:3: config.mak: No such file or directory
cat: config.h: No such file or directory
./configure
Found no assembler
Minimum version is yasm-1.2.0
If you really want to compile without asm, configure with --disable-asm.
make: *** [config.mak] Error 1
Unknown option --disable-shared, ignored
No working C compiler found.
Makefile:3: config.mak: No such file or directory
cat: config.h: No such file or directory
./configure
Found no assembler
Minimum version is yasm-1.2.0
If you really want to compile without asm, configure with --disable-asm.
make: *** [config.mak] Error 1
Makefile:2: config.mak: No such file or directory
Makefile:49: /common.mak: No such file or directory
Makefile:92: /libavutil/Makefile: No such file or directory
Makefile:92: /library.mak: No such file or directory
Makefile:178: /doc/Makefile: No such file or directory
Makefile:179: /tests/Makefile: No such file or directory
make: *** No rule to make target `/tests/Makefile'. Stop.
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc is unable to create an executable file.
C compiler test failed."

Compiling for SDK 7.1

There is a problem when I try to compile for the SDK 7.1!! What should be done to fix this issue??

clang is unable to create an executable file. C compiler test failed.

install gas-* perl script
install gas-preproccesor.pr
Cloning into 'gas-preprocessor'...
remote: Counting objects: 171, done.
remote: Total 171 (delta 0), reused 0 (delta 0), pack-reused 171
Receiving objects: 100% (171/171), 32.34 KiB | 0 bytes/s, done.
Resolving deltas: 100% (54/54), done.
Checking connectivity... done.
copy gas-preprocessor.pl to /usr/sbin
set execute right
install finished.
Using ffmpeg-2.0.2.tar.bz2
Building without ccache
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang is unable to create an executable file.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive member: libavfilter/libavfilter.a(bbox.o) cputype (12) does not match previous archive members cputype (7) (all members must match) /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive member: libavfilter/libavfilter.a(bbox.o) cputype (12) does not match previous archive members cputype (7) (all members must match) make: *** [libavfilter/libavfilter.a] Error 1 fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: armv7/lib/*.a (No such file or directory)

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive member: libavfilter/libavfilter.a(bbox.o) cputype (12) does not match previous archive members cputype (7) (all members must match)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive member: libavfilter/libavfilter.a(bbox.o) cputype (12) does not match previous archive members cputype (7) (all members must match)
make: *** [libavfilter/libavfilter.a] Error 1
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: armv7/lib/*.a (No such file or directory)

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.