Skip to content
9 min read

Silence is a payload: what a video-only stream owes its audio track

A scene with no audio in it still has to send audio, or the ingest never finishes negotiating. So we generate silence deliberately — and the interesting part is not that trick, it is the three separate bills it turned out to carry, the last of which arrived as a production incident nobody could diagnose.

Vyacheslav Pankratov· Fullstack Developer
Cover art for “Silence is a payload: what a video-only stream owes its audio track”
On this page

TL;DR: A scene with no audio still has to send audio. Our compositor mixes a silence generator into its audio path permanently, because WHIP negotiation blocks without audio — the ingest sits waiting for a track that a video-only layer never sends. That is a two-line trick with a three-part bill: a pad probe to stop the fake source breaking the mixer's latency arithmetic, a bus handler so its collateral death cannot take the program down, and — six days into a live season — a production silence that could not be diagnosed, because a pipeline that always emits silence can never report "no signal".

There is a class of design decision that looks free when you make it, costs a little when you ship it, and then sends a third invoice months later addressed to somebody who has never heard of it.

This is one of those, and the whole thing fits in a file you could read in a minute.

Why does a video pipeline need an audio track at all?

Because the far end will not finish negotiating without one.

We publish over WHIP — RFC 9725, WebRTC-HTTP Ingestion — and the sink element waits for audio data before it completes the exchange. That is reasonable behaviour from a protocol whose job is to ingest a media session. It is also a problem for a compositor whose scenes are frequently all video: an overlay, a title card, a camera with no microphone attached. There is no audio to send, so nothing is sent, so negotiation never completes, so nothing is published at all — including the video that was perfectly fine.

The fix is to stop treating silence as the absence of a payload and start treating it as a payload you have to produce. The audio path gets a permanent generator, wired into the mixer at build time:

# NOTE: audiotestsrc generates silence so that audiomixer always
# produces output.  Without this, whipclientsink blocks WHIP
# negotiation waiting for audio data when no layers have audio.
silence = Gst.ElementFactory.make("audiotestsrc", SILENCE_SRC_NAME)
silence.set_property("wave", 4)  # silence
silence.set_property("is-live", True)

That is the trick, and it is not the interesting part. This is folklore in streaming work; any engineer who has fought a stalled negotiation has reached for it. The interesting part is what it costs, and it costs three separate times.

The first two bills arrive immediately

A live source with no latency breaks the mixer. GStreamer's aggregator elements — audiomixer is one — reconcile the latency of everything feeding them so they can decide how long to wait before producing a buffer. A live source is expected to declare a range. GstBaseSrc defaults a live source's maximum latency to zero, which the mixer reads as "this input can tolerate no delay at all", and the arithmetic collapses.

So the fake source needs a pad probe that intercepts the latency query and answers it differently:

# NOTE: GstBaseSrc live defaults max_latency=0, breaking the
# audiomixer aggregator.  Override via pad probe.
query.set_latency(True, 0, Gst.CLOCK_TIME_NONE)
return Gst.PadProbeReturn.HANDLED

CLOCK_TIME_NONE is the point: the silence source declares it can wait indefinitely, which is true — it is generating nothing — and the mixer's arithmetic is restored.

A fake element can still fail, and its failure is not fatal. The audio source sits on a shared graph, so a flow error pushed up from a downstream branch can kill it as collateral damage. The default handling for a source error is to rebuild the pipeline, which for a live program means dropping every layer — every camera, every overlay — because a filler that produces nothing had a bad moment.

So the bus handler matches it by name and refuses:

if src_name == SILENCE_SRC_NAME:
    log.error("audio_silence_source_error_not_restarting", ...)
    return

Two small mechanisms, both defensible, both written the day the silence source was. Between them they say something the design did not intend to say: this pipeline is now structurally incapable of producing no audio.

A permanent floor is a permanent blind spot

The silence source exists so the sink will negotiate, and it succeeds — which means the master tap can never read no signal again. Every meter downstream of a permanently mixed generator reports a healthy floor whether or not a single real sample arrived. Whatever you add to keep a pipeline running, check what it makesunobservable before you ship it.

The third bill: six days of a production silence nobody could diagnose

Master program audio was effectively silent during live matches while the video was healthy. First observed 2026-07-16. Root cause attributed 2026-07-22.

The metering was working the entire time. Here is what it reported, on a single Prometheus scrape:

Metric Value What it means
compositor_audio_level_db ch0 ≈ −96 dBFS the 16-bit noise floor — silence, faithfully measured
compositor_audio_level_db ch1 −700 the negative-infinity sentinel
pipeline_state 3 PLAYING
output_bitrate 2,519 kbps publishing normally
output_fps 59.94 publishing normally

Prod logs on the same period read peak_dbfs = -90.31 at master_volume = 1.0 — full master gain, nothing arriving.

