Skip to content

Slightly higher CPU usage in newer versions #2

Closed

Description

@DrHurt

What happened?

Recent builds seem to have slightly higher CPU utilisation than before!

Whereas AetherEngineDemo & QuickTime use around 5% cpu while playing a movie, AetherPlayer now uses 10-12% playing the same movie.

This likely narrows it down to AetherPlayer, not the engine.

I understand AetherPlayer will always have more overhead than AetherEngineDemo but I think there's probably still a margin for improvement.

AetherPlayer is currently (still) the most energy efficient third-party media player on macOS :)

Perhaps consider a quick Claude audit and an Xcode processor trace to identify and suppress anything that is not mission critical while video is playing (when undisturbed by user interaction, menus, stats for nerds etc)!

This type of optimisation would also be useful when Sodalite makes it to iOS where battery life is precious.

Steps to reproduce

.

AetherPlayer version

0.8.1

macOS version

macOS 15.7.7

Mac model / chip

Intel Mac mini

Backend badge

Not sure / not a playback bug

Source media (for playback bugs)

No response

Error codes / log lines


Anything else

No response

Activity

  1. added
    bug
    on Jun 27, 2026
  2. superuser404notfound commented on Jul 7, 2026

    @superuser404notfound
    Owner

    Fixed in 0.9.11 (just released).

    The overhead was host-side, exactly as you suspected. AetherPlayer's player window was re-evaluating its entire SwiftUI view tree on every playback clock tick, roughly ten times a second, even while nothing on screen was changing. It happened because the view observed the high-frequency subtitle clock too far up the hierarchy, so the engine's render surface and all the input-handling views were being diffed on every tick. AetherEngineDemo never reads that clock in its main view body, which is why it sat around 5%.

    The fix confines that 10 Hz read to a small subtitle overlay that does nothing when no subtitle cues are present. With subtitles off, undisturbed playback now establishes no per-tick work in the player container at all. With subtitles on, only the overlay updates, not the whole tree.

    Because this is a SwiftUI efficiency issue rather than decode or render, the improvement should be most visible on Intel. Could you grab 0.9.11 from the releases page and check whether idle-playback CPU on your Mac mini comes down toward the AetherEngineDemo and QuickTime range? A before/after on the same movie (undisturbed, controls hidden, no Stats window) would be ideal.

    Thanks for the report and the profiling suggestion.

  3. DrHurt commented on Jul 15, 2026

    @DrHurt
    Author

    Did a quick test today with AetherPlayer 0.11 and MacDemo 5.0.7

    Mixed findings, but overall positive:

    CPU usage is now comparable with MKV (native) and AVI (sw) files.
    Subtitles (SRT) add an extra 1-2% when enabled.

    MP4 files have a higher CPU usage in AetherPlayer by about 2-3% (even without subtitles).

    Also some, but not all, mp4 files seem to be outright failing to play in both AetherPlayer and MacDemo but play normally in QuickTime. I’ll do more testing later and post some logs.

  4. superuser404notfound commented on Jul 16, 2026

    @superuser404notfound
    Owner

    Thanks for the retest, that is exactly the result I was hoping for on the idle-CPU side: MKV and AVI now sitting in the same range, and 1-2% with SRT enabled is the expected cost of the overlay actually doing work.

    The two MP4 findings are new, and I would like to chase them separately:

    1. The files that refuse to play. Since they fail in both AetherPlayer and MacDemo but play in QuickTime, this is in the engine, not the app, so logs from either one are fine. Alongside the logs, could you attach a mediainfo dump (or ffprobe -show_format -show_streams <file>) for one or two of the failing files? The interesting bits are the exact video/audio/subtitle codecs and whether the file is faststart (mediainfo reports this as "IsStreamable"). If a failing file is small enough to share, or you can cut a short sample that still reproduces, even better.

    2. The 2-3% higher CPU on MP4 without subtitles. Is that comparing the same content across containers, or different files? If you happen to have the same movie as both MKV and MP4, that pair would cleanly separate container routing from codec differences.

    No rush, whenever you get around to the testing. Thanks again for the thorough profiling work on this one.

  5. superuser404notfound commented on Jul 18, 2026

    @superuser404notfound
    Owner

    Chased finding 1 (the MP4s that refuse to play) and I think I have it, without the logs yet.

    Both AetherPlayer and MacDemo drive the same native path: the file is remuxed to fMP4 and handed to AVPlayer over the loopback. I could not reproduce the failure on Apple Silicon. I ran a full matrix through the engine (H.264 High 10 / 4:2:2 / 4:4:4, HEVC Rext 4:2:2 10-bit, plus edit lists, negative CTS, moov-at-end) and every one reached readyToPlay and played, which rules out the HLS CODECS manifest gate and the usual container quirks and points at hardware decode capability.

    The gap: AVPlayer accepts the HLS CODECS string for those high profiles, so the item reaches readyToPlay, but a Mac whose VideoToolbox has no decoder for the profile then renders nothing. Intel Macs have no HW decoder for H.264 High 4:2:2 / 4:4:4 / High-10 or HEVC Rext, and QuickTime plays them through its own software decoder. Unlike AV1, which is already gated on VTIsHardwareDecodeSupported, H.264 and HEVC had no per-format capability check and no software fallback, so those files dead-ended.

    Fixed in AetherPlayer 0.11.1 (bundling AetherEngine 5.8.3): a per-format VTDecompressionSession probe at load. If VideoToolbox cannot hardware-decode the exact format, the source routes to the software decoder (libavcodec), which handles all of these. Apple Silicon keeps hardware-decoding them on the native path, so nothing changes there.

    The signed .dmg is on the release: https://github.com/superuser404notfound/AetherPlayer/releases/tag/v0.11.1 (existing installs also pick it up via Sparkle).

    Two things when you get a chance:

    1. Do the files that used to show nothing now play on the mini?

    2. To confirm this is the cause rather than a lookalike, the ffprobe you offered on one failing file would nail it:

      ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,profile,pix_fmt -of default=noprint_wrappers=1 FILE
      

      If it comes back High 4:2:2 / 4:4:4 / High-10 or HEVC Rext (a non-4:2:0 or a 10/12-bit pix_fmt), that is it. If it is plain 8-bit 4:2:0, something else is going on and the logs would still help.

    Finding 2 (the 2-3% higher CPU on MP4) is untouched by this and still worth the same-movie MKV/MP4 pair when you have it, to separate container routing from codec.

  6. DrHurt commented on Jul 19, 2026

    @DrHurt
    Author

    The problem with my non-functioning mp4 is not AVPlayer capability. It's a regression between 0.8.1 & 0.9.0 (I tested all versions because those files were working previously).

    More data points:
    Original File: MP4 DV 8.1 + EAC3 Atmos + 36 text subtitle tracks

    • QuickTime plays file with no problem
    • AetherPlayer: MP4: not working, frozen at 00:00
    • AetherPlayer MKV: same movie (manually remuxed to MKV), WORKS
    • AetherPlayer 0.8.1 works, BUT 0.9.0 onwards is broken so it's a regression between those 2 versions.
    • AetherPlayer on iPhone: same MP4 also not working so it's not an Intel or SDR display problem

    So the problem is very specific to mp4 + DV + Atmos + lots of text subtitles in AetherPlayer after 0.8.1

    I'll do more digging later & logs later.

  7. DrHurt commented on Jul 20, 2026

    @DrHurt
    Author

    Further info:

    Files that do not work identify as mp42/isom (and contain metadata like cover art and media info)
    Files that DO work identify as mp41/mp42/isom

    This is an engine-side regression that happened sometime between 0.8.1 and 0.9.0

  8. superuser404notfound commented on Jul 22, 2026

    @superuser404notfound
    Owner

    Thank you, that 0.8.1-to-0.9.0 bisection is the crucial clue, and it points at a specific change.

    In that window the engine changed how it routes Dolby Vision and HDR. Before, a DV file was handed to AVPlayer as a bare media playlist. After, on an HDR-capable display it is handed a proper master playlist. That change is deliberate and needed for two reasons: the master is where Dolby Vision is signaled to the system (the SUPPLEMENTAL-CODECS attribute), and it is also the only place embedded subtitle tracks can be exposed as selectable renditions. A DV movie with 36 subtitle tracks specifically wants that master, so routing it back to a bare media playlist would drop both DV and every subtitle track.

    On my synthetic DV 8.1 files the master is accepted and plays, so the master path itself is sound. Your real files produce a master that AVPlayer on your devices does not accept, and I need to see exactly what is in it and how it fails. This is the same class of issue as a recent HEVC one where a single wrong attribute in the master made AVPlayer reject the whole item.

    One detail already fits and is worth stating: on your Intel mini with an SDR monitor the engine should route DV media-direct (no master), so the fact that the iPhone fails too is the important signal, because the iPhone is HDR-eligible and therefore does take the master. That places this in the master, not the display.

    From one failing file, three things would pin it down:

    1. The load log from AetherPlayer or MacDemo, specifically:

      • the [HLSVideoEngine] serving on http://127.0.0.1:.../master.m3u8 (...) line,
      • the master.m3u8 body: block right after it (the #EXT-X-STREAM-INF: line), and
      • the item status: does it reach item.status=readyToPlay and then sit at 0:00, or does it fail with an item.error / errorLog code? That AVFoundation/CoreMedia number (for example -11829, -12848, -11848, -1002) is the single most useful value.
    2. ffprobe of the same file:

      ffprobe -v error -select_streams v:0 \
        -show_entries stream=codec_name,codec_tag_string,profile,pix_fmt,r_frame_rate,avg_frame_rate \
        -show_entries stream_side_data=side_data_type FILE
      

      The DV profile and level, the codec tag (dvh1 vs dvhe vs hvc1), and the frame rate are what shape the master's signaling.

    3. If it is convenient, the same serving on ... line for the MKV that plays. That shows whether the MKV takes the master or the media path on your device, which tells me whether the difference is the container or the manifest.

    No rush. With the master line and the error code side by side I can pin the exact attribute AVPlayer is rejecting.

  9. superuser404notfound commented on Jul 25, 2026

    @superuser404notfound
    Owner

    Reproduced it here without the files, so there is something concrete to retest.

    The lead was the remark that the same film plays fine as an MKV. That pointed at how the MP4 was authored rather than at the container itself, so I went looking for a public MP4 with the same shape and found one in Dolby's own reference content (DolbyLaboratories/dolby-vision-contents, SolLevante Profile 8.1). That file is authored hev1: the HEVC parameter sets (VPS/SPS/PPS) travel in-band with the packets, and the config record in the container is just its 23-byte header with no parameter-set arrays. It is exactly what MP4Box ...:xps_inband produces, which is the recipe most Dolby Vision MP4 authoring guides recommend.

    Three separate defects fell out of that one file:

    1. Frozen at 00:00. The engine has a pass that recovers those in-band parameter sets and rebuilds the config record. It scanned for them from whatever position an earlier index pass had left the file at, so on a feature-length file (263 s, keyframes every 2 s) it read 16 packets from the middle of a GOP, found nothing, and wrote an empty config record into the init segment. MP4Box calls the resulting segment an invalid ISO file. AVPlayer accepts the playlist, downloads media, fills its whole forward buffer, and never renders a frame. The error it raises is CoreMediaErrorDomain -19601, which is not one of the codes the master-to-media fallback watches for, so nothing recovered the session. That is the frozen-at-00:00 report.

    2. The extra CPU on MP4. The hardware-capability probe builds a decoder description from the config record and asks VideoToolbox for a hardware session. With no parameter sets in the record there is no SPS to configure a decoder from, so the session create fails. That says nothing about hardware support, but the probe read it as "no hardware decoder" and sent every such file to the software decoder, on every machine including Apple Silicon. That is the second finding, the 2 to 3 percent.

    Those two had to be fixed together: fixing the probe alone turns these files from "plays, on the software path" into "frozen".

    3. While in there, the derived HEVC codec string was declaring its profile-compatibility flags without the bit reversal RFC 6381 requires, so 10-bit sources were advertising a variant that misdescribed their own bitstream.

    All three are in AetherEngine 5.23.3 and shipped in AetherPlayer 0.13.1 (Sparkle will offer it as well). On the Dolby asset the difference is measurable end to end: before, software decode; with only the probe fixed, native and frozen; now native, config record rebuilt from 23 to 135 bytes, clock running.

    Whether this is the same defect as the one on the Intel Mac mini is the open question, so a retest with the failing files would help. If one of them still does not play, the failure path now logs a line naming exactly what the scan saw:

    [HLSVideoEngine] in-band parameter-set scan found none: packets=16 vps=false sps=false pps=false
    

    That line plus the serving on ... line above it is enough to take it further, and it is a lot less to dig out than the full log request from before.

  10. DrHurt commented on Jul 26, 2026

    @DrHurt
    Author

    I’ll give that a try when I’m back home! Sorry summer holidays with family now.

    I can test my file on AetherPlayer on iPhone if you want. I have the file on my iPhone. Just need an up to date build on TestFlight.

  11. 4 remaining items

  12. DrHurt commented on Aug 3, 2026

    @DrHurt
    Author

    The latest demo crashes immediately and fails to launch.

    Process:               DemoPlayerMac [962]
    Path:                  /Users/USER/Desktop/AetherEngine Demo.app/Contents/MacOS/DemoPlayerMac
    Identifier:            de.superuser404.AetherEngine.DemoPlayer
    Version:               6.5.6 (6.5.6)
    Code Type:             X86-64 (Native)
    Parent Process:        launchd [1]
    User ID:               501
    
    Date/Time:             2026-08-03 17:59:55.1863 +0100
    OS Version:            macOS 15.7.1 (24G231)
    Report Version:        12
    Anonymous UUID:        35FEC40D-29AD-5F05-59DC-CD1081700F22
    
    Sleep/Wake UUID:       23EC297B-D070-4BAC-8195-AF2B4A8937A6
    
    Time Awake Since Boot: 800 seconds
    Time Since Wake:       121 seconds
    
    System Integrity Protection: enabled
    
    Dyld Error Message:
      1
    
    Crashed Thread:        0
    
    Exception Type:        EXC_CRASH (SIGABRT)
    Exception Codes:       0x0000000000000000, 0x0000000000000000
    
    Termination Reason:    Namespace DYLD, Code 1 Library missing
    Library not loaded: @rpath/Libavcodec.framework/Versions/A/Libavcodec
    Referenced from: <7F304E33-DDCB-393F-840F-87A905A67B78> /Users/USER/Desktop/AetherEngine Demo.app/Contents/MacOS/DemoPlayerMac
    Reason: tried: '/usr/lib/swift/Libavcodec.framework/Versions/A/Libavcodec' (no such file, not in dyld cache), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/Libavcodec.framework/Versions/A/Libavcodec' (no such file), '/Users/USER/Desktop/AetherEngine Demo.app/Contents/lib/Libavcodec.framework/Versions/A/Libavcodec' (no such file), '/usr/lib/swift/Libavcodec.framework/Versions/A/Libavcodec' (no such file, not in dyld cache), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/Libavcodec.framework/Versions/A/Libavcodec' (no such file), '/Users/USER/Desktop/AetherEngine Demo.app/Contents/lib/Libavcodec.framework/Versions/A/Libavcodec' (no such file)
    (terminated at launch; ignore backtrace)
    
    
    Thread 0 crashed with X86 Thread State (64-bit):
      rax: 0x0000000002000209  rbx: 0x0000000000000001  rcx: 0x00007ff7bda73028  rdx: 0x00007ff7bda73490
      rdi: 0x0000000000000006  rsi: 0x0000000000000001  rbp: 0x00007ff7bda73070  rsp: 0x00007ff7bda73028
       r8: 0x00007ff7bda73090   r9: 0x0000000000000000  r10: 0x000000000000008e  r11: 0x0000000000000246
      r12: 0x0000000000000000  r13: 0x00007ff7bda73490  r14: 0x0000000000000006  r15: 0x000000000000008e
      rip: 0x00007ff81039f502  rfl: 0x0000000000000246  cr2: 0x0000000000000000
      
    Logical CPU:     0
    Error Code:      0x02000209 
    Trap Number:     133
    
    
    Binary Images:
           0x10248b000 -        0x102825fff de.superuser404.AetherEngine.DemoPlayer (6.5.6) <7f304e33-ddcb-393f-840f-87a905a67b78> /Users/USER/Desktop/AetherEngine Demo.app/Contents/MacOS/DemoPlayerMac
        0x7ff81033c000 -     0x7ff8103d66c7 dyld (*) <f2ac8d7d-a591-365c-800c-8f2703203169> /usr/lib/dyld
                   0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
    
    External Modification Summary:
      Calls made by other processes targeting this process:
        task_for_pid: 0
        thread_create: 0
        thread_set_state: 0
      Calls made by this process:
        task_for_pid: 0
        thread_create: 0
        thread_set_state: 0
      Calls made by all processes on this machine:
        task_for_pid: 0
        thread_create: 0
        thread_set_state: 0
    
    VM Region Summary:
    ReadOnly portion of Libraries: Total=168.5M resident=0K(0%) swapped_out_or_unallocated=168.5M(100%)
    Writable regions: Total=8236K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8236K(100%)
    
                                    VIRTUAL   REGION 
    REGION TYPE                        SIZE    COUNT (non-coalesced) 
    ===========                     =======  ======= 
    STACK GUARD                       56.0M        1 
    Stack                             8192K        1 
    VM_ALLOCATE                          4K        1 
    __DATA                             288K        3 
    __DATA_CONST                       134K        2 
    __DATA_DIRTY                         7K        1 
    __LINKEDIT                       164.3M        3 
    __TEXT                            4312K        2 
    __TPRO_CONST                          8        1 
    shared memory                        8K        2 
    ===========                     =======  ======= 
    TOTAL                            233.0M       17 
    
    
    
    -----------
    Full Report
    -----------
    
    {"app_name":"DemoPlayerMac","timestamp":"2026-08-03 17:59:55.00 +0100","app_version":"6.5.6","slice_uuid":"7f304e33-ddcb-393f-840f-87a905a67b78","build_version":"6.5.6","platform":1,"bundleID":"de.superuser404.AetherEngine.DemoPlayer","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 15.7.1 (24G231)","roots_installed":0,"name":"DemoPlayerMac","incident_id":"BB9C53E3-9FEA-46C9-A72D-BC596372509F"}
    {
      "uptime" : 800,
      "procRole" : "Default",
      "version" : 2,
      "userID" : 501,
      "deployVersion" : 210,
      "modelCode" : "Macmini8,1",
      "coalitionID" : 1169,
      "osVersion" : {
        "train" : "macOS 15.7.1",
        "build" : "24G231",
        "releaseType" : "User"
      },
      "captureTime" : "2026-08-03 17:59:55.1863 +0100",
      "codeSigningMonitor" : 0,
      "incident" : "BB9C53E3-9FEA-46C9-A72D-BC596372509F",
      "pid" : 962,
      "cpuType" : "X86-64",
      "roots_installed" : 0,
      "bug_type" : "309",
      "procLaunch" : "2026-08-03 17:59:55.1685 +0100",
      "procStartAbsTime" : 806601574875,
      "procExitAbsTime" : 806618596384,
      "procName" : "DemoPlayerMac",
      "procPath" : "\/Users\/USER\/Desktop\/AetherEngine Demo.app\/Contents\/MacOS\/DemoPlayerMac",
      "bundleInfo" : {"CFBundleShortVersionString":"6.5.6","CFBundleVersion":"6.5.6","CFBundleIdentifier":"de.superuser404.AetherEngine.DemoPlayer"},
      "storeInfo" : {"deviceIdentifierForVendor":"EA88163C-8EF3-50CC-8A65-D4155C9C797F","thirdParty":true},
      "parentProc" : "launchd",
      "parentPid" : 1,
      "coalitionName" : "de.superuser404.AetherEngine.DemoPlayer",
      "crashReporterKey" : "35FEC40D-29AD-5F05-59DC-CD1081700F22",
      "appleIntelligenceStatus" : {"state":"unavailable","reasons":["deviceNotCapable"]},
      "codeSigningID" : "de.superuser404.AetherEngine.DemoPlayer",
      "codeSigningTeamID" : "4NY63S72W9",
      "codeSigningFlags" : 570491649,
      "codeSigningValidationCategory" : 6,
      "codeSigningTrustLevel" : 4294967295,
      "codeSigningAuxiliaryInfo" : 0,
      "bootSessionUUID" : "E8B3B623-0F48-4990-9BD4-E6AA6965D444",
      "wakeTime" : 121,
      "fatalDyldError" : 1,
      "sleepWakeUUID" : "23EC297B-D070-4BAC-8195-AF2B4A8937A6",
      "sip" : "enabled",
      "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
      "termination" : {"code":1,"flags":518,"namespace":"DYLD","indicator":"Library missing","details":["(terminated at launch; ignore backtrace)"],"reasons":["Library not loaded: @rpath\/Libavcodec.framework\/Versions\/A\/Libavcodec","Referenced from: <7F304E33-DDCB-393F-840F-87A905A67B78> \/Users\/USER\/Desktop\/AetherEngine Demo.app\/Contents\/MacOS\/DemoPlayerMac","Reason: tried: '\/usr\/lib\/swift\/Libavcodec.framework\/Versions\/A\/Libavcodec' (no such file, not in dyld cache), '\/System\/Volumes\/Preboot\/Cryptexes\/OS\/usr\/lib\/swift\/Libavcodec.framework\/Versions\/A\/Libavcodec' (no such file), '\/Users\/USER\/Desktop\/AetherEngine Demo.app\/Contents\/lib\/Libavcodec.framework\/Versions\/A\/Libavcodec' (no such file), '\/usr\/lib\/swift\/Libavcodec.framework\/Versions\/A\/Libavcodec' (no such file, not in dyld cache), '\/System\/Volumes\/Preboot\/Cryptexes\/OS\/usr\/lib\/swift\/Libavcodec.framework\/Versions\/A\/Libavcodec' (no such file), '\/Users\/USER\/Desktop\/AetherEngine Demo.app\/Contents\/lib\/Libavcodec.framework\/Versions\/A\/Libavcodec' (no such file)"]},
      "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
      "faultingThread" : 0,
      "threads" : [{"triggered":true,"id":12033,"threadState":{"r13":{"value":140702015501456},"rax":{"value":33554953},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":6},"rsi":{"value":1},"r8":{"value":140702015500432},"cr2":{"value":0},"rdx":{"value":140702015501456},"r10":{"value":142},"r9":{"value":0},"r15":{"value":142},"rbx":{"value":1},"trap":{"value":133},"err":{"value":33554953},"r11":{"value":582},"rip":{"value":140703400850690,"matchesCrashFrame":1},"rbp":{"value":140702015500400},"rsp":{"value":140702015500328},"r12":{"value":0},"rcx":{"value":140702015500328},"flavor":"x86_THREAD_STATE","rdi":{"value":6}},"frames":[{"imageOffset":406786,"symbol":"__abort_with_payload","symbolLocation":10,"imageIndex":1},{"imageOffset":543223,"symbol":"abort_with_payload_wrapper_internal","symbolLocation":82,"imageIndex":1},{"imageOffset":543273,"symbol":"abort_with_payload","symbolLocation":9,"imageIndex":1},{"imageOffset":44229,"symbol":"dyld4::halt(char const*, dyld4::StructuredError const*)","symbolLocation":343,"imageIndex":1},{"imageOffset":30973,"symbol":"dyld4::prepare(dyld4::APIs&, mach_o::Header const*)","symbolLocation":4300,"imageIndex":1},{"imageOffset":26655,"symbol":"dyld4::start(dyld4::KernelArgs*, void*, void*)::$_0::operator()() const","symbolLocation":239,"imageIndex":1},{"imageOffset":25818,"symbol":"start","symbolLocation":2970,"imageIndex":1}]}],
      "usedImages" : [
      {
        "source" : "P",
        "arch" : "x86_64",
        "base" : 4333285376,
        "CFBundleShortVersionString" : "6.5.6",
        "CFBundleIdentifier" : "de.superuser404.AetherEngine.DemoPlayer",
        "size" : 3780608,
        "uuid" : "7f304e33-ddcb-393f-840f-87a905a67b78",
        "path" : "\/Users\/USER\/Desktop\/AetherEngine Demo.app\/Contents\/MacOS\/DemoPlayerMac",
        "name" : "DemoPlayerMac",
        "CFBundleVersion" : "6.5.6"
      },
      {
        "source" : "P",
        "arch" : "x86_64",
        "base" : 140703400443904,
        "size" : 632520,
        "uuid" : "f2ac8d7d-a591-365c-800c-8f2703203169",
        "path" : "\/usr\/lib\/dyld",
        "name" : "dyld"
      },
      {
        "size" : 0,
        "source" : "A",
        "base" : 0,
        "uuid" : "00000000-0000-0000-0000-000000000000"
      }
    ],
      "sharedCache" : {
      "base" : 140703371968512,
      "size" : 30064771072,
      "uuid" : "c0dd2db5-78c9-3f61-ac15-fd6944266296"
    },
      "vmSummary" : "ReadOnly portion of Libraries: Total=168.5M resident=0K(0%) swapped_out_or_unallocated=168.5M(100%)\nWritable regions: Total=8236K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8236K(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nSTACK GUARD                       56.0M        1 \nStack                             8192K        1 \nVM_ALLOCATE                          4K        1 \n__DATA                             288K        3 \n__DATA_CONST                       134K        2 \n__DATA_DIRTY                         7K        1 \n__LINKEDIT                       164.3M        3 \n__TEXT                            4312K        2 \n__TPRO_CONST                          8        1 \nshared memory                        8K        2 \n===========                     =======  ======= \nTOTAL                            233.0M       17 \n",
      "legacyInfo" : {
      "threadTriggered" : {
    
      }
    },
      "logWritingSignature" : "36973633402db38831821ce24408d9ae0e5ffcc2",
      "trialInfo" : {
      "rollouts" : [
        {
          "rolloutId" : "63f9578e238e7b23a1f3030a",
          "factorPackIds" : {
    
          },
          "deploymentId" : 240000005
        },
        {
          "rolloutId" : "6434420a89ec2e0a7a38bf5a",
          "factorPackIds" : {
    
          },
          "deploymentId" : 240000011
        }
      ],
      "experiments" : [
    
      ]
    }
    }
    
  13. superuser404notfound commented on Aug 4, 2026

    @superuser404notfound
    Owner

    That ffprobe rules out the fix I shipped last time, and it does so cleanly.

    codec_tag_string=hvc1 means the HEVC parameter sets sit in the container's config record, out of band. The defect I found and fixed in 0.13.1 is specific to hev1 files, where that record is empty and the parameter sets travel with the packets instead. Different file shape, so 0.13.1 could not have changed anything for this one. Those fixes were real, they were just not this.

    Worth stating so nobody chases it again: the first line of that output, stream 41, missing mandatory atoms, broken header, is a genuine structural defect in the file, and I can now produce it exactly (a track whose sample table is missing its time-to-sample atom). I built a file with the same shape as yours around it: 44 streams, Dolby Vision Profile 8.1 tagged hvc1, E-AC-3, cover art, 41 text subtitle tracks, 260 seconds, planned into 52 segments. It plays clean on the current engine, with and without the broken track. So neither that track nor the sheer track count is what stops your file.

    I also have to correct something I wrote earlier in this thread. I pointed at the master playlist as the likely cause on the Mac. Reading the routing code again: on macOS the engine only serves a master for an HDR source when the display reports itself eligible for HDR playback. On an SDR monitor it serves a plain media playlist, so on that machine the master cannot be what fails. On the iPhone, which is HDR eligible, it remains a candidate. That is either two different failures or one cause I have not found, and I cannot tell which from here.

    Which brings me to the actual reason this has taken so long, and it is on my side. I have asked three times for a specific log line. A release build of AetherPlayer never wrote a log at all. The engine's diagnostics were installed only in debug builds, and only to stdout, which nothing reaching a normal install would capture. There was nothing there for anyone to find, and I kept asking anyway.

    0.14.0 fixes that. Every build writes the engine's diagnostics to a file, and there are two one-click ways to hand it over:

    • macOS: Help > Reveal Diagnostics Log in Finder, or Help > Save Diagnostics Log… to drop a copy somewhere you can attach it from
    • iOS / iPadOS: the share button in the Home toolbar

    The log opens with the app version, the OS, the hardware and whether the display is eligible for HDR playback, then carries the load decisions, the served playlist, the decoder route and any error code the player raised. Open the file that fails, let it sit at 00:00 for a few seconds, then export. That single file should settle both the Mac and the iPhone case.

    One thing to try first: 0.14.0 is the first release since 0.13.1 and carries fifty-one engine releases, so simply opening the file again is worth a minute. If it plays now, that is also an answer.

    Thanks for sticking with this one, and for the ffprobe in particular. Ruling out my own fix is worth more than another round of guesses.

  14. DrHurt commented on Aug 9, 2026

    @DrHurt
    Author

    Update on this: definite progress, file now plays with 0.14 but there's another issue.

    Problem:
    CPU usage is 20-25% during playback on the native route. Same broken file uses around 4% in QuickTime.
    Same broken file manually remuxed to mkv runs at around 4% cpu in AetherPlayer.

    Generally, AetherPlayer consistently has higher CPU usage playing mp4 compared to the same file in QuickTime AND same streams in mkv in AetherPlayer. CPU in AetherPlayer is around 6-7% compared to 3-4% in QuickTime and 3-4% in Aether with mkv.

    Cannot compare with Engine Demo as it crashes on launch like the previous version of AetherPlayer.

    The log doesn't show anything obvious. I suspect this is coming from the mp4 demuxer + the on-the-fly fixes for the broken files.

    Log:

    === AetherPlayer diagnostics ===
    opened      2026-08-09 20:42:54 +01:00
    app         0.14.0 (58) release
    os          Version 15.7.1 (Build 24G231)
    hardware    Macmini8,1 / x86_64 / 6 cpus / 16 GB
    hdr         AVPlayer.eligibleForHDRPlayback=false
    note        contains media file names, no paths beyond them
    ================================
    20:43:02.068 [AetherPlayer] open movie.mp4 forceLive=false
    20:43:02.125 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fe16ba1aa90] [warning] UDTA parsing failed retrying raw
    20:43:02.125 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fe16ba1aa90] [warning] stream 0, timescale not set
    20:43:02.129 [AetherEngine] load url=file:///Users/user/Desktop/movie.mp4 source-format=dolbyVision effective-format=sdr rate=23.976
    20:43:02.129 [VTProbe] codec=av01 hwSupported=false
    20:43:02.224 [VTProbe] canHardwareDecode codec=173 1920x1080 -> true (status=0)
    20:43:02.224 [AetherEngine] dispatch: codec=173 → native
    20:43:02.226 [AetherEngine] native subtitles: prepare=false eager=false textTracks=1 bitmapOCR=0 enable=false
    20:43:02.226 [AetherEngine] A53 SEI caption tap armed (synthetic id 99608)
    20:43:02.226 [HLSVideoEngine] video codecpar: codec=173 1920x1080 profile=2 level=120 fieldOrder=0 extradata=184B head=0102200000009000
    20:43:02.226 [HLSVideoEngine] cue prewarm: seek to 2924.4s took 0.3ms
    20:43:02.227 [HLSVideoEngine] segment plan: keyframe-aligned, 1836 IRAPs → 1391 segments [firstKeyframePts=-320704 (-3.207s) videoStream.start_time=0 format.start_time=0us plan[0].startSeconds=0.000]
    20:43:02.227 [HLSVideoEngine] DV source: profile=8 compat=1 level=3 rpu=1 el=0 bl=1 color_primaries=9 color_trc=16 color_space=9
    20:43:02.254 [HLSVideoEngine] segment retention budget: 2048 MiB (volumeAvailable=12665 MiB, forwardWindow=10 seg)
    20:43:02.254 [HLSVideoEngine] audio: codec=eac3 → stream-copy as `ec-3` [JOC=Atmos] (fallback duration=1536 in audioTb 1/48000)
    20:43:02.254 [mp4 @ 0x7fe16af47c20] [warning] track 1: codec frame size is not set
    20:43:02.254 [HLSSegmentProducer] init OK (baseIndex=0, segments=1360, targetDur=4.000s, srcVideoTb=1/100000) audio=stream-copy inTb=1/48000
    20:43:02.254 [HLSVideoEngine] EAC3+JOC Atmos: stream-copy engaged; DD+/JOC bitstream preserved for the downstream renderer (HDMI passthrough / AirPods spatial; plain Bluetooth A2DP / LE downmixes natively)
    20:43:02.254 [HLSVideoEngine] prepared: codec=hvc1.2.4.L120,ec-3 resolution=1920x1080 fps=23.987 range=PQ DV=profile81 segments=1360 duration=5848.7s
    20:43:02.255 [HLSLocalServer] Listening on port 49179
    20:43:02.255 [HLSVideoEngine] serving on http://127.0.0.1:49179/media.m3u8 (dvModeAvailable=false effectiveDvMode=false panelIsHDR=false displaySupportsHDR=false matchContent=true sourceIsHDR=true useMaster=false videoRange=pq dvVariant=profile81)
    20:43:02.255 [HLSSegmentProducer] pump thread qos=userInitiated
    20:43:02.255 [HLSSegmentProducer] video gate open: actual=-320704 anchorPts=0 target=-9223372036854775808 desired=0 shift=-320704 videoPID=0 reconstructed=false
    20:43:02.255 [HLSSegmentProducer] first video pkt: dts=0 pts=320704 duration=4200 size=1040 (fallback=4168 in srcVideoTb)
    20:43:02.255 [HLSSegmentProducer] #65 ledger seg-0 base=0 itemAxis=0.000s sourceStart=-3.207s planSource=-3.207s drift=0.000s shift=-3.207s
    20:43:02.255 [mp4 @ 0x7fe16bb5b7a0] [warning] track 1: codec frame size is not set
    20:43:02.256 [HLSSegmentProducer] audio gate open: actual=0 target=-153938 desired=0 shift=-153938 gapMs=0.0
    20:43:02.256 [HLSSegmentProducer] init.mp4 captured (1400 B)
    20:43:02.258 [HLSSegmentProducer] #65 ledger seg-1 base=0 itemAxis=3.667s sourceStart=0.460s planSource=1.793s drift=-1.333s shift=-3.207s
    20:43:02.258 [NativeAVPlayerHost] #1 load url=http://127.0.0.1:49179/media.m3u8 startPos=nil headers=none
    20:43:02.258 [NativeAVPlayerHost] #1 layer.isReadyForDisplay=false t+0.00s
    20:43:02.260 [NativeAVPlayerHost] #1 timeControlStatus=paused reason=- t+0.00s
    20:43:02.260 [NativeAVPlayerHost] #1 rate=1.0
    20:43:02.260 [NativeAVPlayerHost] #1 timeControlStatus=waitingToPlay reason=AVPlayerWaitingWhileEvaluatingBufferingRateReason t+0.00s
    20:43:02.261 [NativeAVPlayerHost] #1 rate=1.0
    20:43:02.261 [NativeAVPlayerHost] #1 timeControlStatus=waitingToPlay reason=AVPlayerWaitingWhileEvaluatingBufferingRateReason t+0.00s
    20:43:02.261 [NativeAVPlayerHost] #1 rate=1.0
    20:43:02.261 [NativeAVPlayerHost] #1 timeControlStatus=waitingToPlay reason=AVPlayerWaitingWhileEvaluatingBufferingRateReason t+0.00s
    20:43:02.265 [HLSSegmentProducer] #65 ledger seg-2 base=0 itemAxis=10.000s sourceStart=6.793s planSource=6.793s drift=0.000s shift=-3.207s
    20:43:02.272 [HLSSegmentProducer] #65 ledger seg-3 base=0 itemAxis=18.125s sourceStart=14.918s planSource=14.918s drift=0.000s shift=-3.207s
    20:43:02.310 [HLSSegmentProducer] #65 ledger seg-4 base=0 itemAxis=26.208s sourceStart=23.001s planSource=23.001s drift=0.000s shift=-3.207s
    20:43:02.321 [HLSSegmentProducer] #65 ledger seg-5 base=0 itemAxis=34.291s sourceStart=31.084s planSource=31.084s drift=0.000s shift=-3.207s
    20:43:02.332 [HLSSegmentProducer] #65 ledger seg-6 base=0 itemAxis=42.333s sourceStart=39.126s planSource=39.126s drift=0.000s shift=-3.207s
    20:43:02.340 [HLSSegmentProducer] #65 ledger seg-7 base=0 itemAxis=50.375s sourceStart=47.168s planSource=47.168s drift=0.000s shift=-3.207s
    20:43:02.349 [HLSSegmentProducer] #65 ledger seg-8 base=0 itemAxis=58.416s sourceStart=55.209s planSource=55.209s drift=0.000s shift=-3.207s
    20:43:02.360 [HLSSegmentProducer] #65 ledger seg-9 base=0 itemAxis=66.458s sourceStart=63.251s planSource=63.251s drift=0.000s shift=-3.207s
    20:43:02.371 [HLSSegmentProducer] #65 ledger seg-10 base=0 itemAxis=74.500s sourceStart=71.293s planSource=71.293s drift=0.000s shift=-3.207s
    20:43:02.381 [AetherEngine] VOD shift published: -3.207s (prev 0.000s, delta -3.207s, changed=YES) seamAt=0.000s seams=1 foldShift=-3.207s presentationOrigin=0.000s rawClock=0.00s avBufAhead=0.00s
    20:43:02.424 [HLSLocalServer] GET /media.m3u8 HTTP/1.1
    20:43:02.424 [HLSLocalServer] #227 client 127.0.0.1 first request: GET /media.m3u8 HTTP/1.1
    20:43:02.424 [HLSLocalServer] first request headers fd=21: Host: 127.0.0.1:49179 | X-Playback-Session-Id: 759C3055-44E3-4CE2-9CFF-D9C695453977 | Accept: */* | User-Agent: AppleCoreMedia/1.0.0.24G231 (Macintosh; U; Intel Mac OS X 15_7_1; en_gb) | Accept-Language: en-GB,en;q=0.9 | Accept-Encoding: gzip | Connection: keep-alive
    20:43:02.424 [NativeAVPlayerHost] #1 asset.load(isPlayable) ok url=http://127.0.0.1:49179/media.m3u8 value=true
    20:43:02.425 [NativeAVPlayerHost] #1 asset.load(tracks) ok url=http://127.0.0.1:49179/media.m3u8 count=0
    20:43:02.425 [NativeAVPlayerHost] #1 timeControlStatus=waitingToPlay reason=AVPlayerWaitingToMinimizeStallsReason t+0.16s
    20:43:02.428 [NativeAVPlayerHost] #1 asset.load(duration) ok url=http://127.0.0.1:49179/media.m3u8 seconds=5848.735
    20:43:02.429 [HLSLocalServer] GET /init.mp4 HTTP/1.1
    20:43:02.517 [HLSLocalServer] GET /seg0.mp4 HTTP/1.1
    20:43:02.517 [NativeAVPlayerHost] #1 accessLog uri=http://127.0.0.1:49179/media.m3u8 server=127.0.0.1 bytes=131072 reqs=0
    20:43:02.522 [HLSSegmentProducer] #65 ledger seg-12 base=0 itemAxis=82.541s sourceStart=79.334s planSource=81.501s drift=-2.167s shift=-3.207s
    20:43:02.591 [NativeAVPlayerHost] #1 layer.isReadyForDisplay=true t+0.33s
    20:43:02.592 [HLSLocalServer] GET /seg1.mp4 HTTP/1.1
    20:43:02.621 [NativeAVPlayerHost] #1 item.status=readyToPlay
    20:43:02.621 [NativeAVPlayerHost] #1 timeControlStatus=playing reason=- t+0.36s
    20:43:02.621 [NativeAVPlayerHost] #1 item.videoTrack codec='hvc1' enabled=true dim=1920x1080 primaries=ITU_R_2020 transfer=SMPTE_ST_2084_PQ matrix=ITU_R_2020 fullRange=false (readyToPlay)
    20:43:02.621 [NativeAVPlayerHost] #1 item.audioTrack codec='ec-3' enabled=true sr=48000 ch=6 bits=0 fmt=ec-3 layoutTag=<missing> (readyToPlay)
    20:43:02.621 [NativeAVPlayerHost] #1 remote-HLS videoFormat=hdr10 subType='hvc1' transfer=SMPTE_ST_2084_PQ rate=0.000
    20:43:05.001 [HLSLocalServer] GET /seg2.mp4 HTTP/1.1
    20:43:05.001 [HLSSegmentProducer] pump qos -> utility (now=utility epochHead=10 target=2 lead=8)
    20:43:05.004 [HLSSegmentProducer] #65 ledger seg-13 base=0 itemAxis=84.708s sourceStart=81.501s planSource=83.709s drift=-2.208s shift=-3.207s
    20:43:12.584 [HLSLocalServer] GET /seg3.mp4 HTTP/1.1
    20:43:12.587 [HLSSegmentProducer] #65 ledger seg-14 base=0 itemAxis=86.916s sourceStart=83.709s planSource=85.584s drift=-1.875s shift=-3.207s
    20:43:20.649 [HLSLocalServer] GET /seg4.mp4 HTTP/1.1
    20:43:20.651 [HLSSegmentProducer] #65 ledger seg-15 base=0 itemAxis=88.791s sourceStart=85.584s planSource=87.918s drift=-2.334s shift=-3.207s
    20:43:28.744 [HLSLocalServer] GET /seg5.mp4 HTTP/1.1
    20:43:28.754 [HLSSegmentProducer] #65 ledger seg-17 base=0 itemAxis=96.791s sourceStart=93.584s planSource=94.668s drift=-1.084s shift=-3.207s
    
  15. superuser404notfound commented on Aug 10, 2026

    @superuser404notfound
    Owner

    Two separate things in that update, and the first one is squarely my fault.

    The demo crash is solved, and it was never the hardware

    The crash report posted on 3 August has the whole answer in it, and I did not read it carefully enough at the time:

    Termination Reason:    Namespace DYLD, Code 1 Library missing
    Library not loaded: @rpath/Libavcodec.framework/Versions/A/Libavcodec
    

    The demo bundle ships without the FFmpeg frameworks it links against. Those used to be linked statically, and the build script carried a note recording exactly that, ending with "if FFmpegBuild ever switches to dynamic frameworks, this is where they'd be copied to". It since did switch, because LGPL wants the libraries relinkable, and a comment cannot notice that happening. The binary today loads nine frameworks through @rpath and the bundle contained none of them, so that 6.5.6 demo could not launch on any machine, not just that one.

    Fixed in 89518ef. The frameworks are now copied in and signed, and the note is replaced by a check that fails the build when any @rpath dependency is missing from the bundle. A comment describing what someone ought to do was the actual defect.

    One thing that does not follow, though: AetherPlayer itself is built through Xcode, which embeds and signs those frameworks automatically, so this particular fault never applied to the app. If 0.13.1 also refused to launch, that is a different failure, and its crash report would be worth having on its own.

    On the CPU number, I could not reproduce it

    Rather than assert that, here is what I measured, so the negative result is checkable:

    • Container. Same streams as MP4 and as MKV, measuring demux and remux directly: 6240 frames in 0.04 s, roughly 6100x realtime, identical either way. A demuxer costing hundredths of a percent of a core cannot produce 20%.
    • Track count. A 44 track file (video, E-AC-3, cover art and 41 text tracks) against a 2 track cut of the same content, through the full engine. No difference.
    • A deliberately broken track, with its sample table stripped so it reproduces the missing mandatory atoms, broken header line. No difference.
    • Video bitrate. The same 17 minute source at 3.9 and at 20.3 Mbit/s: 4.3% against 5.7% of one core. Cost barely follows bitrate.
    • A profile of my own session. 99.9% of samples are the process waiting. There is no hot spot to find because there is no load to divide.

    So the suspicion about the mp4 demuxer and the on-the-fly repairs is, at least on this hardware and on files shaped like that one, not where the time goes. Something on that Mac is doing work that mine is not, and I cannot see it from here.

    The one measurement that would settle it

    A sample of the process while it is burning those 20-25%. macOS ships the tool, and it needs no install and no sudo (I verified that against a sandboxed, hardened-runtime build, which is the case that usually blocks it):

    sample AetherPlayer 20 -f ~/Desktop/aether-sample.txt
    

    Play the file, wait until CPU has settled at its steady 20-25%, then run that line. It writes a single text file. Its "Sort by top of stack" section names the functions actually consuming CPU, which replaces every guess above with a location. The same line with DemoPlayerMac in place of AetherPlayer works for the demo once it launches again.

    Worth saying plainly: this player will not match QuickTime here, by design. QuickTime plays the MP4 directly, whereas the engine demuxes it, remuxes it into fMP4 segments and serves them to AVPlayer over a local socket, which is work QuickTime never does. But 20-25% for MP4 against 4% for the same streams in MKV, both going through that identical path, is not explained by design, and that is the gap the sample should close.

    Thanks for the remux comparison especially. A control that isolates the container is what let me rule my own candidates out instead of shipping another guess against them.

  16. DrHurt commented on Aug 10, 2026

    @DrHurt
    Author

    I'll run that test when I get a chance. I'll also test with the updated DemoPlayerMac.

    Worth replying to your efficiency point specifically: AetherPlayer, despite the extra work, already matches and often exceeds the efficiency of QuickTime Player in my extensive testing! You should be VERY proud.

    AetherEngine is extremely efficient and I think this should be documented as a major advantage over other libs like VLC & MPV.

    I'm only pushing slightly because I like your project and want to help in whatever little ways I can. I care about efficiency because I use battery operated devices.

    You have done an incredible job with Aether and now I'm seeing it getting used in popular mainstream apps. You really have created the exoplayer of the Apple world, just like I said you would :) Congratulations.

  17. superuser404notfound commented on Aug 10, 2026

    @superuser404notfound
    Owner

    The demo builds and launches again: AetherEngine-Demo-6.19.4.dmg. Downloaded the published artifact, checked it passes Gatekeeper as notarized, and launched it, rather than trusting the build log.

    That restores the comparison that was unavailable. If the demo shows the same 20-25% on that file while a MKV remux of it stays low, the cost is in the engine and not in anything the player does around it, which narrows this considerably on its own. Both accept a sample the same way:

    sample DemoPlayerMac 20 -f ~/Desktop/demo-sample.txt
    

    Two rounds were needed for that DMG, which is worth admitting: the first fix embedded the frameworks but could not sign them, because the copies keep the read-only mode they carry inside the package. The check I had added passed anyway, since it verified the frameworks were present rather than that anything could actually find them. Presence is not resolvability, and a check that treats them as the same thing succeeds precisely when the failure it exists for happens.

  18. superuser404notfound commented on Aug 10, 2026

    @superuser404notfound
    Owner

    Thank you, that is generous. The correction is the useful part of it, though, so let me take it properly.

    "This player will not match QuickTime here, by design" was a structural assumption, not a measurement, and my own profile from the same day does not support it: 99.9% of the samples in that session were the process waiting. The demux, the remux and the loopback socket are real work, but nowhere near enough to be a ceiling. Reporting parity or better is therefore not surprising in hindsight, and I should not have framed the comparison as settled before measuring it. Withdrawn.

    On documenting the efficiency, that is worth doing and I would want to measure it before claiming it. "More efficient than VLC and mpv" only means something alongside the file, the route each player actually took, and how the CPU was sampled. Without that it is the sort of line that gets quoted back the first time someone's file lands on the software decoder and the number does not hold. So if it goes in the README it will be a comparison somebody else can rerun, not an adjective.

    The battery angle is the more interesting half of it anyway, and it does not follow from CPU percentages. Time in the efficiency cores is what moves energy on those devices, and that is measurable per process rather than arguable.

    No rush on the sample. The file plays, which was the part that mattered, and the CPU question will keep.

  19. DrHurt commented on Aug 10, 2026

    @DrHurt
    Author

    Quick test:

    The new demo app no longer crashes and plays the mp4 with about 4% cpu usage vs 4.4% in QuickTime and 17-25% in AetherPlayer. So that narrows it down to AetherPlayer not the engine.

    I'll get the sample later.

    I think Apple's HLS pipeline is just super optimised, even more than QuickTime direct play.

  20. superuser404notfound commented on Aug 10, 2026

    @superuser404notfound
    Owner

    I'll run that test when I get a chance. I'll also test with the updated DemoPlayerMac.

    Worth replying to your efficiency point specifically: AetherPlayer, despite the extra work, already matches and often exceeds the efficiency of QuickTime Player in my extensive testing! You should be VERY proud.

    AetherEngine is extremely efficient and I think this should be documented as a major advantage over other libs like VLC & MPV.

    I'm only pushing slightly because I like your project and want to help in whatever little ways I can. I care about efficiency because I use battery operated devices.

    You have done an incredible job with Aether and now I'm seeing it getting used in popular mainstream apps. You really have created the exoplayer of the Apple world, just like I said you would :) Congratulations.

    I also have to thank you for helping the project in its early stage and making it what it is today!

    Its so so crazy to already see it in projects like plezy or moonfin. 🤯

  21. superuser404notfound commented on Aug 10, 2026

    @superuser404notfound
    Owner

    That demo comparison found it. Cause identified, reproduced and fixed in 676f663.

    It is the cover art, decoded once a second

    The player writes the macOS Now-Playing surface on a throttled tick, roughly once a second for the whole session. That write decoded the embedded cover image every single time. The artwork bytes never change while a file plays, so it was a full image decode per second for a constant result, and MediaPlayer re-encodes the bitmap on top of it.

    Splitting the engine off is what made it findable, so the demo run was the decisive measurement rather than a formality. Once it pointed at the app, a profile of the app here showed PNG decoding as the largest running item, which named the mechanism.

    Reproduced on identical A/V, the only difference being an embedded poster-sized cover, 25 second windows:

    CPU PNG share of running samples
    cover, before 18.8% of a core 60.5%
    no cover 5.8% of a core 0%
    cover, after the fix 6.0% of a core 0%

    A file with a cover now costs what the same file without one costs.

    That accounts for each part of the report. The demo is cheap because it has no Now-Playing surface at all. QuickTime is cheap for the same reason. The MKV remux is cheap because ffmpeg does not carry the cover across in the form the engine surfaces as artwork, so there was nothing to decode, which is why this looked like a container problem and never was one. And an Intel machine pays more per decode than the one measured here, which fits 17-25% against 18.8%.

    The fix keeps the decoded image and rebuilds it only when the bytes actually change, which is the same gate the in-app cover view already used. Cleared on stop, so a following file cannot inherit the previous cover.

    Still worth having the sample

    Not to find this one, but as a check that nothing else remains once a build with the fix is in hand. If the number lands near the MKV figure on that file, this was all of it.

    The efficiency point from earlier holds up better now, too: the engine measured essentially idle throughout, and the cost was entirely in something the host did around it.

  22. superuser404notfound commented on Aug 10, 2026

    @superuser404notfound
    Owner

    The fix is out in 0.15.0, together with the engine jump from 6.7.0 to 6.19.4. Worth re-measuring the mp4 with cover art on your machine when you get to it.

  23. DrHurt commented on Aug 10, 2026

    @DrHurt
    Author

    This seems to have fixed it and as a bonus the long standing mp4 vs mkv difference seems to have also gone now.

    Now both mp4 & mkv have the same CPU as QuickTime +/- 1% with Aether sometimes being more efficient in this rough metric.

    Very well done!

    Unfortunately, I'm now getting a stall with one of the broken files after 18s:

    === AetherPlayer diagnostics ===
    opened      2026-08-10 16:09:27 +01:00
    app         0.15.0 (59) release
    os          Version 15.7.1 (Build 24G231)
    hardware    Macmini8,1 / x86_64 / 6 cpus / 16 GB
    hdr         AVPlayer.eligibleForHDRPlayback=false
    note        contains media file names, no paths beyond them
    ================================
    16:09:28.320 [AetherPlayer] open file.mp4 forceLive=false
    16:09:28.354 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8571030ab0] [warning] UDTA parsing failed retrying raw
    16:09:28.357 Last message repeated 3 times: [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8571030ab0] [warning] UDTA parsing failed retrying raw
    16:09:28.357 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff42650] [warning] UDTA parsing failed retrying raw
    16:09:28.359 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8571030ab0] [error] stream 41, missing mandatory atoms, broken header
    16:09:28.359 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8571030ab0] [warning] stream 0, timescale not set
    16:09:28.359 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8571030ab0] [warning] Attached picture on stream 41 has invalid size, ignoring
    16:09:28.361 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff42650] [warning] UDTA parsing failed retrying raw
    16:09:28.362 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff436a0] [warning] UDTA parsing failed retrying raw
    16:09:28.362 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff42650] [warning] UDTA parsing failed retrying raw
    16:09:28.362 Last message repeated 1 times: [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff42650] [warning] UDTA parsing failed retrying raw
    16:09:28.362 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff42650] [error] stream 41, missing mandatory atoms, broken header
    16:09:28.363 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff42650] [warning] stream 0, timescale not set
    16:09:28.363 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff42650] [warning] Attached picture on stream 41 has invalid size, ignoring
    16:09:28.364 [AetherEngine] load url=file:///Users/user/Desktop/file.mp4 source-format=dolbyVision effective-format=sdr rate=25.000
    16:09:28.364 [VTProbe] codec=av01 hwSupported=false
    16:09:28.365 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff436a0] [warning] UDTA parsing failed retrying raw
    16:09:28.365 [FrameDecode] Opened 1920x1080 codec=hevc threads=2
    16:09:28.366 Last message repeated 2 times: [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff436a0] [warning] UDTA parsing failed retrying raw
    16:09:28.366 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff436a0] [error] stream 41, missing mandatory atoms, broken header
    16:09:28.366 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff436a0] [warning] stream 0, timescale not set
    16:09:28.366 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff436a0] [warning] Attached picture on stream 41 has invalid size, ignoring
    16:09:28.369 [FrameDecode] Opened 1920x1080 codec=hevc threads=2
    16:09:28.394 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f85716075c0] [error] Referenced QT chapter track not found
    16:09:28.394 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f85716075c0] [warning] stream 0, timescale not set
    16:09:28.398 [FrameDecode] Opened 1920x800 codec=hevc threads=2
    16:09:28.424 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff43410] [error] Referenced QT chapter track not found
    16:09:28.424 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff43410] [warning] stream 0, timescale not set
    16:09:28.424 [FrameDecode] Opened 1920x800 codec=hevc threads=2
    16:09:28.508 [VTProbe] canHardwareDecode codec=173 1920x1080 -> true (status=0)
    16:09:28.508 [AetherEngine] dispatch: codec=173 → native
    16:09:28.508 [AetherEngine] native subtitles: prepare=false eager=false textTracks=36 bitmapOCR=0 enable=false
    16:09:28.508 [AetherEngine] A53 SEI caption tap armed (synthetic id 99608)
    16:09:28.508 [HLSVideoEngine] video codecpar: codec=173 1920x1080 profile=2 level=120 fieldOrder=0 extradata=184B head=0102200000009000
    16:09:28.508 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8571030ab0] [warning] Attached picture on stream 41 has invalid size, ignoring
    16:09:28.508 [HLSVideoEngine] cue prewarm: seek to 1268.3s took 0.3ms
    16:09:28.508 [HLSVideoEngine] segment plan: keyframe-aligned, 766 IRAPs → 603 segments [firstKeyframePts=-300000 (-3.000s) videoStream.start_time=0 format.start_time=0us plan[0].startSeconds=0.000]
    16:09:28.508 [HLSVideoEngine] DV source: profile=8 compat=1 level=4 rpu=1 el=0 bl=1 color_primaries=9 color_trc=16 color_space=9
    16:09:28.508 [HLSVideoEngine] segment retention budget: 2048 MiB (volumeAvailable=11913 MiB, forwardWindow=10 seg)
    16:09:28.508 [HLSVideoEngine] initial producer anchored at idx=124 (startPosition=549.76s)
    16:09:28.508 [HLSVideoEngine] audio: codec=aac → stream-copy as `mp4a.40.2` (fallback duration=1024 in audioTb 1/48000)
    16:09:28.509 [HLSSegmentProducer] init OK (baseIndex=124, segments=447, targetDur=4.000s, srcVideoTb=1/100000) audio=stream-copy inTb=1/48000
    16:09:28.509 [HLSVideoEngine] prepared: codec=hvc1.2.4.L120,mp4a.40.2 resolution=1920x1080 fps=24.971 range=PQ DV=profile81 segments=571 duration=2536.7s
    16:09:28.509 [HLSLocalServer] Listening on port 49254
    16:09:28.509 [HLSVideoEngine] serving on http://127.0.0.1:49254/media.m3u8 (dvModeAvailable=false effectiveDvMode=false panelIsHDR=false displaySupportsHDR=false matchContent=true sourceIsHDR=true useMaster=false videoRange=pq dvVariant=profile81)
    16:09:28.509 [HLSSegmentProducer] pump thread qos=userInitiated
    16:09:28.509 [HLSSegmentProducer] video gate open: actual=54632000 anchorPts=54896000 target=54632000 desired=54932000 shift=-300000 videoPID=0 reconstructed=false
    16:09:28.509 [HLSSegmentProducer] first video pkt: dts=54932000 pts=55196000 duration=4000 size=13025 (fallback=4004 in srcVideoTb)
    16:09:28.509 [HLSSegmentProducer] #65 ledger seg-124 base=124 itemAxis=549.320s sourceStart=546.320s planSource=546.320s drift=0.000s shift=-3.000s
    16:09:28.509 [HLSSegmentProducer] audio gate open: actual=26223616 target=26223360 desired=26367360 shift=-144000 gapMs=5.3
    16:09:28.509 [HLSSegmentProducer] #65 ledger seg-125 base=124 itemAxis=557.240s sourceStart=554.240s planSource=554.240s drift=0.000s shift=-3.000s
    16:09:28.509 [HLSSegmentProducer] init.mp4 captured (1432 B)
    16:09:28.513 Last message repeated 1 times: [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8571030ab0] [warning] Attached picture on stream 41 has invalid size, ignoring
    16:09:28.513 [in @ 0x60000373e1c0] [warning] Changing video frame properties on the fly is not supported by all filters.
    16:09:28.513 [in @ 0x60000373e1c0] [warning] filter context - w: 1920 h: 1080 fmt: 62 csp: unknown range: unknown alpha: unspecified, incoming frame - w: 1920 h: 1080 fmt: 62 csp: bt2020nc range: tv alpha: unspecified pts_time: 250.6
    16:09:28.513 [in @ 0x60000371f000] [warning] Changing video frame properties on the fly is not supported by all filters.
    16:09:28.513 [in @ 0x60000371f000] [warning] filter context - w: 1920 h: 1080 fmt: 62 csp: unknown range: unknown alpha: unspecified, incoming frame - w: 1920 h: 1080 fmt: 62 csp: bt2020nc range: tv alpha: unspecified pts_time: 250.6
    16:09:28.521 [NativeAVPlayerHost] #1 load url=http://127.0.0.1:49254/media.m3u8 startPos=549.76s headers=none
    16:09:28.523 [NativeAVPlayerHost] #1 layer.isReadyForDisplay=false t+0.00s (carried in from the previous item when true)
    16:09:28.523 [NativeAVPlayerHost] #1 timeControlStatus=paused reason=- t+0.00s
    16:09:28.523 [AetherEngine] #321: effective video route = loopback
    16:09:28.523 [NativeAVPlayerHost] #1 rate=1.0
    16:09:28.523 [NativeAVPlayerHost] #1 timeControlStatus=waitingToPlay reason=AVPlayerWaitingWhileEvaluatingBufferingRateReason t+0.00s
    16:09:28.523 [NativeAVPlayerHost] #1 rate=1.0
    16:09:28.523 [NativeAVPlayerHost] #1 timeControlStatus=waitingToPlay reason=AVPlayerWaitingWhileEvaluatingBufferingRateReason t+0.00s
    16:09:28.523 [NativeAVPlayerHost] #1 rate=1.0
    16:09:28.523 [NativeAVPlayerHost] #1 timeControlStatus=waitingToPlay reason=AVPlayerWaitingWhileEvaluatingBufferingRateReason t+0.00s
    16:09:28.532 [AetherEngine] VOD shift published: -3.000s (prev 0.000s, delta -3.000s, changed=YES) seamAt=549.320s seams=1 foldShift=-3.000s presentationOrigin=0.000s rawClock=0.00s avBufAhead=0.00s
    16:09:28.650 [HLSLocalServer] GET /media.m3u8 HTTP/1.1
    16:09:28.650 [HLSLocalServer] #227 client 127.0.0.1 first request: GET /media.m3u8 HTTP/1.1
    16:09:28.651 [HLSLocalServer] first request headers fd=17: Host: 127.0.0.1:49254 | X-Playback-Session-Id: 29139D2D-33DD-402F-8333-A6103A545FCC | Accept: */* | User-Agent: AppleCoreMedia/1.0.0.24G231 (Macintosh; U; Intel Mac OS X 15_7_1; en_gb) | Accept-Language: en-GB,en;q=0.9 | Accept-Encoding: gzip | Connection: keep-alive
    16:09:28.708 [NativeAVPlayerHost] #1 asset.load(isPlayable) ok url=http://127.0.0.1:49254/media.m3u8 value=true
    16:09:28.708 [NativeAVPlayerHost] #1 asset.load(tracks) ok url=http://127.0.0.1:49254/media.m3u8 count=0
    16:09:28.708 [NativeAVPlayerHost] #1 asset.load(duration) ok url=http://127.0.0.1:49254/media.m3u8 seconds=2536.659
    16:09:28.708 [NativeAVPlayerHost] #1 timeControlStatus=waitingToPlay reason=AVPlayerWaitingToMinimizeStallsReason t+0.16s
    16:09:28.708 [HLSLocalServer] GET /init.mp4 HTTP/1.1
    16:09:28.780 [NativeAVPlayerHost] #1 accessLog uri=http://127.0.0.1:49254/media.m3u8 server=127.0.0.1 bytes=1432 reqs=0
    16:09:28.780 [HLSLocalServer] GET /seg124.mp4 HTTP/1.1
    16:09:28.791 [HLSSegmentProducer] #65 ledger seg-128 base=124 itemAxis=560.840s sourceStart=557.840s planSource=560.440s drift=-2.600s shift=-3.000s
    16:09:28.813 [HLSSegmentProducer] #65 ledger seg-130 base=124 itemAxis=571.600s sourceStart=568.600s planSource=571.120s drift=-2.520s shift=-3.000s
    16:09:28.821 [HLSSegmentProducer] #65 ledger seg-131 base=124 itemAxis=574.120s sourceStart=571.120s planSource=573.320s drift=-2.200s shift=-3.000s
    16:09:28.831 [HLSLocalServer] GET /seg125.mp4 HTTP/1.1
    16:09:28.842 [HLSSegmentProducer] #65 ledger seg-132 base=124 itemAxis=579.920s sourceStart=576.920s planSource=576.920s drift=0.000s shift=-3.000s
    16:09:28.847 [HLSSegmentProducer] #65 ledger seg-133 base=124 itemAxis=583.360s sourceStart=580.360s planSource=580.360s drift=0.000s shift=-3.000s
    16:09:28.859 [HLSSegmentProducer] #65 ledger seg-134 base=124 itemAxis=588.520s sourceStart=585.520s planSource=585.520s drift=0.000s shift=-3.000s
    16:09:28.862 [NativeAVPlayerHost] #1 layer.isReadyForDisplay=true t+0.35s
    16:09:28.882 [HLSSegmentProducer] #65 ledger seg-135 base=124 itemAxis=594.840s sourceStart=591.840s planSource=591.840s drift=0.000s shift=-3.000s
    16:09:28.905 [HLSSegmentProducer] #65 ledger seg-136 base=124 itemAxis=602.240s sourceStart=599.240s planSource=599.240s drift=0.000s shift=-3.000s
    16:09:29.215 [NativeAVPlayerHost] #1 item.status=readyToPlay
    16:09:29.215 [NativeAVPlayerHost] #1 timeControlStatus=playing reason=- t+0.70s
    16:09:29.216 [NativeAVPlayerHost] #1 item.videoTrack codec='hvc1' enabled=true dim=1920x1080 primaries=ITU_R_2020 transfer=SMPTE_ST_2084_PQ matrix=ITU_R_2020 fullRange=false (readyToPlay)
    16:09:29.216 [NativeAVPlayerHost] #1 item.audioTrack codec='aac ' enabled=true sr=48000 ch=2 bits=0 fmt=aac  layoutTag=<missing> (readyToPlay)
    16:09:29.216 [NativeAVPlayerHost] #1 remote-HLS videoFormat=hdr10 subType='hvc1' transfer=SMPTE_ST_2084_PQ rate=0.000
    16:09:30.294 [AetherEngine] seek#1 programmatic began target=0.00
    16:09:30.296 [HLSLocalServer] GET /seg0.mp4 HTTP/1.1
    16:09:30.296 [HLSVideoEngine] declareTarget backward jump 125 → 0, proactively restarting producer
    16:09:30.303 [HLSSegmentProducer] seg-136.m4s partial at teardown (814 B) discarded, not adopted
    16:09:30.304 [HLSSegmentProducer] pump finished: reason=stopRequested packetsRead=3837 packetsWritten=1323 lastError=0 elapsed=1802ms cacheCount=9
    16:09:30.304 [HLSSegmentProducer] init OK (baseIndex=0, segments=571, targetDur=4.000s, srcVideoTb=1/100000) audio=stream-copy inTb=1/48000
    16:09:30.304 [HLSVideoEngine] producer restarted at idx=0 (seek=-3.00s [absolute source-PTS], restart took 1ms; stopWait=0ms seek=0ms build=0ms)
    16:09:30.304 [HLSSegmentProducer] pump thread qos=userInitiated
    16:09:30.304 [HLSSegmentProducer] video gate open: actual=-300000 anchorPts=0 target=-9223372036854775808 desired=0 shift=-300000 videoPID=0 reconstructed=false
    16:09:30.304 [HLSSegmentProducer] first video pkt: dts=0 pts=300000 duration=4000 size=1044 (fallback=4004 in srcVideoTb)
    16:09:30.304 [HLSSegmentProducer] #65 ledger seg-0 base=0 itemAxis=0.000s sourceStart=-3.000s planSource=-3.000s drift=0.000s shift=-3.000s
    16:09:30.304 [HLSSegmentProducer] #65 ledger seg-1 base=0 itemAxis=3.680s sourceStart=0.680s planSource=2.000s drift=-1.320s shift=-3.000s
    16:09:30.304 [HLSSegmentProducer] init.mp4 captured (1432 B)
    16:09:30.304 [HLSVideoEngine] seg0: served 481618 B (wait=4.9ms cache=10 restarted=true)
    16:09:30.304 [HLSSegmentProducer] audio gate open: actual=0 target=-144000 desired=0 shift=-144000 gapMs=0.0
    16:09:30.308 [HLSSegmentProducer] #65 ledger seg-2 base=0 itemAxis=10.400s sourceStart=7.400s planSource=7.400s drift=0.000s shift=-3.000s
    16:09:30.314 [HLSSegmentProducer] #65 ledger seg-3 base=0 itemAxis=17.760s sourceStart=14.760s planSource=14.760s drift=0.000s shift=-3.000s
    16:09:30.321 [HLSSegmentProducer] #65 ledger seg-5 base=0 itemAxis=25.080s sourceStart=22.080s planSource=23.560s drift=-1.480s shift=-3.000s
    16:09:30.335 [HLSSegmentProducer] #65 ledger seg-6 base=0 itemAxis=30.880s sourceStart=27.880s planSource=27.880s drift=0.000s shift=-3.000s
    16:09:30.339 [HLSSegmentProducer] pump qos -> utility (now=utility epochHead=5 target=0 lead=5)
    16:09:30.348 [HLSSegmentProducer] #65 ledger seg-8 base=0 itemAxis=35.560s sourceStart=32.560s planSource=34.920s drift=-2.360s shift=-3.000s
    16:09:30.360 [AetherEngine] VOD shift published: -3.000s (prev -3.000s, delta 0.000s, changed=no) seamAt=0.000s seams=2 foldShift=-3.000s presentationOrigin=0.000s rawClock=3.00s avBufAhead=7.90s
    16:09:30.361 [NativeAVPlayerHost] #1 timeControlStatus=waitingToPlay reason=AVPlayerWaitingWhileEvaluatingBufferingRateReason t+1.84s
    16:09:30.363 [NativeAVPlayerHost] #1 timeControlStatus=waitingToPlay reason=AVPlayerWaitingToMinimizeStallsReason t+1.85s
    16:09:30.364 [NativeAVPlayerHost] #1 accessLog uri=http://127.0.0.1:49254/media.m3u8 server=127.0.0.1 bytes=481618 reqs=1
    16:09:30.364 [HLSLocalServer] GET /seg1.mp4 HTTP/1.1
    16:09:30.371 [HLSSegmentProducer] #65 ledger seg-9 base=0 itemAxis=42.480s sourceStart=39.480s planSource=39.480s drift=0.000s shift=-3.000s
    16:09:30.385 [HLSSegmentProducer] #65 ledger seg-10 base=0 itemAxis=49.120s sourceStart=46.120s planSource=46.120s drift=0.000s shift=-3.000s
    16:09:30.388 [AetherEngine] seek#1 programmatic landed rendered=-0.00 target=0.00
    16:09:30.389 [HLSLocalServer] GET /seg2.mp4 HTTP/1.1
    16:09:30.406 [HLSSegmentProducer] #65 ledger seg-11 base=0 itemAxis=56.160s sourceStart=53.160s planSource=53.160s drift=0.000s shift=-3.000s
    16:09:30.430 [HLSSegmentProducer] #65 ledger seg-13 base=0 itemAxis=63.160s sourceStart=60.160s planSource=61.440s drift=-1.280s shift=-3.000s
    16:09:30.585 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8571356e70] [warning] UDTA parsing failed retrying raw
    16:09:30.589 Last message repeated 3 times: [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8571356e70] [warning] UDTA parsing failed retrying raw
    16:09:30.589 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8571356e70] [error] stream 41, missing mandatory atoms, broken header
    16:09:30.589 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8571356e70] [warning] stream 0, timescale not set
    16:09:30.589 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8571356e70] [warning] Attached picture on stream 41 has invalid size, ignoring
    16:09:30.592 [FrameDecode] Opened 1920x1080 codec=hevc threads=2
    16:09:30.745 [NativeAVPlayerHost] #1 timeControlStatus=playing reason=- t+2.23s
    16:09:37.573 [HLSLocalServer] GET /seg3.mp4 HTTP/1.1
    16:09:37.582 [HLSSegmentProducer] #65 ledger seg-15 base=0 itemAxis=68.240s sourceStart=65.240s planSource=67.120s drift=-1.880s shift=-3.000s
    16:09:44.890 [HLSLocalServer] GET /seg4.mp4 HTTP/1.1
    16:09:46.891 [HLSLocalServer] seg4: slow serve, sending early chunked header
    16:09:48.832 [NativeAVPlayerHost] #1 playbackStalled
    16:09:48.833 [NativeAVPlayerHost] #1 timeControlStatus=waitingToPlay reason=AVPlayerWaitingToMinimizeStallsReason t+20.32s
    16:09:50.224 [HLSSegmentProducer] #65 backpressure PARK (advance) head=15 target=5 cacheTarget=4 highStored=13 cached=20 parked=12s (no playback progress)
    16:09:53.375 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff798e0] [warning] UDTA parsing failed retrying raw
    16:09:53.379 Last message repeated 3 times: [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff798e0] [warning] UDTA parsing failed retrying raw
    16:09:53.379 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff798e0] [error] stream 41, missing mandatory atoms, broken header
    16:09:53.379 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff798e0] [warning] stream 0, timescale not set
    16:09:53.379 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f856ff798e0] [warning] Attached picture on stream 41 has invalid size, ignoring
    16:09:53.380 [FrameDecode] Opened 1920x1080 codec=hevc threads=2
    16:09:54.469 [HLSSegmentProducer] #65 backpressure WEDGE BROKEN (advance) head=15 target=5 cacheTarget=4 parked=16s (fast path: fetch target + rendered clock both frozen); exiting pump for host re-anchor on AVPlayer position
    16:09:54.477 [HLSSegmentProducer] seg-15.m4s partial at teardown (588 B) discarded, not adopted
    16:09:54.477 [HLSSegmentProducer] pump finished: reason=backpressureWedge packetsRead=5450 packetsWritten=1701 lastError=0 elapsed=24180ms cacheCount=20
    16:09:54.477 [HLSVideoEngine] #65 backpressure wedge: re-anchoring producer to 21.01s -> seg3 (AVPlayer position) (attempt 1/5)
    16:09:54.478 [AetherEngine] seek#2 nativeScrub began target=14.76
    16:09:54.478 [HLSSegmentProducer] init OK (baseIndex=3, segments=568, targetDur=4.000s, srcVideoTb=1/100000) audio=stream-copy inTb=1/48000
    16:09:54.478 [HLSVideoEngine] producer restarted at idx=3 (seek=14.76s [absolute source-PTS], restart took 0ms; stopWait=0ms seek=0ms build=0ms)
    16:09:54.478 [HLSSegmentProducer] pump thread qos=userInitiated
    16:09:54.478 [HLSSegmentProducer] video gate open: actual=1476000 anchorPts=1776000 target=1476000 desired=1776000 shift=-300000 videoPID=0 reconstructed=false
    16:09:54.478 [HLSSegmentProducer] first video pkt: dts=1776000 pts=2076000 duration=4000 size=12040 (fallback=4004 in srcVideoTb)
    16:09:54.478 [HLSSegmentProducer] #65 ledger seg-3 base=3 itemAxis=17.760s sourceStart=14.760s planSource=14.760s drift=0.000s shift=-3.000s
    16:09:54.478 [AetherEngine] VOD shift published: -3.000s (prev -3.000s, delta 0.000s, changed=no) seamAt=17.760s seams=3 foldShift=-3.000s presentationOrigin=0.000s rawClock=21.01s avBufAhead=0.09s
    16:09:54.479 [HLSSegmentProducer] audio gate open: actual=708608 target=708480 desired=852480 shift=-144000 gapMs=2.7
    16:09:54.486 [HLSSegmentProducer] #65 ledger seg-5 base=3 itemAxis=25.080s sourceStart=22.080s planSource=23.560s drift=-1.480s shift=-3.000s
    16:09:54.486 [HLSSegmentProducer] init.mp4 captured (1432 B)
    16:09:54.496 [HLSSegmentProducer] #65 ledger seg-6 base=3 itemAxis=30.880s sourceStart=27.880s planSource=27.880s drift=0.000s shift=-3.000s
    16:09:54.505 [HLSSegmentProducer] #65 ledger seg-8 base=3 itemAxis=35.560s sourceStart=32.560s planSource=34.920s drift=-2.360s shift=-3.000s
    16:09:54.516 [HLSSegmentProducer] #65 ledger seg-9 base=3 itemAxis=42.480s sourceStart=39.480s planSource=39.480s drift=0.000s shift=-3.000s
    16:09:54.518 [HLSSegmentProducer] pump qos -> utility (now=utility epochHead=8 target=4 lead=4)
    16:09:54.528 [HLSSegmentProducer] #65 ledger seg-10 base=3 itemAxis=49.120s sourceStart=46.120s planSource=46.120s drift=0.000s shift=-3.000s
    16:09:54.545 [HLSSegmentProducer] #65 ledger seg-11 base=3 itemAxis=56.160s sourceStart=53.160s planSource=53.160s drift=0.000s shift=-3.000s
    16:09:54.555 [HLSSegmentProducer] #65 ledger seg-13 base=3 itemAxis=63.160s sourceStart=60.160s planSource=61.440s drift=-1.280s shift=-3.000s
    16:09:54.564 [HLSSegmentProducer] #65 ledger seg-15 base=3 itemAxis=68.240s sourceStart=65.240s planSource=67.120s drift=-1.880s shift=-3.000s
    16:09:54.833 [AetherEngine] #65 re-engaging stalled AVPlayer (stall + 6s without fetches): nudge seek to 21.01s
    16:09:54.833 [NativeAVPlayerHost] #1 rate=1.0
    16:09:54.834 [NativeAVPlayerHost] #1 timeControlStatus=waitingToPlay reason=AVPlayerWaitingToMinimizeStallsReason t+26.32s
    16:09:58.642 [AetherEngine] memprobe t=30s rss=115MB vmInt=72MB vmExt=41MB vmCmp=0MB vmIOS=0MB physFP=80MB mallocBlocks=161703 mallocMB=57 avioFetchedMB=0 cacheCount=20 cacheMB=34 packetsWritten=1257 audioFifo=0 abFifoKB=0 abSwrKB=0 abTotKB=0 muxBytesMB=13 muxCuts=8 srvConns=1 srvBytesMB=3 srvSfMB=3 pktAlive=3 pktTotal=13583 subCues=0 prefetch=off swFrames=0 audioTracks=2 subTracks=36 subActive=false avBufAhead=0.1s avBufBehind=21.0s frameAhead=0.00s prodShift=-3.00s hostShift=-3.00s seams=3
    16:09:59.680 [HLSSegmentProducer] #65 backpressure WEDGE BROKEN (advance) head=15 target=5 cacheTarget=4 parked=5s (fast path: fetch target + rendered clock both frozen); exiting pump for host re-anchor on AVPlayer position
    16:09:59.680 [HLSSegmentProducer] seg-15.m4s partial at teardown (588 B) discarded, not adopted
    16:09:59.680 [HLSSegmentProducer] pump finished: reason=backpressureWedge packetsRead=4276 packetsWritten=1257 lastError=0 elapsed=5202ms cacheCount=20
    16:09:59.680 [HLSVideoEngine] #65 backpressure wedge: re-anchoring producer to 21.01s -> seg3 (AVPlayer position) (attempt 2/5)
    16:09:59.680 [HLSSegmentProducer] init OK (baseIndex=3, segments=568, targetDur=4.000s, srcVideoTb=1/100000) audio=stream-copy inTb=1/48000
    16:09:59.681 [HLSVideoEngine] producer restarted at idx=3 (seek=14.76s [absolute source-PTS], restart took 0ms; stopWait=0ms seek=0ms build=0ms)
    16:09:59.681 [HLSSegmentProducer] pump thread qos=userInitiated
    16:09:59.681 [HLSSegmentProducer] video gate open: actual=1476000 anchorPts=1776000 target=1476000 desired=1776000 shift=-300000 videoPID=0 reconstructed=false
    16:09:59.681 [HLSSegmentProducer] first video pkt: dts=1776000 pts=2076000 duration=4000 size=12040 (fallback=4004 in srcVideoTb)
    16:09:59.681 [HLSSegmentProducer] #65 ledger seg-3 base=3 itemAxis=17.760s sourceStart=14.760s planSource=14.760s drift=0.000s shift=-3.000s
    16:09:59.681 [AetherEngine] VOD shift published: -3.000s (prev -3.000s, delta 0.000s, changed=no) seamAt=17.760s seams=3 foldShift=-3.000s presentationOrigin=0.000s rawClock=21.01s avBufAhead=0.09s
    16:09:59.682 [HLSSegmentProducer] audio gate open: actual=708608 target=708480 desired=852480 shift=-144000 gapMs=2.7
    16:09:59.687 [HLSSegmentProducer] #65 ledger seg-5 base=3 itemAxis=25.080s sourceStart=22.080s planSource=23.560s drift=-1.480s shift=-3.000s
    16:09:59.687 [HLSSegmentProducer] init.mp4 captured (1432 B)
    16:09:59.698 [HLSSegmentProducer] #65 ledger seg-6 base=3 itemAxis=30.880s sourceStart=27.880s planSource=27.880s drift=0.000s shift=-3.000s
    16:09:59.707 [HLSSegmentProducer] #65 ledger seg-8 base=3 itemAxis=35.560s sourceStart=32.560s planSource=34.920s drift=-2.360s shift=-3.000s
    16:09:59.717 [HLSSegmentProducer] #65 ledger seg-9 base=3 itemAxis=42.480s sourceStart=39.480s planSource=39.480s drift=0.000s shift=-3.000s
    16:09:59.719 [HLSSegmentProducer] pump qos -> utility (now=utility epochHead=8 target=4 lead=4)
    16:09:59.728 [HLSSegmentProducer] #65 ledger seg-10 base=3 itemAxis=49.120s sourceStart=46.120s planSource=46.120s drift=0.000s shift=-3.000s
    16:09:59.744 [HLSSegmentProducer] #65 ledger seg-11 base=3 itemAxis=56.160s sourceStart=53.160s planSource=53.160s drift=0.000s shift=-3.000s
    16:09:59.754 [HLSSegmentProducer] #65 ledger seg-13 base=3 itemAxis=63.160s sourceStart=60.160s planSource=61.440s drift=-1.280s shift=-3.000s
    16:09:59.763 [HLSSegmentProducer] #65 ledger seg-15 base=3 itemAxis=68.240s sourceStart=65.240s planSource=67.120s drift=-1.880s shift=-3.000s
    16:10:00.692 [HLSVideoEngine] #65 consumer re-engage: no segment fetch for 6s after wedge re-anchor (pos=21.01s, wedge capture 21.01s); asking host to nudge AVPlayer
    16:10:00.693 [AetherEngine] #65 re-engaging stalled AVPlayer (wedge re-anchor): nudge seek to 21.01s
    16:10:00.694 [NativeAVPlayerHost] #1 rate=1.0
    16:10:00.694 [NativeAVPlayerHost] #1 timeControlStatus=waitingToPlay reason=AVPlayerWaitingToMinimizeStallsReason t+32.18s
    
  24. superuser404notfound commented on Aug 10, 2026

    @superuser404notfound
    Owner

    Thanks for measuring it again, that closes the loop on this one.

    The mp4 versus mkv gap going away with it is the expected consequence rather than a bonus: the cover art was the only difference between the two files, so once it stopped being decoded every second, the mp4 costs what the remux always cost.

    The stall is a different defect and lives in the engine, so I moved it to AetherEngine#358 with the analysis. Short version from your log: the segment plan for that file promises 571 segments, but the producer never muxes indices 4, 7, 12 and 14, and AVPlayer stops on the first of those holes exactly 18 s in. The wedge recovery then re-anchors to the same position and rebuilds the same hole five times over, which is why it never comes back. The file's header is damaged enough that its keyframe table disagrees with where the muxer can actually cut, by up to 2.6 s per boundary.

    Two questions over there that would settle whether 0.15.0 caused it or only exposed it, including whether 0.14.0 plays the same file past that point.

    Closing this one as fixed. The stall continues in #358.

  25. superuser404notfound commented on Aug 11, 2026

    @superuser404notfound
    Owner

    0.15.2 is out with the actual root cause behind this thread's stall, AetherEngine 6.20.1. Details in AetherEngine#358: the segment plan reads the container's random-access points in decode order while the cut was matching them in presentation order, which is two frames apart on an ordinary file and three seconds apart on yours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions