Repository navigation
Description
What happened?
On .fastZap loopback live joins the first manifest is gated on a 9 s holdback, because the served TARGETDURATION resolves to 3 s — even though the producer cuts segments of exactly 2.000 s. ceil(maxEXTINF) alone would give 2 and a 6 s holdback.
Measured on an Apple TV 4K over two runs of 8 tunes each (same channels, same order): the extra depth costs 1.07–1.09 s of wall clock on 7 of 7 native tunes, against a total press-to-motion of ~4 s. The consistency is the point — this is not jitter, it is a fixed toll on every zap.
Reconstructed per tune from the producer's own live seg-N finalized timestamps, i.e. when the gate would have opened at a 6 s holdback:
| tune | 9 s holdback reached | 6 s would have been | delta |
|---|---|---|---|
| 1 | 3.87 s (5 seg / 10.0 s) | 2.79 s (3 seg) | 1.08 s |
| 2 | 3.66 s | 2.59 s | 1.07 s |
| 3 | 4.09 s | 3.02 s | 1.07 s |
| 4 | 3.67 s | 2.59 s | 1.08 s |
| 5 | 2.83 s | 1.74 s | 1.09 s |
| 6 | 3.54 s | 2.46 s | 1.08 s |
| 7 | 4.24 s | 3.15 s | 1.09 s |
The gate line, identical in shape on every tune:
first live manifest served after 2.940s: 5 segments / 10.000s >= 9.000s holdback (TARGETDURATION 3s)
Where the 3 comes from, by elimination
LiveEdgePolicy.targetDurationSeconds takes max(ceil(maxEXTINF), ceil(1.5 × cutTarget), ceil(cadenceFloor)), then LiveTargetDurationSeal freezes it for the session.
maxEXTINFis exactly 2.000 s. Not rounded in the log: 19 consecutive segments reportstart=0.060 / 2.060 / 4.060 / … / 38.060, so there is no sub-millisecond excess accumulating anywhere. →ceil= 2.cutTargetis 0.5 under.fastZap. →ceil(0.75)= 1.
That leaves cadenceFloor (LiveCadencePolicy.targetDurationFloorSeconds, the monotonic max of observed arrival cadence) as the only term that can produce 3, so the observed cadence must have exceeded 2.0 s at seal time.
Which is the part I cannot see from outside, and the reason I am asking rather than proposing: at the moment the first playlist is built (~3 s after load) the source is still bursting, handing over segments at ~0.5 s intervals. Whatever observation lifted the floor past 2.0 is not visible in the host-side log.
The general shape seems worth a thought independently of my source: for any origin whose GOP is exactly 2.000 s, a realtime arrival cadence of ~2 s plus jitter makes ceil() land on 3 essentially always. Such a source can hardly ever reach TARGETDURATION 2, and pays 3 extra seconds of startup depth for it.
The design question
The same number serves two purposes that want different values:
- Patience — AVPlayer's unchanged-playlist tolerance is
1.5 × TD, and the floor exists so that tolerance covers the real inter-batch gap (Bursty-ingest detection trusts self-reported TARGETDURATION, not observed cadence -- LL-HLS blocking-reload stays enabled and stalls with -15410 #167). For a ~2 s cadence,TD = 2already buys 3 s of patience. - Startup depth — the first-serve gate demands
3 × TDof media behind the edge, so the initial seek to edge-minus-holdback lands inside the window (AE#189).
Coupling them means a fast-but-jittery origin pays the startup toll for a patience requirement that only needed the 1.5×. Would it be defensible to let the gate use ceil(maxEXTINF)-derived depth while the served TARGETDURATION keeps the cadence floor for patience? I am not proposing that as the answer — the two numbers are advertised in the same playlist and AVPlayer derives its own holdback from the advertised TD, which is presumably exactly why they were tied together in the first place.
Steps to reproduce
LoadOptions:isLive = true,liveJoinProfile = .fastZap,liveBlockingReload = false,maxConcurrentSourceRequests = 1, nodvrWindowSeconds.load()a raw MPEG-TS live source with a 2.000 s GOP delivered over HTTP behind a redirect chain (IPTV panel → edge).- Read
first live manifest served after …and compareTARGETDURATIONagainst thelive seg-N finalized: … dur=values.
Environment
- AetherEngine 6.54.0, Apple TV 4K (3rd gen), tvOS 26.6, host: Syravo (tvOS).
- Source: Xtream raw MPEG-TS, 720p50 h264 + AAC,
dispatch → native(loopback). - The origin is not strict-realtime at join: it hands over a backlog burst at 4.4–5.3× realtime (seg-0 through seg-10 in 5.6 s), settling to the 2 s cadence from seg-11. So the 3 extra seconds of media cost roughly one second of wall clock, at a ratio of about 1:4.5. A strict-realtime origin would pay the full 3 s.
Unrelated, but from the same run
The AE#446 withdrawal fired in the field and did what it says: #446 source stopped delivering (no segment finalized for 4.8s, TARGETDURATION 3s); withdrawing CAN-BLOCK-RELOAD. Also confirms this origin has real delivery gaps well past its cadence.
Split out of #440, where this surfaced while measuring the live-join tail: the join hold discussed there turned out to be AVPlayer waiting for this manifest rather than holding on buffered media.
Happy to run a patched build or hand over full per-tune logs.
Activity
superuser404notfound commentedon Aug 28, 2026
Both halves of this are real, and the term that could not be seen from outside was not doing what either of us assumed. Fixed on
main(c8e8d805), and the derivation is printed once per session now, so this class of question is answerable from a log instead of by elimination.Where the 3 came from
The elimination pointed at
cadenceFloor, and that was the right term. It was not an observation of the source, though. Four things pushed it up, and two of them are the engine measuring itself.1. The advert seeded the floor.
LiveCadencePolicywas built withinitialFloorSeconds: liveIngest?.upstreamTargetDurationand started its running max at that value, so a self-declared 3 was the floor before a single segment had arrived. That is the exact number the class exists to distrust: #167's premise is a relay that advertises a normal TARGETDURATION while delivering in batches, so the seed never protected the case it was written for, while it cost every padded origin3 xits padding at the gate. The advert is now printed and derived from nowhere.2. The poll interval was half that same advert.
refreshInterval = min(6, max(1, media.targetDuration / 2)), so an advertised 3 sampled a 2.000 s origin every 1.5 s. Arrivals then quantize upward, because some polls see nothing and the interval the meter closes is 3 s. Measured here on a 2.000 s fixture advertising 3, three joins:measured floor 3.133son one of them,2.000son the other two. The poll now runs at half the segment duration the upstream actually served, bounded above by the advert. Five joins after that change: floors 2.049 to 2.142 s, none above.3. The floor read the gap that was still open, from inside the gate that was holding it open.
observedCadenceismax(closed intervals, time since last arrival). The open-gap term is right for judging a source that has gone quiet and wrong for a value sealed insidewaitForFirstLiveSegment, where that gap is the engine's own wait. It also feeds back: a wider gap raises the floor, a higher floor raises TARGETDURATION, and3 x TDof holdback makes the gate wait longer still. Three consecutive joins on the same fixture and the same source, before the change: TARGETDURATION 3, then 4, then 4, holdback 9 s, 12 s, 12 s. The floor now takes closed intervals plus the longest segment the upstream really served, neither of which the engine can inflate by waiting.4. And the general point in the report is exactly right, at the last step. "A realtime arrival cadence of ~2 s plus jitter makes
ceil()land on 3 essentially always." It did, and the multiplication sat in the wrong place. A cadence entered TARGETDURATION asceil(gap), which asks for1.5 x gapof unchanged-playlist patience and, through the holdback,4.5 x gapof startup depth. Nobody chose that margin, it came from treating an arrival interval as if it were a segment duration. It now enters as the value its patience needs,ceil(gap / 1.5), because1.5 x TDis the tolerance the floor answers to. The conservatism stays where it is already paid for: the meter reports the max over a trailing window of 8 intervals, not the mean, so what is handed in is a worst case to begin with.Worth recording that this repo had already measured the effect and drawn the wrong conclusion from it. From
docs/cli.md, AE#374: "Removing the padding changes nothing ... a strict-realtime origin's real inter-arrival gap is always a hair above the nominal cut, so theceillands oncut + 1whether or not the origin advertises it." The observation was right, and then read as "so there is nothing to pay" instead of "so theceilis wrong".The design question
They stay coupled, and the reservation in the report is the reason.
HOLD-BACKmust be at least3 x TARGETDURATION(RFC 8216bis), AVPlayer derives the same default itself when a playlist does not state one, and a first serve shallower than that holdback lands the initial seek in AVPlayer's stall-danger zone, which is AE#189. So the gate cannot be given one depth while the playlist advertises another. The only honest lever is TARGETDURATION itself, which is why all four changes are about the evidence it is derived from rather than about the coupling.What it says now
Same fixture, same source, five joins:
TARGETDURATION 2, holdback 6.000 s, every time.What would be worth measuring there
Per tune, the seal line and the first-serve line. On that shape (2.000 s segments, advert 3) the gate should ask for 3 segments / 6.000 s where it asked for 5 / 10.000 s, so the 1.07 to 1.09 s should come back as roughly that at the measured 1:4.5 burst ratio. And if a tune still seals above 2, the line now names which term carried it, which is the part that was missing.
Not released yet, this is on
main. I will comment here when it ships.tschuegy commentedon Aug 29, 2026
Ran the patched build on the device before the release,
origin/mainat 5d35d58 (so withc8e8d805and61dd2530), Apple TV 4K, same 8 channels in the same order as the report, twice.The four fixes all landed. The seal line reports
measured floor none yeton every tune: no advert seed, no poll quantization, no gap read from inside the gate. The term that was doing the inflating is gone.And the holdback did not move. Same 9 s, same 5 segments, on every native tune of both runs:
The new line is what makes this answerable, because it contradicts itself.
targetDurationSecondsismax(ceil(maxEXTINF), ceil(1.5 x cut), cadence), and the terms it prints aremax(ceil(2.000), ceil(0.750), -)= 2. It sealed at 3. Soceil(maxEXTINF) = 3, which needsmaxEXTINF > 2.0, while%.3fprinting2.000needsmaxEXTINF < 2.0005.I rebuilt with
debugDescriptionon that value. Identical on all three native tunes of run 2:One ulp above 2.0.
ceiltakes it to 3,3 x TDtakes that to a 9 s holdback.Where the ulp comes from
reportLiveSegmentFinalizedderives EXTINF asnextStart - startSeconds, a difference of two accumulated item-axis doubles. Probing both operands at full precision, on a strictly 2.000 s GOP:The starts carry different representation error, so most differences are exactly 2.0 and some land one or four ulp above. Across run 2: 74 segments at exactly
2.0, 3 at2.0000000000000004, 3 at2.0000000000000018.The seal takes the max over the window, so it only takes one. On tune 1 that was
seg-1, i.e. inside the first five the gate was already holding for. A 2.000 s origin therefore reachesTARGETDURATION 3essentially always — which is the "essentially always" from the report, but the mechanism isceilover accumulated float, not the arrival cadence. My own "maxEXTINF is exactly 2.000, no sub-millisecond excess" was read off the same%.3foutput and could never have excluded an excess below 0.5 ms. Your fixture cuts a duration that is binary-exact, which is presumably why five joins there seal at 2.What it still costs
Reconstructed from the producer's
live seg-N finalizedtimestamps, when a 6 s holdback (3 segments) would have opened the gate, run 2:Unchanged from the 1.07-1.09 s in the report.
One tune in the set cuts 0.960 s segments and behaves correctly throughout:
sealed at 1s (holdback 3.000s): max EXTINF 0.960s, served after 1.033 s withfastZap bounded start after 0.960s grace.0.960accumulates to0.9600000000000001, whoseceilis 1 either way, so it never shows the effect.No stalls or dropped frames attributable to the change in either run. Two channels failed on both runs with upstream
407s (the target this session dropped and the source minted again) — that is my provider restarting, unrelated to this.Not proposing the shape of the fix, since where the tolerance belongs is your call: the duration could come out of the PTS domain as a rational, or the
ceilcould be taken on a value rounded to a sane resolution first. Happy to re-run either against the same channels.superuser404notfound commentedon Aug 29, 2026
That is the whole of it, and the probe is what made it findable:
%.3fcould never have printed the difference, and elimination could not have reached a term that only exists 4e-16 above the one being printed. Fixed onmain(c1c0a352, merged10f64044).Where the tolerance went
To the resolution the playlist actually serves.
#EXTINFis written with%.3f, so a millisecond is the finest distinction any client can read, and nothing below it may decide anything. Every term of the derivation is now taken there:max EXTINF, the cut-target floor, and the cadence floor. The rounding matches the formatter (ties away from zero), so the value is never below what the playlist prints and the promise still covers every segment that was handed out. A real excess is untouched: 2.0006 s still seals at 3, and 5.76 s still seals at 6.The PTS-domain option was the other candidate and it fixes less. The starts are accumulated on the item axis, not only converted from ticks, and the same
ceilsits in front of the cut-target floor and the cadence floor, neither of which comes from a PTS at all. A cadence of3.0000000000000004divided by 1.5 lands one ulp above 2 and used to ask for a third second of patience the same way.The half that was hiding behind it
Sealing at 2 is what exposes it. The gate then wants exactly three 2.000 s segments, and the sum of three accumulated durations lands a hair BELOW 6.0 for some first-segment starts: a first start of 0.030 s does, the 0.060 s in the report does not. Judged raw, the gate would have held for a fourth segment it does not need, a full extra segment duration, on some sessions and not others. So the fix would have paid back about half of what it removed, intermittently, in a way no log line would have explained. The cushion check and the first-serve account now use the same served resolution as the value they are checked against.
Two places rebuilt the derivation by hand (the subtitle rendition's VOD branch and the whole-program sideload); both call the shared one now, for the reason
61dd2530already found.Why this harness never saw it
Its fixture starts the first segment at exactly 0 and cuts a binary-exact duration, so every difference is exactly 2.0 and five joins in a row sealed at 2. Exactly the reading in the report. The case lives in the test suite instead, built by accumulating the way the producer accumulates, and one of those tests asserts that the seal line adds up to the number it reports, which is the contradiction this round started from. It fails against the old code with the line reproduced verbatim:
Worth capturing on the retest
Per tune, the seal line and the first-serve line again. On that shape they should read
sealed at 2s (holdback 6.000s)and3 segments / 6.000s >= 6.000s, which at the measured 1:4.5 burst ratio should return the 1.07 to 1.09 s. The 0.960 s channel should be unchanged (sealed at 1s, served after ~1.03 s). And if any tune still seals above 2, the line names the term that carried it, without a rebuild this time.Agreed on the two
407s, that is the provider minting a new target and unrelated to any of this.Not released yet: this goes out together with the AE#446 outage work, so the version number will be the same one. I will comment here when it ships. Thanks for going back to the device with a probe build rather than stopping at the log, that is the only reason this round had an answer.
superuser404notfound commentedon Aug 29, 2026
Shipped in 6.56.0, both rounds: the four floor-evidence fixes and the served-resolution derivation that the ulp probe made findable.
On the reporting shape the seal and first-serve lines should now read
sealed at 2s (holdback 6.000s)and3 segments / 6.000s >= 6.000s, which at the measured 1:4.5 burst ratio should give back the 1.07 to 1.09 s. The 0.960 s channel should be unchanged (sealed at 1s, served after about 1.03 s). If any tune still seals above 2, the line names the term that carried it without a rebuild.tschuegy commentedon Aug 29, 2026
Retested on the device against 6.56.0. Apple TV 4K, same portal and same channel set as the two earlier runs, twelve tunes.
The seal reads what you predicted, on every tune
Four native tunes cutting 2.000 s, all identical apart from the wait:
Served after 1.173 / 2.527 / 2.391 / 1.209 s. Every printed segment duration in the whole run is
2.000s, and no seal in the session went above 2.The 0.960 s channel is unchanged, as predicted:
sealed at 1s (holdback 3.000s): max EXTINF 0.960s, served after 0.151 s with 4 segments / 3.840 s. Faster than the ~1.03 s you expected only because that origin handed seg-0 through seg-3 over in 32 ms on this join.The holdback saving is there, reconstructed the way the report did it
From the
live seg-N finalizedtimestamps: seg-2, where the gate opens now, against seg-4, where a 9 s holdback would have opened it.1.00 to 1.09 s against the 1.07 to 1.09 s in the report. The term is gone.
What reaches the viewer is less than that, and it is not this issue's fault
On the two tunes where the gate opened fastest, the wall clock did not follow it, because a second gate of almost exactly the same size was sitting underneath the holdback the whole time. Tune 1, timestamps from
[NativeAVPlayerHost] #1:So press to first picture went to +1.93 s, and press to motion stayed at +2.82 s: 0.89 s of still picture where the slow-gate tunes of the same run show 55 to 66 ms. On tunes 3 and 7 the criteria cap expired while the manifest gate was still holding, so it cost nothing and the seal is still the term that decides. The two are now within ~100 ms of each other and whichever finishes last releases the rate.
That half is not #447, so I have filed it separately as AE#449 with the nine criteria gates of this run.
AE#440 turns over as a consequence of this fix
The lever now fires. Two of the four native tunes:
Under 6.55.0 that was 0 of 8 on this path, always
ahead 0.00s, empty=true, because the gate had not served yet at the moment the decision was taken. A 6 s holdback serves 1.2 s in, so byToMinimizeStallsthe item holds 5.97 s and the guard admits. The two slow-gate tunes still readempty=trueand still refuse, correctly. I will put that in #440 as well.The number you asked for there, press to first picture and press to motion on the 0.960 s channel, I could not get: that session never rolled.
ToMinimizeStallsat t+1.85 s withbuffer ahead 0.00s, empty=false, then the source stopped (#446 source stopped delivering (no segment finalized for 1.6s, TARGETDURATION 1s)and a CoreMedia-12888on the media playlist), twelve seconds with no picture, and I left the channel. It needs a run on a healthy origin.Provider health, because it contaminates any wall-clock comparison
This morning the origin was delivering badly: fourteen
[AVIOReader] slow readevents in seven minutes, 2.8 s to 14.0 s, across both of the portal's addresses. One channel spent 14.0 s inside the container open, ran into my own startup timeout and landed on the software route on the retry. That is why I am reporting the saving as the seg-2/seg-4 reconstruction rather than as press-to-motion deltas between runs: those are dominated by how the origin felt at the time.Unrelated to any of that, and worth having on record: the AE#446 rejoin work in this same release is confirmed in the field on day one. Twice in this run the window ran dry and came back, and both times
Under 6.55.0 that is the clamp case you described, and the timeshift would have been gone.
fix(display): a rate the panel already runs is not a switch to wait out
superuser404notfound commentedon Aug 29, 2026
Both numbers confirmed, and the seal line in that retest exposes something about itself that I have to correct.
Confirmed
sealed at 2s (holdback 6.000s)with3 segments / 6.000s >= 6.000son every native tune, and the seg-2 against seg-4 reconstruction returns 1.00 to 1.09 s against the 1.07 to 1.09 s the report measured. The term is gone. The 0.960 s channel is unchanged as expected, and the 0.151 s there is that origin handing over four segments in 32 ms, so it is the gate having nothing to hold rather than the gate being fast.measured floor none yetis wrong on that source, and it is wrong in my directionThere is no meter on that path at all. The cadence meter is built only where the host's reader conforms to
LiveIngestSourceInfo, that is where an upstream hands over finished segments whose arrival intervals can be observed. A raw MPEG-TS source is cut here, so there are no arrivals to observe, no floor, and no advert either, which is why the line carries noupstream advertisesclause on those tunes.none yetis simply what it printed for a nil value, and it reads as a measurement still to come.Both device runs read it that way, and so did the round-2 sentence that the four floor fixes had landed and taken the inflating term with them. They had not landed anywhere near that source. The advert seed, the poll quantization and the gap read from inside the gate all live in
LiveCadencePolicy, and no such object was ever constructed for those sessions. On that device the entire 1.08 s was the ulp above 2.0, from the first run to the last. The four fixes are real for ingest sources, and round 2 is the one that paid here.Fixed on
mainin44f5dbd7. Three states instead of one nil, withnone yetkept for the single case it was ever right about, an ingest session before its first closed interval. On this source class the line now readsNothing about the served value moves. A value can only exist where a meter does, and both absences feed the max as nothing, which is what the added test pins.
What that leaves for patience, since it is the same number
TD 2 buys 3 s of unchanged-playlist tolerance where TD 3 bought 4.5 s. The origin in this report goes quiet past both, its own
#446 source stopped delivering (no segment finalized for 4.8s)line says so, so this did not create the exposure, but it does shorten the fuse.A meter for cut sources is buildable and would not help. The evidence would be the finalize timestamps the no-cut watchdog already reads, but TARGETDURATION is sealed at the first serve, three finalizes into a join burst, so it would measure the burst and say nothing about the quiet stretch that follows, and RFC 8216 forbids moving it afterwards. The quiet stretch belongs to #446, and since 6.56.0 the answer there is serving the window as the finite asset it has become instead of letting the reload time out against it.
Which is also where the 0.960 s channel went. At a join there is no resident runway ahead of the viewer, so there is nothing to convert and
-12888is what remains. If that channel does it again on a healthy origin, the seal line together with the finalize lines around it is what I would want.The three side threads
mainin5b461b07. The gate reads the panel per tick now instead of waiting the cap out, so a rate-only write for a rate the display already runs settles at once. The observation that the two gates are now within about 100 ms of each other is exactly why it was worth splitting out.ahead 5.97son the joins the holdback shortened is the intended consequence, and the two slow-gate tunes still refusing atempty=trueis the guard doing its job rather than an inconsistency.The provider health in that run is a fair reason to report the saving as the finalize reconstruction rather than as press-to-motion deltas, and the two
407s stay what they were.Not released, this rides along with the next version. Leaving this open until the new line has been read on a device, since that is the only part of it nobody has seen yet. Thanks for taking the whole set back to the device twice.
diag(live): read the join hold's bound while it stands, not only at i…
superuser404notfound commentedon Aug 29, 2026
Shipped in 6.56.1 (
44f5dbd7), the round-3 correction to the seal line.On that source the line now reads
none yetsurvives only for an ingest session before its first closed interval, which is the one case it ever described. The served value is unchanged, so nothing in the numbers already confirmed moves.tschuegy commentedon Aug 29, 2026
The new line has been read on a device, 6.56.1
Apple TV 4K (3rd gen), tvOS 26.6, one two-minute run, 11 tunes, 6 of them native. Every native tune sealed, and all six read the corrected line:
none yetappears zero times in the whole capture, which is the right answer for a run with no ingest source in it. The served value is unchanged, so the 1.00 to 1.09 s I confirmed last round stands as measured.A second channel in the same run cuts at a different length and seals the same way:
and once with
5 segments / 6.480s. The holdback arithmetic behaves the same on 1.920 s segments as on 2.000 s ones.The spread on "first live manifest served after" across six native tunes is 0.016, 0.020, 0.023, 1.218, 1.282 and 1.908 s. The three fast ones are the origin handing over its burst immediately, and with the criteria cap gone in 6.56.1 (see #449) one of them turned into motion at
t+0.12son the host clock. So the value this seal work bought is now visible end to end rather than only in the reconstruction.Nothing here needs anything further from me: the wording distinguishes the two absences, and the reading that made me credit the four floor fixes on a source that has no meter is not available any more. Happy for this to close.
On the shorter fuse you flagged, TD 2 buying 3 s of unchanged-playlist tolerance where TD 3 bought 4.5 s: the run did hit exactly that stretch once, and #446 answered it rather than the seal. Noted there.
superuser404notfound commentedon Aug 29, 2026
Read on a device on both source shapes, and
none yetgone from a run that has no ingest source in it, which is the part nobody had seen. The 1.920 s channel is a useful second case: the seal arithmetic is doing max EXTINF against the cut target rather than pattern matching a 2 s cadence, and4 segments / 7.680sand5 segments / 6.480sare it accounting in the served resolution on both.The
first live manifest served afterspread of 0.016 to 1.908 s across six tunes is the honest picture now. Three of those are the origin handing over its burst immediately and the gate having nothing to hold, and one of them reaching motion att+0.12sis the whole point of the term being gone.Closing this. The shorter fuse belongs to #446, where it was answered on the same run, and the two side threads carry on where they are.
Thank you for taking this back to the device three times, including once for a line that changed no number at all.
AttiK22 commentedon Sep 6, 2026
Reopening candidate from a third host: the same first-serve gate, but on a source
that cuts 5.000 s segments, where the join does not merely start late — it never
starts at all.
AetherEngine 6.66.0 (so with everything from 6.56.x in). Both iOS 26.6.1
(iPhone) and tvOS 26.5 (Apple TV), identical behaviour on both. Xtream raw
MPEG-TS over HTTP, h264 1080p50 + AAC,
dispatch: codec=27 -> native(loopback),liveJoinProfile = .fastZap,liveJoinStartsImmediately = true,maxConcurrentSourceRequests = 1.The seal is correct — this is not the #447 ulp
live TARGETDURATION sealed at 5s (holdback 15.000s): max EXTINF 5.000s,
1.5 x cut target 0.750s, no measured floor (segments are cut here, not ingested)
5.000 s segments, TD 5, holdback 15 s. The arithmetic is right and the corrected
"no measured floor (segments are cut here, not ingested)" line reads exactly as
shipped in 6.56.1. Nothing here argues the seal is wrong. It is the depth that
3 x TD asks for on this source shape that appears to put the first serve permanently
on the wrong side of the decision point.
Two channels, same session, same provider, minutes apart
394617 — never starts (h264 1080p50):
first live manifest served after 0.952s: 3 segments / 15.000s >= 15.000s holdback (TARGETDURATION 5s)
253394 — starts normally (h264 720p):
first live manifest served after 2.436s: 2 segments / 10.000s < 15.000s holdback (TARGETDURATION 5s), fastZap bounded start after 2.000s grace
The one that is served at the holdback takes the plain path and never rolls; the one
served below it takes the
fastZap bounded startgrace and plays. Every run of thefailing channel that I captured reaches
ready, publishessize=1920x1080 fps=50.0 decoder=VideoToolbox H264 (HW), and never reachespresenting.The hold, sustained rather than transient
AE#440 live join: leaving the stall-avoidance wait alone (buffer ahead 0.00s, empty=true, floor 1.50s)
AE#440 live join: the wait was still standing after 5.11s of sampling and the buffer had not reached the floor (last reading ahead 0.00s, empty=false, floor 1.50s)
The playhead does not move for the whole session:
[LagDiag] clk=95258.48 dclk=0.00 tcs=waiting rate=1.00 wait=AVPlayerWaitingToMinimizeStallsReason fwd=- keepUp=n empty=n drop=0+0 stall=0 ready=n thermal=nominal net=6.3 restarts=0
(
clkidentical across every sample;ready=nthroughout.)The refusal itself is correct by the #440 guard's own rules — I am not arguing the
floor. What is different from the runs in #440 and #447 is that the wait never
resolves: on this source the item still holds nothing 20 s after the decision.
The source is healthy throughout
Segments are cut on schedule and every request is answered while the hold stands:
[HLSSegmentProducer] live seg-0 finalized: start=0.000s dur=5.000s
... seg-1 through seg-6, all dur=5.000s ...
[HLSLocalServer] -> 200 /seg6.mp4 bytes=3862181 type=video/mp4 [filestream]
[HLSSegmentProducer] pump finished: reason=stopRequested packetsRead=3501 packetsWritten=1820 lastError=0 elapsed=20070ms cacheCount=8
The session above ends because our own 20 s stall watchdog reloads it, not because
anything upstream failed.
Intermittency, and what it points at
The same channel does occasionally play, and in those runs the
routedcheckpoint wasunusually slow, which moved when the first manifest was served:
startup routed +11182ms (slow run — plays: presenting +15235ms)
startup routed +946ms (fast run — never presents)
Consistent with the manifest-vs-decision-point race this issue and #440 established:
when the gate happens to serve late enough, the join survives.
superuser404notfound commentedon Sep 7, 2026
Read, measured, and moved to #509 rather than reopened here, because the seal in this issue
is doing exactly what the report says it is and none of the four terms #447 fixed can reach
that failure.
The short version, so nobody has to open the other thread to know what changed:
3 segments / 15.000s >= 15.000s holdback (TARGETDURATION 5s), reproduces here on a 5.000 s cut and joins every time, in five arms: a 15 sbacklog, a 150 s backlog, an item axis parked at 95258.00 s (that number is 185 s below the
33-bit PTS wrap, and at 90 kHz it is past
UINT32_MAX, so it was worth killing), and asustained 1.6x and 1.8x origin. So being served AT the holdback rather than below it is not
what separates the two channels.
aetherctl livedid not have:--realtimeis exactly 1x and an unpaced fixture is one burst that ends, so an origin thatkeeps running ahead for the whole session could not be driven at all.
--realtime-rate Xnow does that (f3775c1). Your producer was at about 1.59x, measured off
packetsWrittenagainst a paced arm.
fwd=-in the LagDiag line is the sharpest thing in the capture, and it means more than itlooks like: it is
loadedTimeRanges.last, so-is an EMPTY array, not a thin buffer.Twenty seconds in, the item had placed nothing at all.
And the reason that took a while to see:
ahead 0.00s, empty=falseis printed identicallywhether the item has placed nothing or is holding media somewhere other than the playhead,
which are opposite bugs. That line now says which of the two it measured (1ad185c).
#509 has the numbers, and the three things from a failing session that would decide it.