4

I had successfully build ffmpeg into xcode but I didn't get idea , how to execute command into project.I research hard on it and fined how to play video using encoding and decoding,but did not get idea how to run command.

pramod
  • 341
  • 2
  • 17
  • You can't run external programs from an iOS app, not even if it's bundled together with the app. It may be possible if you're jailbreaking. If you want to use it as a library, you will have to find an external reference or tutorial. – Avi Aug 16 '16 at 08:39
  • i have already added ffmpeg library into xocde from [this](http://stackoverflow.com/a/15429359/3384769) refrence – pramod Aug 16 '16 at 08:49
  • OR any other way to use ffmpeg functionality ? – pramod Aug 16 '16 at 09:00
  • Please explain exactly what the problem you are having is. If it's just a matter of not knowing how to use the library, that is off-topic, and your question will be closed. – Avi Aug 16 '16 at 09:04
  • i have done video playing using library but how can i applying overlay and filter effects using library? i have already read ffmpeg documentation but not getting idea for filter and overlay using library. – pramod Aug 16 '16 at 09:15
  • I guess you have to code against libav* to do this. Overlay filter is not a difficult one to program. Check the `filtering_video.c` example. – halfelf Aug 16 '16 at 09:56
  • how can I use this .c file into project and its method, I added it into project and successfully compiled.@halfelf – pramod Aug 17 '16 at 05:34
  • @pramod did you got any solution for overlaying the video with another video using ffmpeg in ios...? – Ashish Ramani Mar 28 '19 at 06:28

1 Answers1

0

You cannot run ffmpeg command directly via code, instead you should leverage the c code to do encoding decoding which can be achieved by using objective c wrappers. FFmpegWrapper gives you a lightweight wrapper class for media conversion.

COOKIES
  • 434
  • 4
  • 14
Emel Elias
  • 572
  • 7
  • 18