title: Can FFmpeg be used as a library, instead of a standalone program?
body: <p>I'd like to add video conversion capabilities to a program I'm writing. FFmpeg's command line interface for doing this is simply <code>ffmpeg -i InputFile OutputFile</code>, but is there a way to make use of it as a library, so I can do something like <code>ffmpeg_convert(InputFile, OutputFile)</code>?</p>
  
  <p>I'm hoping I won't have to use libavcodec directly, as I imagine it will be far more complex than a one-line function to convert between formats. If FFmpeg can't be easily retrofitted to do this, is there perhaps another library based on it that does? I've heard of libvlc, but that seems to only expose a video <em>playing</em> API, not video conversion.</p>
  
  <p>Thanks.</p>