Every one of those numbers is correct, and together they say nothing about the cause. A silence floor is exactly what a working pipeline carrying a silent source looks like, and it is also exactly what a working pipeline carrying a muted layer looks like. The instrument could not distinguish them, because we had guaranteed years earlier that the instrument would never see true absence.

How do you tell a routing bug from a silent source?

Not from the metrics, which was the whole problem. The suspicion split two ways and neither branch could be closed by looking harder:

  • (A) source-side — the cameras carry no microphone signal at all;
  • (B) routing — the program layer reaches the master muted, which is entirely plausible, because every layer's mixer sink pad is initialised volume=0.0, mute=True on connect and only the program layer is ever unmuted.

The logic half of B was closed with tests — unit tests over the volume-application path, plus a real-GStreamer test proving that a mixer sink pad's volume and mute actually gate a sine wave through to a downstream level tap. That left B-as-configuration alive, and configuration is not something a test can rule out.

So instead of guessing, the code was made to answer the question itself. Four structured logs shipped as an A-versus-B discriminator, deployed 2026-07-20:

Log Fires when Which class
program_audio_not_connected the program layer has no audio pad wired B
program_audio_muted the program layer is routed muted B
program_audio_volume_zero the program layer is routed at volume 0 B
program_audio_silent_sustained routed audible, yet master peak stays below −80 dBFS for ~5 s A

Three on one side, one on the other, and the asymmetry is the design: any of the first three firing means we did it; the fourth firing alone means the source is silent.

On the next live program — 2026-07-22 — program_audio_silent_sustained fired, with zero program_audio_muted events and zero program_audio_volume_zero events on the same run.

Both halves are the evidence. The fourth log firing is an observation. The other two not firing, on the same program, is what turns it into a refutation: class B was not merely unproven, it was excluded by instrumentation that would have fired if it were true. Quoting only the sustained log would have been the same conclusion with none of the argument behind it.

The cameras deliver a present-but-silent audio track. A local stand confirmed it independently: bit- exact zero on four of them, and one that exposes no audio pad at all.

What we did not fix

The status on that post-mortem reads cause attributed, and the remaining work — providing a real audio source — is a separate open item. We shipped diagnostics, not a fix. The venue's cameras still deliver silence; what changed is that the system can now say so in one line instead of costing a week of two-sided suspicion.

That is worth being blunt about, because the tidy version of this story ends with a repair, and the tidy version would be false. The instrumentation is the deliverable. Whether it is a good deliverable is answerable: the next occurrence costs one log line instead of six days.

One more thing we did not do, and it is the honest limit on the numbers above: the sustained check only evaluates while a program is active. An idle system emits nothing, so we cannot tell you how long the stream was silent in total — only when it was silent while somebody was watching.

Ship the discriminator, not the guess

The fix that ended this incident was not a repair to the audio path — it was four log lines that tell the two cases apart. A real audio source is still separate work. When a failure is invisible by construction, the first shippable thing is the measurement that makes it visible, and it is worth shipping on its own.

FAQ

Isn't the real bug the cameras? Yes, and it is not the interesting one. Equipment that claims an audio track and delivers none is a procurement problem with a known shape. The engineering finding is that our own pipeline had made that condition undiagnosable, years before the equipment arrived, as a side effect of solving a different problem.

Why not just detect the silence source and subtract it? Because the silence source and a silent camera produce identical samples. There is nothing to subtract — the mixer output is the sum, and zero plus zero is zero. What the discriminator does instead is compare routing state against output level, which is the only place the two hypotheses differ.

Should we have avoided the silence generator? No. Without it nothing publishes at all, which is a worse failure that happens immediately rather than occasionally. The lesson is not to avoid the trick; it is that a permanent floor in a signal path is also a permanent blind spot in the instrument that watches it, and that consequence should be written down where the trick is, not discovered in production.

Would a "no signal" detector have caught this sooner? It is what we ended up building, in effect — the sustained-silence check is a no-signal detector that knows about routing. The reason it did not exist earlier is instructive: a metric that can never reach its floor looks healthy at the floor, so nobody writes an alert for a value the system is designed to always produce.

Three things worth taking away

  1. Some protocols make silence mandatory, so silence becomes something you produce. If your sink waits for audio, a video-only scene needs a generator — and that generator is now part of your signal path forever.
  2. A permanent floor is a permanent blind spot. Any constant you inject to satisfy a downstream consumer is a value your monitoring can no longer distinguish from failure. Write that down beside the injection, not in a post-mortem.
  3. When two hypotheses cannot be separated by the metrics you have, ship the discriminator rather than the guess. Four log lines, deployed on a Monday, closed on the next live program a class of cause that two weeks of reasoning had not. And the refutation needs both halves — what fired and what did not.

If something in your stack is publishing perfectly and saying nothing, that is a cheap thing to have looked at.

Was this helpful?

// Build it

Running this in production?

Audio has no idle — silence is something you generate, a 20 ms hole is audible, and anything that talks must choose what it will never say. Tell us where the sound goes wrong; we reply within a day with a concrete next step.