Not sure if I am correct posting my question here and I will of course delete this question if appropriate.

I have a C# desktop app using FFmpeg.
I have a web service using FFmpeg.

I sell both products.

I want to know — can I distribute my desktop app with FFmpeg without paying a fee to FFmpeg people and without releasing my source code?

I also want to know whether I can use FFmpeg on my server for users to convert images to a video file to be emailed them. This service is also a payable product.

I have read the links to the FFmpeg licensing info and I read many questions here on these boards.

The closet I have got to an answer is that I can use it on my web server because I am not distributing it to client PCs and I can use FFmpeg on my desktop app if I only use certain features of FFmpeg — whatever they are.

However, this is not definitive enough for me and I cannot afford a lawyer and you would think this question/dilemma would have been resolved somewhere by someone considered how popular FFmpeg is.


  • 9
    well in-directly it is about video production. FFMPEG seems to be a big mystery in terms of licensing and is a popular question by people. You ought to leave it up as an exception. These boards are all about helping people and this answer helps me and will other people. The trouble with SO boards is that they can become elitism. Pls do not take that as an insult. You have helped me with some of my question and I am v grateful Commented Feb 7, 2015 at 7:18
  • 5
    I'm voting to reopen this question because of the vast prevalence of need for this to be answered. The 22 upvotes indicates this. This is a special case, only because of the great need for this specific question to be answered accurately.
    – user3643
    Commented Feb 15, 2019 at 19:41
  • 1
    @DrMayhem seems to me people came to this site for specific things. This answer seems to have helped a lot if people. But hey u know best :) Commented May 14, 2020 at 19:16
  • 2
    @drmayhem It's not too much of a stretch that licensing of video software when building video production tools falls under "how to use" that software. Yeah, this isn't about ffmpeg commands, but we've got questions on how to install it, compile it, integrate it, etc. Licensing cannot sensibly be a special case, and therefore off-topic, in light of those other questions here.
    – user3643
    Commented May 14, 2020 at 21:13
  • 1
    The sense is that it has helped a lot of people. Commented Jul 5, 2022 at 9:22

1 Answer 1


Yes, you can use FFmpeg in a commercial product

  • FFmpeg is licensed under the GNU Lesser General Public License (LGPL) version 2.1 or later.

  • It is also available under the General Public License (GPL) version 2 or later.

    • Some features, external libraries (libx264 and libx265 for example), and various filters, require GPL. If those parts get used the GPL applies to all of FFmpeg.
    • See LICENSE.md in the source for a list of GPL parts of FFmpeg and which external libraries require GPL.
  • The (L)GPL, and therefore FFmpeg, does not restrict commercial usage. You only need to properly comply with the license.

  • FFmpeg is not available under any other licensing terms. There is no commercial license available (but see the x264 & x265 commercial license info below). FFmpeg does not accept or charge any fees.

…but the (L)GPL is copyleft

If you include FFmpeg in your software, under the General Public License (GPL) version 2 or later, you may be required to make available the source code of your software to anyone requesting it.

Make sure your software license is compatible with the (L)GPL. This is an important and often confusing aspect of the (L)GPL. I can only suggest that you carefully read the license, the FAQ, and contact a lawyer or your legal department if you need counsel.

What if I am only using FFmpeg but not distributing it?

You do not have to do anything if you are not distributing anything from FFmpeg.

What about the x264 & x265 commercial licenses?

x264 and x265 are available under the GPL for free or a commercial license that you have to pay for. The commercial licenses are LGPL compatible. FFmpeg does not have an option that disables the GPL requirement for these commercial licenses so you have to do that manually. Therefore, if you purchase a commercial license from x264 licensing or x265 licensing then you are permitted to:

  • Compile x264/x265 with --disable-gpl.
  • Modify the configure file in the FFmpeg source code to move libx264/libx265 from EXTERNAL_LIBRARY_GPL_LIST to EXTERNAL_LIBRARY_LIST.
  • Compile ffmpeg without --enable-gpl and link to your x264/x265 that has been compiled with --disable-gpl.

Don't forget to document and provide these changes with the FFmpeg source code that you are making available.

Do I need a commercial license from x264/x265?

You do if your application is not GPL compatible and is being distributed with linked x264/x265. See [x264-devel] Announcing commercial licensing for x264 for additional details specific to x264.

Also see

  • 1
    wow! What a great answer! Commented Feb 6, 2015 at 19:21
  • 1
    @AJ Henderson would you like to open this? it seems a popular question and answer :) Commented Jun 27, 2017 at 16:18
  • Great answer! Could you please clarify what "distributed with linked x264" means? What if I distribute software that relies on ffmpeg being installed and calls it, e.g. via shell or subprocess? What if I install ffmpeg (without modyfing it) silently and subsequently call it from my software? Commented Oct 18, 2018 at 9:32
  • 1
    @NikolaLukic You are not distributing anything from FFmpeg, you are making the user get it, so there is nothing you need to do.
    – llogan
    Commented May 13, 2021 at 21:40
  • 1
    @NikolaLukic It is up to you, although it is always nice to credit any open source software that your project uses.
    – llogan
    Commented May 17, 2021 at 20:54

Not the answer you're looking for? Browse other questions tagged or ask your own question.