sunlubo / SwiftFFmpeg

A Swift wrapper for the FFmpeg API
Apache License 2.0
521 stars 83 forks source link

OMG wow - for iOS too ? #4

Closed smhk closed 5 years ago

smhk commented 5 years ago

This library is magic: but wait can it be used on iOS builds ?? Or just Mac builds?

sunlubo commented 5 years ago

I have not tried it on iOS yet, but I think it is ok.

smhk commented 5 years ago

YOU'RE AMAZING. How to?

sunlubo commented 5 years ago

You should add ffmpeg libs to your iOS project firstly, then create a framework called CFFmpeg. Maybe you can refer to CommonCrypto to create the CFFmpeg framework?!

smhk commented 5 years ago

Ah, sorry to waste your time:

I DO HAVE FFMPEG running perfectly in my iOS project; currently using Obj-C

A great way to get ffmpeg in to iOS is this loving build script:

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

For new programmers, instructions on that:

https://stackoverflow.com/questions/45613907/adding-ffmpeg-to-my-xcode-project

I guess then I can now just add the source files to achieve SWIFTFFMPEG ??

sunlubo commented 5 years ago

I write a demo, you can try it out. See https://github.com/sunlubo/SwiftFFmpegDemo-iOS.

smhk commented 5 years ago

OH MY GOD