Repository navigation
Description
Follow-up to #407. The 2026-09-01 reply there promised a separate issue for each of the side findings in @classicjazz's §4. Checked against main at 6.67.0 first, and it turned out that most of them do not need a tracker of their own, so this is the one place for all six, with what each one measured as.
Fixture for the seek measurements: Test_1440x576_WVC1_6Mbps.wmv (samples.ffmpeg.org) remuxed with ffmpeg -c:v copy into Matroska (the V_MS/VFW/FOURCC carriage from #407) plus an AAC sine track so aLead has something to read, 25 fps, so one frame is 40 ms. Same run on every engine version named below:
aetherctl play --sw --seconds 30 --seek-every 6 --seek-count 2 --seek-pattern 40,5 file://wvc1-audio.mkv
Two programmatic seeks, forward 12 s → 40 s at tick 12 and backward 46 s → 5 s at tick 18, and the [SWDiag] line read on the tick that crossed each seek and on the first tick after it.
1. One-frame gap at the seek boundary: was real, fixed in 6.59.0
The report: dpts=41.0/84.0 on the seek tick with lost=+0 on 6.57.1, at 23.976 fps. Reproduced here at 25 fps, and it turns out the forward and the backward seek show the two halves of the same defect:
| engine | forward seek tick | backward seek tick |
|---|---|---|
| 6.57.1 | dpts=0.0/40.0 |
dpts=40.0/80.0 |
| 6.58.0 | dpts=0.0/40.0 |
dpts=40.0/80.0 |
| 6.59.0 | dpts=40.0/40.0 |
dpts=40.0/40.0 |
| 6.67.0 | dpts=40.0/40.0 |
dpts=40.0/40.0 |
A duplicated interval on one seek, a doubled one on the other, and lost=+0 on both: one picture handed over on a timestamp that was not its own. That is the #407 defect at the reorder buffer's empty state. On the +genpts axis every picture carried the following packet's DTS, and a reorder buffer that starts empty at a seek releases its first pictures before their transposed partners have arrived. Once 6.59.0 hands presentation to the decoder's own reorder there is nothing left to transpose, and the boundary reads clean on the two versions after it. The attribution is exact: 2f70d4ab is the only change between 6.58.0 and 6.59.0. Nothing further to do; the closed bracket is the record.
2. Stale aLead on the first post-seek tick: not reproduced
The report: aLead=475.49 on the first tick after a seek, on the engine AetherPlayer 0.16.1 pins, which is 6.34.0 (0ae80496). Ran the same two seeks on 6.34.0, 6.57.1, 6.58.0, 6.59.0 and 6.67.0; the first post-seek tick read between 3.99 and 4.02 in all ten cases, forward and backward.
The window exists in the code, so the observation is not implausible: lastAudioPts in the diagnostic snapshot is written by the pump thread after each demux iteration, and it is that thread's generation check that clears it after a seek, while the clock the line subtracts it from is re-anchored by the seek itself. A 1 Hz tick landing between the two reads a pre-seek audio PTS against the post-seek clock, and a 475 s value is exactly a seek distance. The marker has been cleared on generation change since 6.19.0 (9316b533), which is why the window is short enough not to show in ten tries. If it shows again, the fix is one line: the seek path clears the marker itself right after audioOutput.flush(), at which point no enqueued audio exists by construction. Not building that against zero reproductions.
3. Sustained layerDrop run on the Mac: no reproduction to work from
The report: 5 to 12 frames per second for about 54 s on AetherPlayer 0.16.1, picture visually fine, never recurring across the following 20 seeks. One thing worth knowing when reading that counter: it is the display layer's own numberOfDroppedVideoFrames, and it climbs in a session with no render surface at all (the headless CLI runs above read layerDrop +6 per second at 25 fps with surf=DETACHED), so it is the layer's verdict on its presentation deadline, not a decoder-side count. A run of it in a session that looked fine says something about the presentation side at that moment. What would make it workable: the [SWDiag] lines across onset and end, and what the window was doing at the time (occluded, on another Space, display asleep, PiP). Until then this item stays a note.
4. corr misnomer: fixed on main
3f8ec8fd, unreleased. The [SWDiag] token is corrupt= now; it is videoPerformanceMetrics.numberOfCorruptedFrames and nothing else, and there is no drift correction on that path for it to have counted.
5. surf=932x430 on tvOS: not a defect, and not tvOS
surf prints the display layer's bounds in points. 932x430 points is the landscape screen of an iPhone 14 Pro Max, 15 Pro Max, 15 Plus or 16 Plus, one of the devices in the §1 matrix. The Apple TV capture earlier in the same thread (2026-08-27) reads surf=1920x1080. The video plane is composited at the panel's pixel size regardless of the layer's point size, and the layer's bounds belong to the host view, not the engine. So the line is correct for the device it came from, and there is nothing to draw 1920x1080 "into".
6. threads=1 on VC-1: libavcodec's own clamp
ffmpeg -h decoder=vc1 reports Threading capabilities: none (checked on ffmpeg 8.1.1), so libavcodec sets the thread count to 1 no matter what the engine asks for. Nothing to change. The note in #407 stands: the headroom figure quoted in that thread was a single-core measurement.
What is left
Items 2 and 3 stay here as the place to attach a recurrence to; everything else is measured and closed. Thanks to @classicjazz for separating these out in the first place, the seek-boundary one in particular was a real defect that the main #407 fix happened to cover and would otherwise have gone unrecorded.
Activity
superuser404notfound commentedon Sep 3, 2026
Item 2 was reproducible after all, and the "not building that against zero reproductions" above was wrong for a reason worth recording: the ten playing seeks were the wrong shape. The window after a playing seek is one pump iteration wide, which is why ten tries never caught it. A seek that lands PAUSED is different: the pump sits in the pause wait of
waitForRenderer, which checks neither the generation nor the diagnostic box, so it writes nothing untilplay(), and the pre-seek marker stays on the line for the entire paused stretch. A scrub that ends paused is exactly what a remote in someone's hand does.Driven with a new drill,
aetherctl play --host-calls pauseseek(pause at t=12, seek at t=15 while paused, resume at t=20; neither a--pausedmount nor a--seek-everyburst can produce this shape), on the same VC-1 fixture:-23.89is 16.11 (the last audio PTS enqueued before the pause) minus 40.00 (the clock the seek anchored at): the report's475.49with the sign of a forward scrub instead of a backward one.Fix in f38230c: the seek path clears the marker when it flushes the audio queue, under the seek's generation, and the pump's writes carry the generation they were produced under, so the one late write after a playing seek is refused for the marker as well.
parkedPktsandrebufare unchanged, they are the pump's own state and were never stale. The playing-seek burst from the measurement above still reads 4.00 on every first post-landing tick.Released in 6.67.1 (c7d3a6b), together with the
corrupt=rename from item 4. Items 1, 5 and 6 were closed by measurement above; item 3 has no reproduction and no code to attach one to, so this issue closes with the release. AlayerDroprun, should it recur, is a new issue with its log.