You will learn#
- which FFmpegA free program that reads, converts and writes almost every video and sound format. build the image carries today, which build the Windows installer is made to carry, and where the source is;
- how the product finds an FFmpeg and refuses a risky one;
- which obligations come with the LGPL build.
The idea#
Stuarty runs FFmpeg only as a separate process. It never links FFmpeg, and the pixels of a frame are composed in Go. The FFmpeg that the container image carries is one pinned LGPL build from BtbN FFmpeg-Builds, downloaded by its exact URL and verified by SHA-256 when the image is built. It is configured without --enable-gpl and without --enable-nonfree, and the build fails if either appears in the configure line. The product ships no GPL component.
The pin of this release:
| Item | Value |
|---|---|
| FFmpeg version | n9.0.2-39-g7adfbe40dc-20261031 |
| Build release tag | autobuild-2026-10-31-12-59 |
| Build scripts commit | 5031c6f1082414e53688d39e521849905071070d |
| Corresponding FFmpeg source | FFmpeg source archive |
The licence text, the configure line and these source links are inside the image, in /usr/share/doc/stuarty/ffmpeg/ (LICENSE.txt, configure.txt and SOURCE.txt). The packages of the Debian base are listed with their licences in /usr/share/doc/stuarty/base-image-packages.txt.
The own build, and what ships today#
Stuarty also has its own FFmpeg build, made from the same FFmpeg source with the LGPL only. Its marker is --extra-version=stuarty<N> in the configure line, and doctor reports it as the flavour stuarty. It has no --enable-gpl, no --enable-nonfree and no OpenH264 compiled in, and it lacks some demuxers and filters that the BtbN build has (no Vulkan, CUDA, OpenCL, VAAPI, network or libass ones).
Be clear about the state of it:
- Published today: the pinned build above, from BtbN. The container image carries it. The release archives and the installers published so far carry no FFmpeg.
- Built, not published yet: the own build. The Windows installer of the desktop application is made to place
ffmpeg.exeandffprobe.exenext tostuarty.exeand the licence texts of the build inlicensesfmpeg-buildof the install folder, after it checks their digests. It does that only for a release whose pin (.config/ffmpeg.env) names the own build, and the signed assets come from the release workflow. The pin still names the BtbN build, so no installer carries FFmpeg yet. When one does, this page and the install page change with it. - OpenH264 is never carried. Software H.264 encoding with the own build needs Cisco's OpenH264 library, which you install yourself with
stuarty tools:install openh264(Stuarty tells you the size and the host first). Stuarty checks the file against its manifest and starts the own FFmpeg withSTUARTY_OPENH264_DIRpointing at it; you do not set that variable. Without it the own build has no software encoder, and a hardware or operating-system encoder is used when the machine has one.
How an FFmpeg is found#
The order is fixed:
STUARTY_FFMPEGandSTUARTY_FFPROBE. WhenSTUARTY_FFMPEGis set and unusable the server reportsE_FFMPEG_MISSING; it never falls back to another one, because you asked for that binary. Both must be absolute paths to files.- The FFmpeg that comes with the program, in the folder of
stuarty(ffmpeg, orffmpeg/ffmpeg, or../libexec/stuarty/ffmpeg). The Windows installer, once it carries the own build, puts it here. It wins over an FFmpeg on thePATH, and yourSTUARTY_FFMPEGwins over it. - The
PATH.
ffprobe comes from the same directory as ffmpeg. The product is tested on FFmpeg 9.0.2; another version is accepted with a warning and a version below 7 is reported as old. A missing required encoder, filter or muxer is E_FFMPEG_MISSING.
The licence of the chosen build is classified from its configure line as lgpl, gpl or nonfree. A bundled build must be lgpl, and doctor lists the flags that a distributed build must not carry. Your own build may be GPL, which is fine for your own use but not for anything you distribute, and libx264 is used only if you set STUARTY_ALLOW_USER_X264=true.
Quick start#
stuarty doctor --full
stuarty doctor --verifydoctor --full runs every check and prints the FFmpeg version, its licence class and the H.264 encoders found. --verify recomputes the digests of FFmpeg and of the downloaded helpers. It reports "matches the release" only for the pinned FFmpeg (the one in the image, or the pinned pair you place next to the program); any other FFmpeg is "your own build, not compared".
Common mistakes#
- Setting
STUARTY_FFMPEGto a relative path or to a directory: refused at start-up as an invalid FFmpeg path. - Shipping your own GPL FFmpeg inside an image you publish.
- Expecting the FFmpeg to be able to reach the network. It is never given a network address, and on Linux
STUARTY_SANDBOX=bwrapmakes the operating system enforce it.