11

I have seen several scripts to build FFmpeg API for armv7, 7s and i386 but couldn't find anything which would work for armv64 as well. Some of the answers on other threads of this forum suggested to prepare a separate library for arm64 but it does not work well with rest of the architectures. Hence I need a script which can work for all the supported architectures for iOS including armv7, armv7s, armv64 and i386.

artless noise
  • 21,212
  • 6
  • 68
  • 105
sandy
  • 2,127
  • 4
  • 28
  • 50
  • Hey Sandy sorry if I bother you but I have the same problem. I'm looking for the FFMPEG framework (one only file) working with all architectures. Do you have it? – prelite Dec 15 '15 at 20:16
  • this is definitely the one to go with ! https://github.com/kewlbear/FFmpeg-iOS-build-script – Fattie Dec 16 '18 at 19:02

1 Answers1

13

I have use below scripts for making FFmpeg build for arm64

https://github.com/kewlbear/FFmpeg-iOS-build-script

https://github.com/bbcallen/ijkplayer/blob/fc70895c64cbbd20f32f1d81d2d48609ed13f597/ios/tools/do-compile-ffmpeg.sh#L7

You have to add libbz2.dylib and libiconv.dylib framework in your xCode project.

Tarun Seera
  • 4,212
  • 4
  • 27
  • 41
  • 1
    How to build for ios8 and xcode 6.0 ? Any idea. Please help – Ankish Jain Jan 20 '15 at 15:47
  • How did you link it in XCode in Swift project? When I try to use any function from ffmpeg, I got an error, e.g.: Undefined symbols for architecture x86_64: "avcodec_register_all()", referenced from: +[Bridge_ObjectiveC_Cpp run_test_a:] in bridge.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) – Lukasz Czerwinski Aug 26 '15 at 02:16
  • hello. i can build that script with ffmpeg version 4.0 – kemdo Jul 30 '18 at 10:17
  • Could you please share the useage command to build FFmpeg using https://github.com/bbcallen/ijkplayer/blob/fc70895c64cbbd20f32f1d81d2d48609ed13f597/ios/tools/do-compile-ffmpeg.sh#L7 – Amalendu Kar Mar 31 '23 at 07:09