Skip to content

Troubleshooting

FFmpeg is not found

What E_FFMPEG_MISSING means, how the product looks for FFmpeg and how to point it at one.

Last updated:

You will learn#

  • what E_FFMPEG_MISSING covers;
  • the order in which the product looks for FFmpeg and ffprobe;
  • how to fix it on a binary install, with your own build and in the container.

The idea#

Import and export need FFmpeg and ffprobe, run as separate processes. The product reports E_FFMPEG_MISSING when it finds none that works, when the one you named in STUARTY_FFMPEG is unusable, or when the build lacks a required encoder, filter or muxer (details.missing lists them). Editing, the timeline and the text views work without it.

The search order is fixed: STUARTY_FFMPEG and STUARTY_FFPROBE first, then the FFmpeg that comes with the program (in the folder of stuarty), then the PATH. Today only the container image carries one; the Windows installer will, from the first release that pins the own build (FFmpeg, codecs and licences). When you set STUARTY_FFMPEG and it fails, the product does not fall back to another one, because you asked for that binary. ffprobe is taken from the same directory as ffmpeg.

Quick start#

  1. Run stuarty doctor --full. The ffmpeg.binary check shows the path and version it found, or the error.
  2. If none is found, install FFmpeg 9 (on Windows, a copy next to stuarty.exe is found first; the installers published so far do not place one) and make sure ffmpeg and ffprobe are on the PATH, or set both variables to absolute paths of files.
  3. Run stuarty doctor --full again: the version, the licence class and the H.264 encoder should show.
Terminal
export STUARTY_FFMPEG=/opt/ffmpeg/bin/ffmpeg
export STUARTY_FFPROBE=/opt/ffmpeg/bin/ffprobe
stuarty doctor --full

The container image carries a pinned LGPL FFmpeg and needs nothing; a Windows installer that carries the own build will need nothing either; see FFmpeg, codecs and licences for its source and how to verify it.

Common mistakes#

  • A relative path or a directory in STUARTY_FFMPEG: it is refused at start-up as an invalid path.
  • Setting the variable in a shell and starting the server from a service manager or a desktop shortcut, which do not see it. Set it where the server starts.
  • An FFmpeg that is much older than 9: a version below 7 is reported as old, and an encoder or filter may be missing. Another version is otherwise accepted with a warning.
  • Using a GPL or non-free build in something you distribute. The check classifies the licence from the configure line; see the licence page.
  • Expecting the error to name the encoder. A missing H.264 encoder is a different code: No H.264 encoder works.

Next steps#