5

I wanted to use FFMpeg library for video processing activities, from 2 days I m working on compiling and integrating this library with Xcode 8 and Swift. I tried following links but with no success. Can anyone please help me how to achieve this?

FFMPEG integration on iphone/ ipad project

https://github.com/chrisballinger/FFmpeg-iOS

http://witcheryne.iteye.com/blog/1734706

How to Build FFMpeg as iOS Framework

https://github.com/ElfSundae/FFmpeg-iOS-build

https://github.com/kolyvan/kxmovie

2
  • Did you succeed in integrating ?If yes could you suggest how to integrate ffmpeg Commented Jan 16, 2019 at 13:47
  • No not yet, tried with AVFramework Commented Jan 17, 2019 at 12:34

1 Answer 1

16

I've tried mobile-ffmpeg, and it works (swift 4.2 - Xcode 10.1)
installation is very easy by cocoapods pod 'mobile-ffmpeg-full-gpl', '~> 4.2'
you can use different binaries if you don't need all features, for example: pod 'mobile-ffmpeg-min', '~> 4.2' link

for using in swift you should add ProjectName-Bridging-Header.h to your project and then import the library in that: #import <mobileffmpeg/MobileFFmpeg.h>

you can run a command like this in swift (converting mkv to mp4):

MobileFFmpeg.execute("-i video.mkv -codec copy video.mp4")
Sign up to request clarification or add additional context in comments.

12 Comments

Thanks Amir, for sharing this helpful link
HI @AmirKhorsandi, I need your help regarding same... I have to use this Library But dont know how can i accomplish this... Looking for your kind response. Thanks
Hi @Ahtazaz can you explain a bit about your issue, you can also email me: [email protected]
I have just sent you an Email... please check... Thanks
Hi, @AmirKhorsandi I have installed MOBILE-Ffmpeg POD successfully, But the Issue is my Mac & Xcode Project gone wrong, mean very slow. Even I have clean Derived data but nothing works. Thanks
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.