# FFmpeg 8.0.3 allowlist for RecForge III. ONE FILE, ALL FOUR ABIs.
#
# ⛔ This line read "for RecForge III, arm64-v8a" until 2026-09-03, and the design of
# workstream 5 (its section on this file) went further: "workstream 13 will multiply every
# allowlist line by four". Both are wrong, and this one is the site where the mistake
# would be made. A registry of codec names is a property of the SOURCE and of ./configure;
# it has no architecture. What workstream 13 multiplied is the VERIFICATION, not the list:
# verify-all-abis.sh runs verify-symbols.sh once per committed ABI against this single
# file. DO NOT DUPLICATE IT PER ABI.
#
# ⚠️ What IS per-ABI is whether a name can be honoured: if an ABI fails to provide an
# allowlisted codec, its tier-1 check goes red -- a capability the product promises and
# one ABI does not deliver is a real defect, not a build detail. Measured at task 7: with
# `flac` mutated to a name FFmpeg does not know, all four ABIs went red, separately.
#
# Every name here MUST appear in `configure --list-{decoders,encoders,muxers,filters}` of
# the exact FFmpeg version being built. Names copied from RecForge II's FFmpeg 4.1
# list are not valid: wmv3_crystalhd was removed in FFmpeg 5.
#
# Demuxers are NOT filtered -- see section 3.1 of the spec. A demuxer parses a
# container and is small; a decoder carries tables and transforms and is large.
# RecForge II keeps all ~300 demuxers and still reaches 4.7 MB.

[decoders]
# --- audio the 28 declared types can contain -------------------------------
aac aac_latm ac3 eac3 alac flac
mp1 mp1float mp2 mp2float mp3 mp3float
vorbis opus wavpack
amrnb amrwb
# amrnb is FFmpeg's NATIVE AMR-NB decoder, and workstream 5 task 14 MEASURED that it does not
# agree with the platform's. Decoding the corpus AMR (signal-a.amr, 12.2 kbit/s), the two read
# the same bytes as:
#
#   platform : -17.66 -18.20 -18.25 -16.50 -18.39 -18.39 -15.36 -18.41 -18.41   dBFS per second
#   ours     : -17.41 -21.22 -20.89 -16.90 -21.51 -22.10 -15.11 -25.33 -26.05
#
# Up to 8 dB quieter, decaying with both time-within-a-tone and frequency. It is the DECODER and
# not the resampler: the same transcode with no rate change at all reproduces the decay (window 6
# apart, which differs by 0.48 dB). See Grid.SOURCE_WINDOW_PEAK_DBFS and
# docs/superpowers/plans/2026-08-07-chantier-5-mesures.md.
#
# THE CANDIDATE FIX IS A REPLACEMENT ON THIS LINE, NOT AN ADDITION -- swap `amrnb` for
# `libopencore_amrnb`, which is ALREADY BUILT: it sits in [encoders] below, so the library is
# linked and paid for and only its decoder is unreached. The distinction is the whole of it.
#
# CORRECTED 2026-08-09, branch review: this used to say that ADDING it "lets libavcodec's registry
# order pick which one avcodec_find_decoder returns -- an outcome nobody chose and nothing here
# pins". That understates it, and understating it makes the wrong edit look merely risky instead of
# useless. The order is DETERMINED, and it was verified against the pinned 8.0.3 tarball:
#
#   - allcodecs.c:440 declares ff_amrnb_decoder, allcodecs.c:795 ff_libopencore_amrnb_decoder;
#   - configure:4326 (find_things_extern) builds DECODER_LIST by sed-ing those declarations in
#     FILE ORDER, and configure:8469-8496 (print_enabled_components) emits codec_list.c in list
#     order, so the native one precedes the external one in codec_list[];
#   - av_codec_iterate walks codec_list[] by index, and find_codec (allcodecs.c) returns the FIRST
#     non-experimental match -- neither of these two carries AV_CODEC_CAP_EXPERIMENTAL.
#
# So ADDING `libopencore_amrnb` here CHANGES NOTHING: avcodec_find_decoder(AV_CODEC_ID_AMR_NB)
# still returns the native decoder, which is the call decoder.cpp and corpus_probe.cpp both make.
# It would only cost the archive space and leave the measured defect exactly where it is. Only
# REPLACING moves anything. Either way, re-measure the table above afterwards.
#
# IT IS NOT OBVIOUSLY RIGHT, which is why it is parked and not done. Nothing establishes that the
# platform's decoder is the correct one; what is established is that they differ. The corpus is
# pure steady sinusoids, the worst case there is for a CELP gain tracker and nothing like speech,
# so this says little about what a user would hear. Whoever recompiles should decide it on the
# merits, not treat it as a queued bug.
#
# WHAT THE REPLACEMENT BREAKS, so it is not discovered as a red build: the table above IS
# Grid.SOURCE_WINDOW_PEAK_DBFS for signal-a.amr. Change the decoder and those nine numbers change,
# every AMR cell's Expectation becomes a different object, and the grid digest moves --
# GridTest.theGridDeclaresExactlyWhatItDeclaredYesterday then fails and has to be re-pinned to the
# new value ON PURPOSE, which is the whole point of that test. Budget the re-measurement of the
# table and the re-pinning of the fingerprint as part of the change, not as fallout from it.
libspeex
wmav1 wmav2 wmapro wmalossless wmavoice
# --- PCM, every flavour a .wav or .mov can carry ----------------------------
pcm_s8 pcm_u8
pcm_s16le pcm_s16be pcm_u16le pcm_u16be
pcm_s24le pcm_s24be pcm_u24le pcm_u24be
pcm_s32le pcm_s32be pcm_u32le pcm_u32be
pcm_f32le pcm_f32be pcm_f64le pcm_f64be
# --- STILL-IMAGE decoders, for embedded cover art ---------------------------
# An ID3 or MP4 cover is an attached_pic stream. Without these the artwork
# silently disappears and nothing reports it. Section 3.1 b of the spec.
mjpeg mjpegb png
# --- deliberately ABSENT: h264 hevc vp8 vp9 av1 mpeg4 wmv1 wmv2 wmv3 --------
# Extracting audio from a video needs the demuxer and the audio decoder. The
# video packets are discarded undecoded. Section 3.2 of the spec.

