You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Live loopback: served #EXT-X-TARGETDURATION < actual segment duration → AVPlayer stall-danger + rebuffering (4K50 HEVC-in-TS)
Engine: 5.18.1 Path: live HEVC-in-MPEG-TS → HLSLiveIngestReader → HLSVideoEngine fMP4 remux → loopback HLSLocalServer → AVPlayer (the count=0/HEVC-in-TS reroute). Device: Apple TV 4K (3rd gen), tvOS 26.x. Match-Content disabled.
Symptom
On a 4K50 HDR10 HEVC-in-TS channel, playback starts but AVPlayer continuously logs, ~100×/zap:
errorLog code=-16832 CoreMediaErrorDomain
'Warning: restarting 8.000000s from end of live playlist; target duration 3s - stall danger'
and rebuffers. Video plays but is not smooth.
Root cause (from our logs)
The loopback media playlist AVPlayer reads advertises a target duration well below the actual segment durations:
[HLSSegmentProducer] init OK (baseIndex=0, segments=0, targetDur=4.000s, srcVideoTb=1/90000)
[HLSSegmentProducer] live seg-0 finalized: start=0.060s dur=5.760s
[HLSSegmentProducer] live seg-1 finalized: start=5.820s dur=5.760s
[HLSSegmentProducer] live seg-2 finalized: start=11.580s dur=5.760s
The segments are 5.76 s (the source's keyframe interval on this 50 fps stream), but the served playlist's #EXT-X-TARGETDURATION is 3–4 s (AVPlayer reads target duration 3s).
HLS requires EXT-X-TARGETDURATION ≥ ceil(max segment EXTINF). Here it's ~2× under, so AVPlayer computes the live-edge holdback (3× target ≈ 9 s) as smaller than a single segment and believes it is perpetually inside the stall-danger zone → the -16832 spam and the rebuffering.
Expected
The served loopback playlist's #EXT-X-TARGETDURATION should be ceil(max observed segment duration) (≥6 here), so the holdback covers at least one segment.
Note on the cadence policy
LiveCadencePolicy.targetDurationFloorSeconds looks like it already tracks observed cadence as a floor, but on this stream the served playlist still went out at 3–4 s while the producer cut 5.76 s segments — so the floor either isn't feeding the outgoing HLSLocalServer render, or it hasn't converged by the time AVPlayer first reads the playlist. Seeding the initial target from the first cut segment's duration (not the configured 4 s) would avoid the startup window entirely.
Repro
Deterministic repro in our test-bed: a synthesized HDR10 4K50 HEVC-in-MPEG-TS channel with ~5.7 s keyframe interval (GOP ≈ 288 frames @ 50 fps) reproduces the targetDur=4.0 vs dur=5.76 mismatch and the -16832 spam. (Redacted: real reproduction was on a third-party IPTV channel; host/token omitted.)
Possibly related to #167 (also TARGETDURATION-vs-cadence), but that is the ingest reader / -15410; this is the SERVED loopback playlist to AVPlayer / -16832.
Thanks for the very detailed writeup, this is a great report.
I dug into the loopback playlist builder and I cannot reproduce the low TARGETDURATION on the current code, so I want to pin down exactly what AVPlayer is reading before changing anything.
Here is what the served media playlist builder (HLSLocalServer.buildMediaPlaylistText) does for a live session. It derives TARGETDURATION from the segment durations, not from the cut target:
targetDuration = max(
ceil(max visible EXTINF), // >= ceil(5.76) = 6 for your stream
ceil(cutTarget * 1.5), // ceil(4.0 * 1.5) = 6
ceil(observedCadenceFloor) // >= 6 once the cadence meter converges
)
So even with the cadence floor removed, the base rule ceil(max EXTINF) alone yields 6 for 5.76s segments. The builder cannot emit a TARGETDURATION below ceil(maxEXTINF). Running your exact numbers (segments 5.760s, cut target 4.0s) through the real builder gives:
which is already the ceil(max observed segment duration) >= 6 you asked for. (The cutTarget * 1.5 floor and the observed-cadence floor have both been in place since before 5.18.1.)
That leaves a puzzle. AVFoundation logs target duration 3s, which is only self-consistent with a TD=3 manifest (holdback 3 x 3 = 9s, a restart 8s from the end lands inside the danger zone). With TD=6 the message would read target duration 6s. So AVPlayer appears to have parsed a TD=3 manifest somewhere, and the loopback builder does not produce one for 5.76s segments.
Could you grab a few things so I can find the real source:
The raw served media playlist. While a session is stalling, curl the loopback media playlist and paste it verbatim (the #EXT-X-TARGETDURATION line plus a few #EXTINF lines are what matter). This is the single fastest way to confirm whether the loopback actually serves TD=3 or TD=6 on your build.
Your exact engine build (commit or tag), just to rule out a local delta.
My working theory is one of two things, and the raw manifest will tell us which:
(a) The -16832 is coming from the upstream / native path (the IPTV origin advertising TD=3), not from the loopback.
(b) The real driver is the live-edge holdback rather than TARGETDURATION: the loopback advertises no explicit HOLD-BACK, so AVPlayer falls back to roughly 3 x TARGETDURATION (~18s for these long segments) while the startup cushion is only 2 segments (~11.5s). On a real-time source that keeps AVPlayer sitting inside its own stall-danger window, which would produce the same -16832 spam and rebuffering. If that is the cause, the fix is an explicit EXT-X-SERVER-CONTROL:HOLD-BACK sized to the cushion we actually maintain, not a TARGETDURATION change.
Reproduced on 5.18.3, Apple TV 4K (3rd gen), tvOS 26.5. Your theory (b) is confirmed — it's the holdback, not TARGETDURATION. My original "TD < segment" framing was wrong; apologies for the misdirection.
[AetherEngine] #168: nativeRemoteHLS built no video track for a master that advertises video;
rerouting onto the live-ingest loopback path (TS -> fMP4 remux)
2. The sustained -16832 is on the LOOPBACK, not the origin — and it reports TD=6:
[NativeAVPlayerHost] #2 errorLog code=-16832 uri=http://127.0.0.1:64277/seg1.mp4
'Warning: restarting 9.600000s from end of live playlist; target duration 6s - stall danger'
So the loopback emits target duration 6s exactly as your builder derives — the TD is correct. The driver is restarting 9.600000s from end: at that moment only 2 segments exist (live seg-0 finalized: dur=4.800s, seg-1 dur=4.800s = 9.6s), and with no explicit HOLD-BACK AVPlayer falls back to ~3×TD = 18s, which is larger than the 9.6s cushion → it sits inside its own stall-danger window and spams -16832 + rebuffers. That's precisely your (b).
The transient -16832 on the origin path (uri=.../live/hevc-hdr/seg.ts 'target duration 3s') is only the pre-reroute HEVC-in-TS grace — the origin advertises TD=3 with 2s segments (valid), and it's moot once the reroute takes over.
3. Engine build: vendored 5.18.3 (release tag), plus three local patches that don't touch the playlist builder (nativePlayerLayer accessor / softwareFramesEnqueued getter / SW-decoder SAR gate).
Supporting numbers:
HLSSegmentProducer init OK (targetDur=4.000s [cut target]), live seg-N finalized: dur=4.800s.
Deterministic repro: our test-bed's HEVC-in-MPEG-TS live channel (~4.8s keyframe cadence) triggers the reroute + the loopback -16832 on every open. (Real repro was a 4K50 IPTV channel; host/token redacted.)
So the fix is your (b): an explicit EXT-X-SERVER-CONTROL:HOLD-BACK sized to the cushion the loopback actually maintains (and/or a deeper startup window before first serve), not a TARGETDURATION change.
I can't curl the ATV's 127.0.0.1 loopback from off-device to paste the full manifest verbatim, but the -16832 line gives the two decisive numbers (TD=6, restart 9.6s-from-end). Glad to add a temporary log of the served playlist text if you'd like it byte-for-byte.
Thanks for nailing this down, and no need to apologize for the earlier framing. The precise numbers in your last log (target duration 6s, restarting 9.600000s from end) are exactly what pinned it: the TARGETDURATION was correct all along, and the driver is the live-edge holdback.
The 2-segment startup cushion was a fixed segment count, decoupled from the holdback AVPlayer derives from TARGETDURATION. Absent an explicit HOLD-BACK, AVPlayer uses 3 x TARGETDURATION (18s here), but the two long-GOP segments only built ~9.6s, so its initial seek to edge-minus-holdback landed inside the stall-danger zone and it restarted in a loop until the real-time window naturally deepened.
Fixed in 5.18.5:
The loopback now advertises #EXT-X-SERVER-CONTROL:HOLD-BACK=3xTARGETDURATION explicitly (the RFC 8216bis floor, which is also AVPlayer's implicit default made explicit), on one combined SERVER-CONTROL line with CAN-BLOCK-RELOAD.
The startup gate now holds the first manifest until the window carries at least that holdback depth, instead of a fixed 2 segments. Both the served playlist and the cushion derive TARGETDURATION through one shared policy, so the depth built can never drift from the holdback advertised.
Since HOLD-BACK must be at least 3 x TARGETDURATION per the spec, matching a thin cushion with a smaller holdback is not an option, so the cushion is deepened to the holdback instead. One expected consequence: on a strict-real-time origin that starts from cold, the first frame can take a little longer while the ~18s of runway is built. A source with an upstream live window (the usual case) fills that at I/O speed and joins about as fast as before.
Could you retest on 5.18.5 with your deterministic HEVC-in-MPEG-TS live channel? A clean open with no sustained -16832 on the loopback URI (127.0.0.1:.../segN.mp4) is the confirmation. If you can still grab the served playlist byte-for-byte via a temporary log, seeing the HOLD-BACK line land is a nice bonus, but the -16832 going quiet is the real signal.
Retested on 5.18.5, Apple TV 4K (3rd gen), tvOS 26.5, HEVC-in-MPEG-TS live channel through the #168 reroute → loopback path.
Confirmed: the loopback -16832 is gone.
loopback (127.0.0.1/segN.mp4) -16832
5.18.3
present — restarting 9.600000s from end … target duration 6s - stall danger (burst of 6)
5.18.5
0 across three separate opens
Every -16832 remaining is on the origin URI (192.168.137.180/live/hevc-hdr/seg.ts) during the brief pre-reroute HEVC-in-TS grace — transient and expected, and it disappears once the reroute takes over. The holdback/startup-gate fix does exactly what you described: no sustained stall-danger on the loopback anymore. 🎉
One honest caveat so I'm not overselling it — on this deterministic test channel specifically, I see the engine re-run the reroute cycle (master advertises video but AVPlayer built no video track after grace → reroute → native → repeat, ~every 13s) rather than settling into a long stable play. I don't think that's your fix: our test-bed's live window is only ~4 segments (~19s), which is borderline against the new ~18s holdback runway, and the channel loops a fixed pool so it injects [DISCONTINUITY] markers. Those are test-bed artifacts a real origin with a deep upstream window wouldn't have (matching your "fills at I/O speed, joins about as fast as before" note). I'll deepen the test-bed's window past the holdback and post a clean stable-playback confirmation as a follow-up — but the -16832 signal you asked about is unambiguous: eliminated on 5.18.5.
Engine build: vendored 5.18.5 release tag + the three unrelated local patches (nativePlayerLayer / softwareFramesEnqueued / SAR gate). Thanks for the fast, precise fix.
Excellent, thanks for the crisp before/after. The loopback -16832 going to 0 across three opens is the confirmation this was after: the explicit HOLD-BACK plus the holdback-depth startup gate put AVPlayer's initial join outside its stall-danger window. The residual -16832 on the origin URI during the pre-reroute HEVC-in-TS grace is exactly the transient we both expect, moot once the reroute takes over.
On the reroute cycling: I don't think it's a -16832 regression either, and your read matches what the fix trades off. The old startup gate served after 2 segments (~9.6s) and left headroom in your ~19s window; the new gate builds the full ~18s holdback runway before the first serve, so it consumes almost the whole window on a source that shallow. Any stall / EOF / [DISCONTINUITY] from the looped fixed pool then exhausts what little runway is left, the session recovers by reloading, and the reload lands back on native, where the HEVC-in-MPEG-TS master still builds no video track, so it reroutes again, roughly your ~13s period. A real origin with a deep upstream window fills that runway at I/O speed and never gets that thin, which lines up with your "test-bed artifact" read.
So your plan is exactly right: deepen the test-bed window past the holdback and it should settle into stable play. If it still cycles once the window is comfortably deeper than the ~18s runway, that would be a genuine reroute-recovery issue distinct from #189, and the reload/reroute log lines around each cycle would pin it. Either way the -16832 signal you asked about is unambiguous here. Thanks again for the thorough retests.
Follow-up with the deepened window, as promised. I bumped the test-bed live window to ~22s (11×2s segments, comfortably past the ~18s holdback runway) and reran the HEVC-in-MPEG-TS channel for ~2.5 min on 5.18.5-family.
#189 itself holds: loopback -16832 = 0 across the whole run (all -16832 are on the origin URI, pre-reroute grace). The HOLD-BACK fix is solid.
But it still cycles — so, exactly as you called it, this is a reroute-recovery issue distinct from #189, not the shallow-window artifact. Over 2.5 min: 8× #168 reroutes, 9× AETHER PLAYING, 0 → VLC (it never leaves Aether, just loops). And it's purely engine-side — 0 host ladder re-tunes and 0 host reload/stall log lines from our side. One cycle (~13s):
#9 load 192.168…/hevc-hdr/master.m3u8 → readyToPlay → AETHER PLAYING (native, audio-only)
#9 master advertises video but AVPlayer built no video track after grace
#168 reroute → #10 load 127.0.0.1/media.m3u8 (loopback)
live seg-0 … seg-1 [DISCONTINUITY] … seg-2 … seg-3 (looped fixed pool)
#11 load 192.168…/hevc-hdr/master.m3u8 ← engine reloads the nativeRemoteHLS ORIGIN
#11 built no video track → #168 reroute → #12 loopback → …repeat
So after the loopback session hits the pool's [DISCONTINUITY], the engine recovers by reloading the nativeRemoteHLS origin master — which #168 has already determined builds no video for HEVC-in-MPEG-TS — so it just re-runs the reroute dance instead of recovering within the loopback.
Fair caveat on how much this matters: the trigger here is our test-bed's looped fixed pool injecting a real [DISCONTINUITY] every lap — a real live origin with a continuous window wouldn't emit that, so I don't think this is a shipping blocker. But the underlying behavior — "recover from a loopback discontinuity by reloading the native path, which re-triggers #168" — is real if any live source ever signals a discontinuity. Happy to open this as its own issue with the full logs if you'd like to track it separately from #189, or attach the raw log around a few cycles.
Thanks for the deepened-window run, that is exactly the confirmation needed on both fronts. Loopback -16832 staying at 0 across the whole 2.5 min run nails #189 itself (the explicit HOLD-BACK plus the holdback-depth startup gate are doing their job), and the cycle persisting with the window comfortably past the ~18s runway proves the cycling is a separate defect, not the shallow-window artifact we both suspected earlier.
I have split the cycling out into #199 with a code-level root-cause trace. Short version: two engine-side defects compose into the loop. The #168 no-video-track verdict is discovered per mount (full native mount plus ~4s grace) and then thrown away, and the engine-created ingest session has no in-engine recovery (any pump exit immediately requests a host retune), so a retune that answers with the same URL relands on the known-bad native path and re-pays the whole discovery cost every lap. One detail that may resolve the "purely engine-side" puzzle: no engine path reloads the origin on its own, so the #11 load <origin> mounts are the engine executing a retune issued from the host side, most likely a handler answering the engine's liveSourceReset request by re-tuning the same URL (a perfectly reasonable response, and not the bug). Your offer of the raw log around a few cycles is taken up over in #199, the decisive log lines are listed there.
Closing this one as verified on 5.18.5. Thanks for the persistent, precise retests; the deep-window follow-up in particular is what separated the two defects cleanly.
Activity
superuser404notfound commentedon Jul 22, 2026
Thanks for the very detailed writeup, this is a great report.
I dug into the loopback playlist builder and I cannot reproduce the low TARGETDURATION on the current code, so I want to pin down exactly what AVPlayer is reading before changing anything.
Here is what the served media playlist builder (
HLSLocalServer.buildMediaPlaylistText) does for a live session. It derives TARGETDURATION from the segment durations, not from the cut target:So even with the cadence floor removed, the base rule
ceil(max EXTINF)alone yields 6 for 5.76s segments. The builder cannot emit a TARGETDURATION belowceil(maxEXTINF). Running your exact numbers (segments 5.760s, cut target 4.0s) through the real builder gives:which is already the
ceil(max observed segment duration) >= 6you asked for. (ThecutTarget * 1.5floor and the observed-cadence floor have both been in place since before 5.18.1.)That leaves a puzzle. AVFoundation logs
target duration 3s, which is only self-consistent with a TD=3 manifest (holdback 3 x 3 = 9s, a restart 8s from the end lands inside the danger zone). With TD=6 the message would readtarget duration 6s. So AVPlayer appears to have parsed a TD=3 manifest somewhere, and the loopback builder does not produce one for 5.76s segments.Could you grab a few things so I can find the real source:
#EXT-X-TARGETDURATIONline plus a few#EXTINFlines are what matter). This is the single fastest way to confirm whether the loopback actually serves TD=3 or TD=6 on your build.[AetherEngine] #168: nativeRemoteHLS built no video track for a master that advertises video; rerouting onto the live-ingest loopback path (TS -> fMP4 remux)If it did not fire, AVPlayer is playing the upstream master directly and the TD=3 would be the origin's own advertised value rather than anything the loopback emits.
My working theory is one of two things, and the raw manifest will tell us which:
HOLD-BACK, so AVPlayer falls back to roughly 3 x TARGETDURATION (~18s for these long segments) while the startup cushion is only 2 segments (~11.5s). On a real-time source that keeps AVPlayer sitting inside its own stall-danger window, which would produce the same -16832 spam and rebuffering. If that is the cause, the fix is an explicitEXT-X-SERVER-CONTROL:HOLD-BACKsized to the cushion we actually maintain, not a TARGETDURATION change.Thanks again for the thorough logs.
kskchaitanya1993 commentedon Jul 22, 2026
Reproduced on 5.18.3, Apple TV 4K (3rd gen), tvOS 26.5. Your theory (b) is confirmed — it's the holdback, not TARGETDURATION. My original "TD < segment" framing was wrong; apologies for the misdirection.
1. The #168 reroute DID fire:
2. The sustained -16832 is on the LOOPBACK, not the origin — and it reports TD=6:
So the loopback emits
target duration 6sexactly as your builder derives — the TD is correct. The driver isrestarting 9.600000s from end: at that moment only 2 segments exist (live seg-0 finalized: dur=4.800s,seg-1 dur=4.800s= 9.6s), and with no explicitHOLD-BACKAVPlayer falls back to ~3×TD = 18s, which is larger than the 9.6s cushion → it sits inside its own stall-danger window and spams -16832 + rebuffers. That's precisely your (b).The transient -16832 on the origin path (
uri=.../live/hevc-hdr/seg.ts 'target duration 3s') is only the pre-reroute HEVC-in-TS grace — the origin advertises TD=3 with 2s segments (valid), and it's moot once the reroute takes over.3. Engine build: vendored 5.18.3 (release tag), plus three local patches that don't touch the playlist builder (
nativePlayerLayeraccessor /softwareFramesEnqueuedgetter / SW-decoder SAR gate).Supporting numbers:
HLSSegmentProducer init OK (targetDur=4.000s [cut target]),live seg-N finalized: dur=4.800s.So the fix is your (b): an explicit
EXT-X-SERVER-CONTROL:HOLD-BACKsized to the cushion the loopback actually maintains (and/or a deeper startup window before first serve), not a TARGETDURATION change.I can't curl the ATV's
127.0.0.1loopback from off-device to paste the full manifest verbatim, but the -16832 line gives the two decisive numbers (TD=6, restart 9.6s-from-end). Glad to add a temporary log of the served playlist text if you'd like it byte-for-byte.superuser404notfound commentedon Jul 22, 2026
Thanks for nailing this down, and no need to apologize for the earlier framing. The precise numbers in your last log (
target duration 6s,restarting 9.600000s from end) are exactly what pinned it: the TARGETDURATION was correct all along, and the driver is the live-edge holdback.The 2-segment startup cushion was a fixed segment count, decoupled from the holdback AVPlayer derives from TARGETDURATION. Absent an explicit
HOLD-BACK, AVPlayer uses3 x TARGETDURATION(18s here), but the two long-GOP segments only built ~9.6s, so its initial seek to edge-minus-holdback landed inside the stall-danger zone and it restarted in a loop until the real-time window naturally deepened.Fixed in 5.18.5:
#EXT-X-SERVER-CONTROL:HOLD-BACK=3xTARGETDURATIONexplicitly (the RFC 8216bis floor, which is also AVPlayer's implicit default made explicit), on one combined SERVER-CONTROL line withCAN-BLOCK-RELOAD.Since
HOLD-BACKmust be at least3 x TARGETDURATIONper the spec, matching a thin cushion with a smaller holdback is not an option, so the cushion is deepened to the holdback instead. One expected consequence: on a strict-real-time origin that starts from cold, the first frame can take a little longer while the ~18s of runway is built. A source with an upstream live window (the usual case) fills that at I/O speed and joins about as fast as before.Could you retest on 5.18.5 with your deterministic HEVC-in-MPEG-TS live channel? A clean open with no sustained
-16832on the loopback URI (127.0.0.1:.../segN.mp4) is the confirmation. If you can still grab the served playlist byte-for-byte via a temporary log, seeing theHOLD-BACKline land is a nice bonus, but the-16832going quiet is the real signal.kskchaitanya1993 commentedon Jul 22, 2026
Retested on 5.18.5, Apple TV 4K (3rd gen), tvOS 26.5, HEVC-in-MPEG-TS live channel through the #168 reroute → loopback path.
Confirmed: the loopback
-16832is gone.127.0.0.1/segN.mp4)-16832restarting 9.600000s from end … target duration 6s - stall danger(burst of 6)Every
-16832remaining is on the origin URI (192.168.137.180/live/hevc-hdr/seg.ts) during the brief pre-reroute HEVC-in-TS grace — transient and expected, and it disappears once the reroute takes over. The holdback/startup-gate fix does exactly what you described: no sustained stall-danger on the loopback anymore. 🎉One honest caveat so I'm not overselling it — on this deterministic test channel specifically, I see the engine re-run the reroute cycle (
master advertises video but AVPlayer built no video track after grace→ reroute → native → repeat, ~every 13s) rather than settling into a long stable play. I don't think that's your fix: our test-bed's live window is only ~4 segments (~19s), which is borderline against the new ~18s holdback runway, and the channel loops a fixed pool so it injects[DISCONTINUITY]markers. Those are test-bed artifacts a real origin with a deep upstream window wouldn't have (matching your "fills at I/O speed, joins about as fast as before" note). I'll deepen the test-bed's window past the holdback and post a clean stable-playback confirmation as a follow-up — but the-16832signal you asked about is unambiguous: eliminated on 5.18.5.Engine build: vendored 5.18.5 release tag + the three unrelated local patches (nativePlayerLayer / softwareFramesEnqueued / SAR gate). Thanks for the fast, precise fix.
superuser404notfound commentedon Jul 22, 2026
Excellent, thanks for the crisp before/after. The loopback
-16832going to 0 across three opens is the confirmation this was after: the explicitHOLD-BACKplus the holdback-depth startup gate put AVPlayer's initial join outside its stall-danger window. The residual-16832on the origin URI during the pre-reroute HEVC-in-TS grace is exactly the transient we both expect, moot once the reroute takes over.On the reroute cycling: I don't think it's a
-16832regression either, and your read matches what the fix trades off. The old startup gate served after 2 segments (~9.6s) and left headroom in your ~19s window; the new gate builds the full ~18s holdback runway before the first serve, so it consumes almost the whole window on a source that shallow. Any stall / EOF /[DISCONTINUITY]from the looped fixed pool then exhausts what little runway is left, the session recovers by reloading, and the reload lands back on native, where the HEVC-in-MPEG-TS master still builds no video track, so it reroutes again, roughly your ~13s period. A real origin with a deep upstream window fills that runway at I/O speed and never gets that thin, which lines up with your "test-bed artifact" read.So your plan is exactly right: deepen the test-bed window past the holdback and it should settle into stable play. If it still cycles once the window is comfortably deeper than the ~18s runway, that would be a genuine reroute-recovery issue distinct from #189, and the reload/reroute log lines around each cycle would pin it. Either way the
-16832signal you asked about is unambiguous here. Thanks again for the thorough retests.kskchaitanya1993 commentedon Jul 22, 2026
Follow-up with the deepened window, as promised. I bumped the test-bed live window to ~22s (11×2s segments, comfortably past the ~18s holdback runway) and reran the HEVC-in-MPEG-TS channel for ~2.5 min on 5.18.5-family.
#189 itself holds: loopback
-16832= 0 across the whole run (all-16832are on the origin URI, pre-reroute grace). The HOLD-BACK fix is solid.But it still cycles — so, exactly as you called it, this is a reroute-recovery issue distinct from #189, not the shallow-window artifact. Over 2.5 min: 8×
#168reroutes, 9×AETHER PLAYING, 0 → VLC (it never leaves Aether, just loops). And it's purely engine-side — 0 host ladder re-tunes and 0 host reload/stall log lines from our side. One cycle (~13s):So after the loopback session hits the pool's
[DISCONTINUITY], the engine recovers by reloading the nativeRemoteHLS origin master — which#168has already determined builds no video for HEVC-in-MPEG-TS — so it just re-runs the reroute dance instead of recovering within the loopback.Fair caveat on how much this matters: the trigger here is our test-bed's looped fixed pool injecting a real
[DISCONTINUITY]every lap — a real live origin with a continuous window wouldn't emit that, so I don't think this is a shipping blocker. But the underlying behavior — "recover from a loopback discontinuity by reloading the native path, which re-triggers #168" — is real if any live source ever signals a discontinuity. Happy to open this as its own issue with the full logs if you'd like to track it separately from #189, or attach the raw log around a few cycles.superuser404notfound commentedon Jul 22, 2026
Thanks for the deepened-window run, that is exactly the confirmation needed on both fronts. Loopback
-16832staying at 0 across the whole 2.5 min run nails #189 itself (the explicitHOLD-BACKplus the holdback-depth startup gate are doing their job), and the cycle persisting with the window comfortably past the ~18s runway proves the cycling is a separate defect, not the shallow-window artifact we both suspected earlier.I have split the cycling out into #199 with a code-level root-cause trace. Short version: two engine-side defects compose into the loop. The
#168no-video-track verdict is discovered per mount (full native mount plus ~4s grace) and then thrown away, and the engine-created ingest session has no in-engine recovery (any pump exit immediately requests a host retune), so a retune that answers with the same URL relands on the known-bad native path and re-pays the whole discovery cost every lap. One detail that may resolve the "purely engine-side" puzzle: no engine path reloads the origin on its own, so the#11 load <origin>mounts are the engine executing a retune issued from the host side, most likely a handler answering the engine'sliveSourceResetrequest by re-tuning the same URL (a perfectly reasonable response, and not the bug). Your offer of the raw log around a few cycles is taken up over in #199, the decisive log lines are listed there.Closing this one as verified on 5.18.5. Thanks for the persistent, precise retests; the deep-window follow-up in particular is what separated the two defects cleanly.
fix(live): recover rerouted ingest sessions in-engine and remember the …
diag(live): the first live manifest names the interval it held (#374) (…