An encoder is software, so it has its own copyright license (GPL, BSD, and so on). x264 and x265 are GPL, while SVT-AV1 is BSD-family paired with the AOMedia patent license. We also look at how to check which encoders pull GPL into ffmpeg.
That x264 is GPL is a statement about the terms under which you can use and distribute the source code (copyright). Permission for the patents attached to implementing the H.264 specification is separate. The GPL text does not waive patent royalties. This distinction is the whole point of this lesson.
This site's measurement posts were run with software encoders such as x264, x265, and SVT-AV1 (CRF sweep measurement). Each of these encoders uses a different copyright license. The summary below includes only what can be confirmed in public project documents, and it may change from version to version.
'Confirmed scope' means what was confirmed in public project documents. Licenses have changed between versions (for example, SVT-AV1 was BSD-2-Clause before v0.9). Read the LICENSE file for the version you use.
ffmpeg itself is known to be LGPL by default, and to enable GPL encoders such as libx264 and libx265 you must build it with `--enable-gpl`. The whole ffmpeg binary built that way then falls under GPL terms. You can check how your own ffmpeg was built with a single command.
# Shows the build configuration (--enable-gpl, --enable-libx264, --enable-libsvtav1, etc.)
ffmpeg -version
# Prints the license text this build is under
ffmpeg -L
# Check x264, x265, and svt-av1 in the list of available encoders
ffmpeg -hide_banner -encoders | grep -E "libx264|libx265|libsvtav1"Running ffmpeg on a service's server and only sending out video is different, in license obligations, from distributing an app or device that contains ffmpeg or an encoder. In the latter case, review the build options (whether it uses only LGPL or includes GPL encoders) and the obligations of those licenses, and check with a lawyer if needed. This site does not determine specific obligations.
GNU General Public License. A copyleft license that requires the resulting work to follow the same terms (such as releasing source) when the software is distributed.
A permissive license that requires only minimal conditions such as keeping the copyright notice. Patents are handled separately.
A licensing approach that requires derivative works to keep the same freedoms.
The two kinds of Windows FFmpeg build distributed by gyan.dev. That site's guidance says to switch to the full build if you get Unknown encoder. To see which encoders a build contains, use the tool 'Check Your FFmpeg Build'.
What does the fact that x264 is GPL mean?
Why does SVT-AV1 ship the AOMedia patent license document together with BSD-3-Clause-Clear?
Which is the right way to check whether your ffmpeg includes libx264 and is a GPL build?