title: How to pass command line arguments to FFMpeg in iOS
body: <p>This is a beginner question, since I am new to iOS(I started it today), so please pardon my ignorance and lack of iOS knowledge.</p>
  
  <p>After building and successfully using FFMpeg for Android I wanted to do the same for iOS.
  So I built FFMpeg successfully for iOS by following this <a href="https://github.com/lajos/iFrameExtractor" rel="nofollow">link</a>, but after all that pain I am confused as how to use FFMpeg in iOS, I mean how can I pass command line arguments to <code>libffmpeg.a</code> file?</p>
  
  <p>I am assuming that there must be a way to run the .a file as an executable and then pass command line arguments and hope for FFMpeg to do the magic, I did the same in Android and it worked beautifully.</p>
  
  <p>I am also aware that I can use ffmpeg.c class and use its main method, but the question remains; how do I pass those command line arguments?</p>
  
  <p>Is there something I am supposed to be aware of here, is the thing what I am doing now correct or am I falling short on my approach?</p>
  
  <p>I wanted to mix two audio files, so the command for doing that would be <code>ffmpeg -i firstSound.wav -i secondSound.wav -filter_complex amix=inputs=2:duration=longest finalOutput.wav</code>, how do I do the same in iOS?</p>
  
  <p>Can someone please shed some light on this?</p>