【问题标题】:FFMPEG iOS 7 LibraryFFMPEG iOS 7 库
【发布时间】:2013-10-20 22:17:15
【问题描述】:

我已尝试阅读许多教程。 我在谷歌上花了几个小时,stackoverflow 试图回答。 到目前为止,我已经阅读了:Trying to compile the FFMPEG libraries for iPhoneOS platform with armv6 and arv7 architectureFFMPEG integration on iphone/ ipad projecthttps://github.com/lajos/iFrameExtractor 中的几个。

我正在尝试构建这个库以兼容 iOS 7/Xcode 5,但它不起作用。 我得到的一个常见错误是:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
yasm/nasm not found or too old. Use --disable-yasm for a crippled build.

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
ffmpeg-user@ffmpeg.org 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.

一旦完成,我还会得到更多。如:

rm: illegal option -- .
usage: rm [-f | -i] [-dPRrvW] file ...
       unlink file
make: *** [clean] Error 64

我主要尝试使用此命令启动,但它总是在“make clean”时崩溃:

./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/iPhoneOS7.0.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/iPhoneOS7.0.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

【问题讨论】:

  • 大多数开发人员通常会等待 ffmpeg.org 为新芯片更新他们的 asm 代码,同时您知道 armv7 编译器在 iphone 5s 上可以正常工作。据我所知,还没有人尝试过 64 位版本的 ffmpeg,这只是一种方法。
  • 那我怎么用iOS 6.0SDK编译呢?我如何将它的框架下载到 Xcode 5 中?如果可能的话
  • 再次,我不确定您的要求,如果您愿意,请直接与我联系,您可以在我们的页面 www.streammore.tv 上查看教程
  • @AndreasBachmaier 我试过使用 ffmpeg4ios 但它似乎没有用..

标签: ios xcode ffmpeg ios7 xcode5


【解决方案1】:

要使用mooncatventures(我们的)ffmpegdecoderFramework,进入构建设置 点击拱门并移除 armv7s。

您还必须将 build active 架构更改为 no.

【讨论】:

    【解决方案2】:

    mientus 的这个答案对我有用: https://stackoverflow.com/a/19370679/661720

    支持 iOS7 和 XCode5 的通用 ffmpeg 库:

    安装气体预处理器

    点击 ZIP 图标下载 https://github.com/mansr/gas-preprocessor。将 gas-preprocessor.pl 复制到 /usr/bin 目录。更改 gas-preprocessor.pl 的权限 将权限设置为所有人的读写。

    https://gist.github.com/m1entus/6983547下载我的shell脚本

    运行 sh build-ffmpeg.sh。

    【讨论】:

      猜你喜欢
      • 2013-05-15
      • 1970-01-01
      • 2020-01-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-11
      • 2014-05-12
      • 1970-01-01
      相关资源
      最近更新 更多