[encoders]
flac wavpack wmav2
libmp3lame libopus libvorbis libspeex
libopencore_amrnb
pcm_s16le pcm_s24le pcm_s32le pcm_f32le pcm_u8
# --- deliberately ABSENT: aac, libfdk_aac -----------------------------------
# AAC is encoded by MediaCodec; FFmpeg only muxes it. Section 4.1 of the design.

[muxers]
ipod wav flac ogg mp3 wv amr mov opus spx asf
# opus and spx are Ogg variants: spx_muxer_select="ogg_muxer" and the opus muxer lives in the
# same oggenc.c that already carries ff_ogg_muxer. Naming "ogg" instead would produce Vorbis in
# a .opus file -- oggenc.c:768 gives the ogg muxer Vorbis as its default codec.
# asf_muxer_select="riffenc", already built for the wav muxer.
#
# ipod is the MP4 muxer variant that accepts the AAC packets MediaCodec produces.
# mov is listed explicitly, not left as an implicit side effect: configure's
# ipod_muxer_select="mov_muxer" forces it into the registry regardless of what this
# file asks for (confirmed present and REACHABLE in allformats.o's muxer_list, task 8
# round 3), so naming it here is what makes the registry check an exact match with no
# exception list, rather than a silent gap the check would have to special-case.

