ffmpegapitroubleshooting

Which codecs does your FFmpeg API have? You can't ask, so probe

··9 min read
Which codecs does your FFmpeg API have? You can't ask, so probe

To find out which codecs an FFmpeg API supports, submit a trivial two-second job that calls the encoder you depend on and read the error: Unknown encoder 'libx265' means the vendor's build was compiled without that library, while a successful job proves it's there. You can't run ffmpeg -buildconf without a shell, so a probe job is the only way to inventory the codecs a hosted build actually has. That's the gap when your command works locally but dies on the hosted endpoint.

Which codecs an FFmpeg API has, and the two other facts to establish before you build on an endpoint

A command that works on your laptop and fails over HTTP is almost never a bad command. It's a different binary. Three properties of that binary decide which codecs you get and whether your pipeline runs, and none of them are usually published.

The version. FFmpeg 9.1 "Gauss" shipped on November 20, 2026 with a fully rewritten native AAC encoder (Phoronix). The rewrite changed bitrate control, stereo bit allocation and the psychoacoustic model, which means plain -c:a aac now produces different bytes and a different loudness profile than 9.0.x, with no warning and no flag change on your side (heise). Listeners are still arguing about the new encoder's output on the Hydrogenaudio forums, which is itself evidence the bytes moved. If a hosted service rolled from 9.0.3 to 9.1 last week, your audio changed and nothing in your job response said so.

The configure flags. FFmpeg's own documentation is blunt about this: external libraries are disabled by default, and each one needs its own --enable- flag at build time (FFmpeg general docs). libx264, libx265, libvpx, libfdk-aac and libfreetype are all opt-in. Two installs of "FFmpeg 9.1" can differ by a dozen encoders, so the codecs in a hosted build are a packaging decision rather than a property of the version number. libfdk_aac is the sharpest case: it requires --enable-nonfree, which makes the resulting binary nonfree and unredistributable (FFmpeg legal), so packagers decline it on licensing grounds. Arch's bug tracker has the refusal on record. That's why your -c:a libfdk_aac command runs on the build you compiled yourself and fails everywhere else.

The removals. FFmpeg 9.1 drops the asf_o demuxer. FFmpeg 9.0 hard-removed -vsync, -top, -filter_complex_script and every libnpp filter including scale_npp. A vendor whose docs still show a flag their deployed build no longer accepts will reject your options with an error that reads like your fault.

What the error string actually tells you

The status response from a failed job is the whole diagnostic surface you have, so learn to read it. Three strings sort into three different problems, and only one of them is about codecs.

Unknown encoder 'libx265' means the encoder name is correct and the binary was compiled without it. The canonical community diagnosis of this error, from an Arch Linux forum thread about libvo_aacenc, lands exactly there: the command is fine, the packaging choice is why (Arch BBS). Hosted encoding vendors' help centers tend to define this error as "an unsupported codec is specified," which quietly makes it your request's fault. It usually isn't.

No such filter: drawtext means the build lacks --enable-libfreetype. Without that flag the drawtext filter isn't compiled at all, which is reported on trac, FFmpeg's own bug tracker. If you're burning hook text or captions onto video, this is the single flag that decides whether the service can do your job.

Unrecognized option 'vsync' means the option was removed from the FFmpeg version running there. Different problem, different fix: rewrite the command, don't chase a codec.

And Invalid data found when processing input means the input, not the build. Don't go hunting flags for this one.

Run the probe before you wire the pipeline

The probe is one job, deliberately trivial, that does nothing except exercise the encoder or filter you're betting on. Take a two-second clip, submit it with your target codec, and read what comes back. On your own machine, where you do have a shell, four commands answer the question directly:

ffmpeg -version
ffmpeg -buildconf
ffmpeg -encoders | grep -E "libx265|libvpx|fdk"
ffmpeg -h encoder=libx265

Those flags are documented in FFmpeg's CLI reference: -buildconf prints the build configuration one option per line, and -encoders, -filters and -h encoder=<name> list what the build actually contains. They all assume a shell on the box running FFmpeg. Over HTTP you substitute a job:

# Probe: does this build have libx265?
curl -X POST https://api.ffmpeg-micro.com/v1/transcodes \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "inputs": [{ "url": "gs://YOUR_BUCKET/2sec-probe.mp4" }],
    "outputFormat": "mp4",
    "options": [
      { "option": "-c:v", "argument": "libx265" },
      { "option": "-crf", "argument": "28" }
    ]
  }'

# Then poll until completed or failed, and read the error
curl -X GET https://api.ffmpeg-micro.com/v1/transcodes/JOB_ID \
  -H "Authorization: Bearer YOUR_API_KEY"

Keep the probe clip tiny and keep one encoder per job. A probe with three unusual options tells you only that something failed. Run one for each of the codecs and filters you depend on: the video encoder, the audio encoder, the text filter, the output container. Four cheap jobs, four unambiguous answers.

