FFMPEG uses the GPL. Per the GPL if you link you application to it, then the entire application must also be GPL compliant. However, if you use the GPL’s application as an external application, only invoking either manually or programmatically (via an os level execute command) the GPL will not apply.
You can use the LaunchProcess API function to do exactly that.