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
{{ message }}
Repository navigation
VOD loopback: the session clock keeps the source PTS origin until the first re-anchor, so a non-zero-origin source reports a position outside its own duration #270
On the VOD loopback path, engine.currentTime is reported on the SOURCE PTS axis from the first frame until something re-anchors the shift. duration is correct throughout, so the reported position can sit outside the item's own duration.
Same 600 s HEVC + AAC MPEG-TS three times, only the muxed PTS origin differs. Local file, no HLS, plain loopback VOD session:
PTS origin
first playing tick
first seek
1.4 s (ffmpeg default)
cur=2.00 dur=60.0
fine
60 s
cur=62.04 dur=600.0
lands, and the clock is correct from the re-anchor on
1001 s
cur=1002.04 dur=600.0
seek#1 programmatic landed rendered=1001.34 target=480.00, playback resumed near the start
The shift is published at session start and looks right:
A host scrubber opens at 1:02 on a ten-minute item for a 60 s origin, and a resume position written from that clock is wrong by the same amount. At broadcast-scale origins it stops being cosmetic: the 1001 s run reported a landing at 480 s while playback actually resumed at the beginning of the file. Broadcast-derived VOD (anything remuxed from a transport stream rather than re-timestamped) routinely carries origins in the hundreds or thousands of seconds.
The first playing tick reports ~62 s. Raising -output_ts_offset scales the error one to one.
Expected behavior
The session clock is on the item axis from the first frame: a 600 s source reports 0 to 600 regardless of the PTS origin its container happens to carry, and a seek target on that axis lands where it was asked to.
Notes
Found while verifying #268, where it is easy to hit because HLS VOD carved out of a broadcast stream keeps its origin. It is not an ingest problem: the runs above use a plain local file with no HLS in the path. #268's own axis mapping (the reader addresses playlist time while the engine seeks on absolute source PTS) is a separate defect and is already fixed on main in d8cc273.
Measured on macOS 26.5 through aetherctl, main at d8cc2734 (6.3.0 + the #268 merge).
The origin now comes from the container's own start time (HLSVideoEngine.sourceStartSeconds), installed when the session starts, and later shift publications no longer move it for a non-disc VOD source. The producer's shift is deliberately not the anchor: it also carries the producer's initial drift, which reads -0.08 s on a B-frame MP4 whose first PTS is 0, so anchoring on it would have shifted the clock of every source that was already correct.
Verified on the three fixtures from the report: 60 s and 1001 s origins now publish 0-based positions inside their duration and seeks land where they were asked to (presentationOrigin=61.400 / 1001.341, first tick cur=0.74 / cur=0.70, SEEKLANDED target=300.00 clock=300.00), while the 0-based control stays byte-identical to before (presentationOrigin=0.000, cur == src). Two seek-landing events that published on the source axis while their own target was on the display axis are folded the same way.
Closing on the measurement. The loopback path is shared across platforms, so there is nothing device-specific left in this one; the fixture recipes are in Scripts/fetch-fixtures.sh if it needs to be re-measured.
Activity
superuser404notfound commentedon Jul 31, 2026
Fixed in b6d54fe, released in 6.4.0.
The origin now comes from the container's own start time (
HLSVideoEngine.sourceStartSeconds), installed when the session starts, and later shift publications no longer move it for a non-disc VOD source. The producer's shift is deliberately not the anchor: it also carries the producer's initial drift, which reads -0.08 s on a B-frame MP4 whose first PTS is 0, so anchoring on it would have shifted the clock of every source that was already correct.Verified on the three fixtures from the report: 60 s and 1001 s origins now publish 0-based positions inside their duration and seeks land where they were asked to (
presentationOrigin=61.400/1001.341, first tickcur=0.74/cur=0.70,SEEKLANDED target=300.00 clock=300.00), while the 0-based control stays byte-identical to before (presentationOrigin=0.000,cur == src). Two seek-landing events that published on the source axis while their own target was on the display axis are folded the same way.Closing on the measurement. The loopback path is shared across platforms, so there is nothing device-specific left in this one; the fixture recipes are in
Scripts/fetch-fixtures.shif it needs to be re-measured.fix(clock): publish the VOD playhead on the item's own axis (superuse…