Skip to content

7.77.0 - Fill past painted-in bars, stills yield on every path

Latest

Choose a tag to compare

@superuser404notfound superuser404notfound released this 28 Nov 05:49
· 14 commits to main since this release

A fill that zooms past black bars painted into the picture, and scrub stills that stand back for a thin line on every playback path.

New API: PictureAreaScanner, PictureArea, PictureAreaDetector, AetherEngine.setFillPictureArea(_:animated:) and fillPictureArea, PictureFillGeometry for hosts that render through AVKit, and FrameExtractor.thumbnailOutcome(at:maxWidth:) with StillOutcome and the StillSource protocol. How it works: api.md › Filling past bars in the picture and Finding the picture area.

Measured on an Apple TV 4K in Sodalite: a 2.39 film in a 3840x2160 file was found after 7.4 s and zoomed by 1.344, a Dolby Vision Profile 5 title snapped to 2.35, and a film with IMAX passages stayed at the full frame.

Added

  • A fill that zooms past bars painted into the picture (Sodalite#118). A 2.39 film delivered as a 16:9
    file has its black bars in the frame, so .resizeAspectFill had nothing to crop. PictureAreaScanner
    samples keyframes through FrameExtractor and returns where the picture sits (PictureArea, snapped to a
    cinema ratio). Its look-ahead keeps sampling ahead of the playhead, and the area only grows, so a film with
    IMAX passages ends at 16:9 instead of losing picture. setFillPictureArea(_:animated:) zooms the bound
    AetherPlayerView so that area covers it, and PictureFillGeometry has the same math for hosts that
    render through AVKit. FrameExtractor.thumbnailOutcome(at:maxWidth:) tells a still that yielded to
    playback from one that failed.

Fixed

  • Stills yield to a starved pipeline on every path (Sodalite#118). Only the native loopback session armed
    the extractor's yield gate. On a remote HLS transcode and on the software host, session-coupled stills
    read the original file unthrottled, on a transcode over the line that was already too thin for it. Both
    paths now arm it. On the software path a paused tick counts as healthy, and a playing one needs a decoded
    cushion, 4 MB of reader runway (not on live, where the edge caps it) and no rebuffer, so stills stand back
    before a thin line stalls. A seek or a load leaves the gate as it was instead of holding previews back.

  • Go Live on a software-path channel no longer lands past the newest media after a native live session
    (AE#1135).
    The native path's 1 Hz live window timer ran one more pass after the stop cancelled it. By
    then the next load had already set up its own live window, so that pass wrote the previous channel's
    seekable end into it. The edge only ever grows, so it stayed there. In the report it sat at 398 s while
    the software ring held about 302 s, and seekToLiveEdge() froze the picture for 95 s while the source
    caught up. A timer pass now ends with the session that started it, and the software host's edge
    callback only publishes while that host is still the engine's.

  • A constant-rate Matroska track that drifts off the frame grid no longer hitches every few seconds
    (PR #1139).
    A track whose frame is a hair longer than the standard rate's (41.70839 ms against 41.70833
    on a Blu-ray remux) left the AE#886 grid a few minutes in, and the first frame of a fragment then landed a
    frame early. The grid now checks each frame against a band the segment's first frame opens, so a drifting
    track stays on it. A 12-minute resume into a test file drifting 3.6 ms went from 0 of 1632 frames on the
    grid to all of them, and a restarted producer writes the same presentation times as a continuous one.

  • A sequential origin no longer fails at the start of a seek to 0 (AE#1117). On an IPTV catch-up whose
    first keyframe came 2.1 s after its first timestamp, a seek to 0 issued during the load reached the
    first segment at item time -2.1 s. The AE#412 repair then asked for a restart to re-cut that segment,
    and a sequential origin answers every restart by failing the session (Source cannot be repositioned,
    code -5), within 4 s of the start. A VOD seek target now stops at the start of the item, as a live one
    already did, and the repair leaves a sequential origin alone, since it has no restart to repair with.

  • A stereo title after a software-path title no longer goes out as multichannel PCM (Sodalite#256).
    The software and audio-only paths set the audio session's preferred channel count, and nothing set it
    back. The value is process-wide, so the next title on AVPlayer inherited it. Measured on an Apple TV 4K
    into a Sonos Arc, a stereo title after a 5.1 software title arrived as Multichannel PCM 5.1 every time,
    until the app restarted. The engine now writes back the value from before the first renderer write when
    the last renderer path stops, or when an engine moves on to a native title without stopping. With the
    fix the same stereo title arrives as PCM 2.0, with and without stop() in between.

  • 7.1 on the software path reaches a 5.1 soundbar as 5.1, not stereo. The Arc refuses a preference of 8
    with error -50, and tvOS then stays in stereo instead of trying a smaller layout. A refused 8 now steps
    down to 6, and the Arc shows Multichannel PCM 5.1.

  • VC-1 and WMV3 decoded on several threads no longer read a reference row too early (FFmpegBuild
    3.19.3).
    Near the top edge of a picture, motion compensation could pass its wait before the reference
    row it reads was decoded, on intact streams too. On damaged streams, error concealment could rewrite rows
    another thread was already reading, and a repeated slice header could turn a B picture into a reference
    picture. The frame threading patch is now at the fifth review round of FFmpeg PR 26273 (AE#1107).

  • The engine builds without warnings under Xcode 27.2 again (AE#1140). Six diagnostics that code added
    since #1062 brought back: a mutable timing value captured by the ML upscaler's callbacks, two unused values
    in the subtitle drain, a weak self inside a task that already holds self, and an inout pointer to a
    generic value in the binaural renderer's property setter. A seventh, macOS only, was left in on purpose at
    #1062: the PiP area tracker's nonisolated(unsafe) view, which the 27 SDK no longer wants and the 26 SDK
    still needs. It now goes through a wrapper both accept. Nothing changes at runtime. Thanks to YangHanqing
    for the report.

Full Changelog: 7.76.0...7.77.0