[filters]
# CORRECTED, workstream 5 task 11 (2026-08-08). This comment used to say "the five filter-based
# operations of workstream 5 need exactly four filters"; that was the plan's mapping, and the
# implementation measured it wrong for two of the five. What production actually uses is THREE:
#
#   concat     -- Append
#   amix       -- Overlay
#   aresample  -- never named in a description string AT THAT DATE. Since workstream 43 the voice
#                 denoiser's chain NAMES it (AudioFilter.VoiceDenoise: aresample=<48k>, then back to the
#                 output rate: arnndn only runs at 48 kHz), so the sentence below describes the
#                 graph's own insertion, no longer the only use. It is what avfilter_graph_config() inserts
#                 by itself once the abuffersink is constrained to the output EncodeSpec, one per
#                 branch and AHEAD of the combining filter (spec section 8's conversion rule), and
#                 it is what closes the AMR-NB defect the harness found on its first run.
#
# aselect and asetpts are KEPT, and have NO production caller. The plan mapped KeepSegment and
# DropSegment onto `aselect=between(t,from,to)` + `asetpts=N/SR/TB`. Measured, that cannot meet
# what the grid declares: aselect decides per WHOLE FRAME and never splits one (f_select.c's
# select_frame reads `t` off the frame's own pts), and libavformat's PCM demuxer hands out
# 4096-sample packets at 48 kHz (pcm.c:29-56), so between(t,3,6) yields 2986 ms where the grid
# declares 3000 against WAV's tolerance of ZERO. An exact window through filters alone needs
# `atrim`, and DropSegment needs `asplit` on top -- neither is here, and neither was added:
# operations.cpp counts samples in its own pump loop instead (PcmBuffer::trim), which is exact by
# construction and needs no filter at all. OperationsTest.theAselectRouteCannotHitTheExactWindow-
# TheGridDeclares pins the 2986 so this reasoning cannot rot silently.
#
# THE OPEN DECISION, left here rather than in a report that closes: whether aselect and asetpts
# leave this list at the next recompilation. They still have a caller in FilterGraphTest, they
# cost almost nothing, and dropping them is a scope decision nobody has taken.
#
# RULED 2026-08-08, by the author: PARKED UNTIL WORKSTREAM 9. Do not recompile for this alone.
#
# The reasoning, so nobody reopens it from scratch. Adding `atrim`/`asplit` to route KeepSegment
# and DropSegment back through the graph was considered and REFUSED: both routes are exact, and
# the filter route is the more complicated of the two (DropSegment becomes asplit + two atrim +
# concat where PcmBuffer::trim is one erase), buys nothing on memory -- the buffering is at the
# ENCODE stage, not the trim -- and nothing on streamability, since counting samples streams as
# well as filtering does. It would mean rewriting verified code for no measurable gain.
#
# What made this a park rather than a removal is that THE COST IS NOT THE FILTER, IT IS THE
# RECOMPILATION: 47 s of compute, but also re-committing binary archives into git. So the
# decision batches. Three filters are plausible for the product and none is here -- `afade`
# (fades), `volume` or `loudnorm` (normalisation), `silenceremove`. Workstream 9, the edit list,
# is the first thing that could want any of them.
#
# A FOURTH ITEM, added 2026-08-09 and the most concrete of the batch: `adelay`.
# Workstream 5 ported six operations because RecForge II had six, and `Overlay` mixes through
# `amix`, which starts every input at t = 0. Placing an extract at a POSITION in another -- an
# overdub, a cover over a backing track -- is therefore not expressible at all today, and the
# author named it as a capability the product must have. `adelay` is the filter that does it.
# Design section 9 carries the full gap and the two modes it splits into.
#
# ==> ITEM 1 DISCHARGED 2026-08-10: the filters were added and this file recompiled.
#     MEASURED, which was the point: libavfilter.a 247 616 -> 614 996 bytes, +367 380 for 24 new
#     filters, about 15 KB each, +7% on the final .so and still one EIGHTH of the 4 962 890 ceiling
#     that all 141 filters would cost. The four other archives each grew by exactly 176 bytes --
#     same value on four independent archives, so a config string and not code, BUT NOT VERIFIED.
#
#     The measurement was taken to answer "must we choose?", and the answer is no. Including
#     generously costs kilobytes; omitting one costs a full cycle -- recompile, re-commit binary
#     archives, re-pin two tests. Both pins were checked after this build and BOTH HOLD:
#     OperationsTest's 2986 ms is unchanged (device, 2026-08-10) and GridTest's fingerprint did not
#     move (JVM suite green) -- adding filters changes neither what aselect does nor what the grid
#     declares.
#
#     Product direction behind the list: design section 9, "Les fonctions audio avancées".
#
# ==> ITEMS 2 AND 3 REMAIN PARKED, deliberately not bundled with the above. Dropping aselect and
#     asetpts is cost without gain today; REPLACING the AMR-NB decoder is an open question on the
#     merits, and mixing it in would have made a settled gain depend on an unsettled arbitration.
#     Author's ruling, 2026-08-10.
#
# WHOEVER RECOMPILES NEXT owns this line: add whatever workstream 9 turns out to need, and drop
# aselect and asetpts in the same pass if they are still callerless in production then.
#
# WHAT DROPPING THEM BREAKS -- the list, so the batch can be costed instead of discovered:
#
#   - FilterGraphTest, named above, is the direct caller and stops compiling/passing;
#   - OperationsTest.theAselectRouteCannotHitTheExactWindowTheGridDeclares goes with it. It is the
#     test that pins the 2986 ms, i.e. the MEASUREMENT that justifies this whole paragraph. Delete
#     aselect and the reasoning above loses the witness that keeps it from rotting, so either the
#     test is rewritten against the recorded number or the paragraph is rewritten as history;
#   - ADDING filters breaks nothing by itself, but see the AMR-NB note in [decoders]: any change
#     to what the archive decodes moves Grid.SOURCE_WINDOW_PEAK_DBFS and therefore the fingerprint
#     GridTest pins.
#
# AND IN EVERY CASE, whatever this line becomes: re-run ThirdPartyLibs/verify-symbols.sh against
# the new archives before committing them. It holds this file and the archives to an EXACT match
# in BOTH directions, filters and protocols included since 2026-08-09 -- a name added here without
# a rebuild fails it as MISSING, and a filter left in the archive after being struck from here
# fails it as UNEXPECTED. It is one of only two guards, and it is the one that runs in CI.
#
# AND THERE IS NOW A SECOND ITEM IN THE SAME BATCH, added by workstream 5 task 14: whether the
# AMR-NB DECODER should become `libopencore_amrnb` instead of the native `amrnb`. The measurement,
# the candidate change and the reasons not to treat it as a queued bug are written beside `amrnb`
# in [decoders] above. It batches here for the same reason the filters do -- the cost is not the
# component, it is the recompilation and the re-committed archives.
aselect asetpts concat amix aresample
afade acrossfade volume adelay apad areverse
volumedetect loudnorm dynaudnorm speechnorm
arnndn afftdn silenceremove deesser highpass lowpass
acompressor alimiter agate
silencedetect ebur128 astats
#
# WORKSTREAM 43, 2026-10-24 -- the author's batch (Q5 of docs/2026-10-16-chantier-43-filtres-inscription.md,
# answered in docs/2026-10-24-decisions-auteur-chantier-43-et-premium.md). bandreject is the hum removal's
# notch, one instance per harmonic. equalizer, adeclick and adeclip have NO caller on purpose: the cost of a
# filter is the recompilation cycle, not the filter, so they ride this one instead of costing the next.
# bandreject and equalizer live in af_biquads.c, already linked for highpass and lowpass.
bandreject equalizer adeclick adeclip
#
# WORKSTREAM 43, same night, second pass -- atrim. afftdn and arnndn DELAY their content (1200 and 480 frames
# at 48 kHz, measured: docs/superpowers/plans/2026-10-24-chantier-43-mesures.md section 2) and never flush their
# tail. The author asked for a fix (2026-10-24): the chain pads the input end with apad and cuts the delay off the
# output start with atrim, so content keeps its place to the frame and the tail survives. atrim serves THAT only:
# KeepSegment and DropSegment still count samples in operations.cpp, as the [filters] reasoning above explains.
atrim
#
# WORKSTREAMS 59, 60 AND 61, 2026-11-10 -- one recompilation for three workstreams, on the workstream 43
# precedent (the cost is the recompilation cycle, not the filter). Who calls what:
#   sine anoisesrc anullsrc -- workstream 60 (silence and beep insertion): the generated segment is built
#                              from a sine (the beep), anoisesrc (a noise bed) and anullsrc (the blank).
#   aloop                   -- NO CALLER. The author asked for it for the room tone; the room tone instead
#                              loops its window in the pump (workstream 60, Task 4), which is exact to the
#                              sample. It rides this recompilation so a later need does not cost another.
#   pan                     -- workstream 61, callerless until that workstream runs.
#   atempo asetrate         -- workstream 59, callerless until that workstream runs.
sine anoisesrc anullsrc aloop pan atempo asetrate
#
# abuffer and abuffersink are deliberately NOT listed above -- they are not activatable
# components at all, and listing them here was wrong (workstream 5, task 1, round of correction
# 1). `configure --list-filters` never lists either name: libavfilter/Makefile puts
# buffersrc.o/buffersink.o in its unconditional OBJS block, never behind an
# OBJS-$(CONFIG_..._FILTER) guard the way every other filter above is -- so both are always
# compiled and always registered no matter what --enable-filter/--disable-filters ask for.
# Naming them on the line above made --enable-filter="...,abuffer,abuffersink" pass two names
# configure silently discards, exactly the silent-drop this file already warns about for codecs
# (configure:4495-4504) -- the archive was correct regardless (they compile in either way), but
# the file was misrepresenting how it got that way. They are the mandatory endpoints of any
# graph built through the API, and they are present -- confirmed under their real symbol names,
# `ff_asrc_abuffer` (the abuffer source) and `ff_asink_abuffer` (the abuffersink sink), in
# libavfilter.a's registry (docs/superpowers/plans/2026-08-07-chantier-5-mesures.md section 5.1).

[protocols]
file
