How are you using FFMPEG but it's not open source?
But also, depending on codecs, it might be GPL; e.g. x264 itself is GPLd as are some other codecs. There are BSD licensed codecs. As ffmpeg relies on many other projects to provide codecs, it’s on a codec by codec basis - though the original configure makes it easy to disable all GPL upstrrams.