Two details make the probe honest on this API. FFmpeg Micro runs a managed FFmpeg toolkit under a stable media API, so the version and build question belongs to the service rather than to you, and billing is per second of input video with failed jobs never billed. A two-second probe that fails costs nothing, and a two-second probe that succeeds costs two seconds of your 200 free tokens. There's also the playground if you'd rather fire the first one without writing the curl.

Also probe what a successful job produced, not only whether it ran. If your audio matters, pull the output and check the loudness, because a 9.0.x to 9.1 move passes every -c:a aac job and still changes the result. Our post on what you can extract from a video file covers reading those properties back.

When asking for the build is the wrong move

Probing a build is work, and it isn't always worth doing. Skip it when your job only touches the codecs every FFmpeg build has: H.264 via libx264 is in essentially every distributed build, as is AAC via the native encoder, MP4 muxing, scaling, cropping, trimming and concatenation. If you're compressing MP4s for TikTok or cutting clips, the build question is noise.

Probe when any of these is true:

  1. You need libx265, libvpx-vp9 or libsvtav1. All three are separate --enable- flags and all three are routinely absent.
  2. You need libfdk_aac specifically, which the nonfree requirement makes rare in anyone's hosted build.
  3. You need drawtext, subtitles burn-in, or anything that renders text, which depends on libfreetype and often a font file the service has to supply.
  4. You need NVENC or any hardware encoder, which depends on the vendor's GPU hardware as much as its flags.
  5. Your output has to be byte-comparable or loudness-matched against files you produced earlier. That's the case where a silent 9.1 bump hurts most.

Asking the vendor is also wrong when what you actually want is a pinned version. Most hosted services, this one included, deploy one managed toolkit, so pinning isn't on the menu. If byte-for-byte reproducibility across years is a hard requirement, run your own binary and pin it. Reproducible-build projects like alpha2-sh/ffmpeg-builds record the FFmpeg tag, every pinned third-party library and the full configure list read back from ffmpeg -buildconf, which is proof that publishing this is possible rather than burdensome. That's the trade: you own the build, and you own the twelve memory-corruption CVEs the NVD published against pre-9.1 FFmpeg on November 23, 2026, rated up to CVSS 9.2, which we covered in the FFmpeg 9.0.2 CVE list.

So before you commit a pipeline to any endpoint, run the four probes for the codecs and filters you actually need, and keep the probe jobs in your repo. Re-run them after anything in your output looks different, because that's the only version-change notification a caller of someone else's binary ever gets.

FAQ about checking a hosted FFmpeg build

Can I run ffmpeg -buildconf through a hosted API?

You can't run ffmpeg -buildconf through a hosted FFmpeg API, because that flag needs shell access to the machine running the binary and an HTTP caller doesn't have it. The substitute is a trivial transcode job that calls the specific codecs or filters you need, read through the job's error string.

Does "Unknown encoder" mean my command is wrong?

"Unknown encoder" almost always means the FFmpeg binary was compiled without that encoder's --enable- flag, not that your command or input file is wrong. The Arch Linux forum thread on libvo_aacenc is the canonical write-up of that diagnosis: correct name, incomplete build.

Can a video API change FFmpeg versions without telling me?

A managed video API can change FFmpeg versions under a running pipeline, and most don't announce it. FFmpeg 9.1's rewritten AAC encoder is the reason it matters now, since it changes the bytes and loudness of plain -c:a aac output while every job still returns success.

Does a failed probe job cost me tokens?

Failed jobs are never billed on FFmpeg Micro, so a probe job that comes back with "Unknown encoder" costs nothing. A probe that succeeds is billed per second of input video, so a two-second clip costs two seconds.

Which encoders should I assume are missing until proven otherwise?

Assume libx265, libvpx, libfdk_aac and libfreetype-backed filters such as drawtext are absent from any FFmpeg build until a job proves otherwise, because FFmpeg disables external libraries by default and each of those codecs needs its own configure flag. libx264 and the native AAC encoder are safe assumptions in practice.

Four two-second probe jobs, with failed ones never billed, is what it costs to know whether an endpoint has the codecs your pipeline needs. Sign up free and the quickstart runs the upload, transcode, poll and download for you with a temporary key, so your first probe takes a minute: no servers to run, no FFmpeg to install, free tier included, and it works from your code, from n8n, Make and Zapier, or from your AI agents.

About Javid Jamae

Founder & CEO at FFmpeg Micro

Javid is a software engineer, author, and entrepreneur with over 25 years of professional software development experience across enterprise, startup, and consulting environments. He founded FFmpeg Micro to make video processing accessible to developers through a simple, automation-first REST API.

Software EngineeringVideo ProcessingFFmpegCloud ArchitectureAPI DesignAutomation

Ready to process videos at scale?

Start using FFmpeg Micro's simple API today. No infrastructure required.

Get Started Free