Ch. 22 · Codec Patents, Licensing, and the Ecosystem

한국어日本語
8 min

Encoder Software Licenses: x264, x265, SVT-AV1

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.

Copyright license ≠ patent license

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.

SoftwareCopyright license (confirmed scope)Notes
x264 (H.264 encoder)GPLKnown to also offer a separate commercial license in addition to the GPL. Follow the project's official guidance for the specific terms.
x265 (HEVC encoder)GPL v2, or a separate commercial licenseThe x265 official site describes free use for non-commercial, research, and evaluation purposes under GPL v2, and explains that a commercial license is required for products that distribute the library without releasing source. Pricing is not public. The same guidance mentions that HEVC patents are licensed separately, through Access Advance and others.
SVT-AV1 (AV1 encoder)BSD-3-Clause-Clear + AOMedia Patent License 1.0Project documents state it is BSD-3-Clause-Clear from v0.9 on. The Clear version states explicitly that the copyright license does not grant patents, so patents are covered by the separate AOM patent license.
libaom (AV1 reference implementation)BSD-family + AOMedia patent licenseAn AOMedia project. Check the exact version in the repository's LICENSE and PATENTS.
dav1d (AV1 decoder)BSD-familyA VideoLAN project. Check the exact version in the repository.

'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.

How GPL and BSD differ: general background

  • GPL (copyleft): Known as a license that, when you distribute the software, requires the resulting work that includes that code to follow GPL terms as well (such as releasing source). Encoding your own video on your own computer is different from distributing a program that contains the encoder to others.
  • BSD (permissive): Known to let you include the code in a product without any obligation to release source, as long as you follow a few conditions such as keeping the copyright notice. It does not, however, mean 'patents are licensed too' (see the callout above).
  • The copyright of a video file is not affected by the encoder's license. It is generally understood that a video made with a GPL encoder does not automatically become GPL. For the exact interpretation, check the license text and a professional.

ffmpeg: what pulls in GPL

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.

Check your ffmpeg's build options and license
# 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"
In practice: when you put ffmpeg in a product

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.

GPLGPL

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.

BSD licenseBSD license

A permissive license that requires only minimal conditions such as keeping the copyright notice. Patents are handled separately.

CopyleftCopyleft

A licensing approach that requires derivative works to keep the same freedoms.

essentials / full buildessentials / full build

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'.

Check yourself

What does the fact that x264 is GPL mean?

Check yourself

Why does SVT-AV1 ship the AOMedia patent license document together with BSD-3-Clause-Clear?

Check yourself

Which is the right way to check whether your ffmpeg includes libx264 and is a GPL build?