diag: name the build's media capability; docs(GUIDE): the ffmpeg row

An AUTO probe that misses leaves one STATUS line in the configure log,
and the engine boots green and 500s every media request; the startup
report -- the part of a log to paste into an issue -- said nothing about
the capability that decides it. mm::decoder_version() names it (the
libavformat version, or "absent (built without libav*)"), reported on
the startup report and /diagnostics (hardware.host.media), and GUIDE
1.1 lists the five -dev packages, the RAD_WITH_FFMPEG tri-state and the
symptom.
This commit is contained in:
griffin-warrior authored and StillDeadcode committed 2026-10-28 11:37:31 +01:00
1 parent 0bb00a836d
commit 1720ed3f4a
6 files changed
+23

No files matched your search

+5
View File
@@ -36,6 +36,11 @@ struct FrameRGBA {
/* Whether this build has a decoder. */
bool decoder_available();
/* "libavformat <version>" when the decoder is built in, "absent (built without libav*)"
* when it is not: one string for the startup report and /diagnostics, so a media 500 can be
* read off the report instead of bisected. */
std::string decoder_version();
/* The first frame of an image (or of anything with a video stream). Refuses a source over
* `max_pixels`, which bounds what a request can make the server allocate before any resize. */
int decode_image(const uint8_t* data, size_t n, int64_t max_pixels, Frame* out, std::string* why);