Skip to content

Hardware AV1 on the Apple TV 4K (4th generation) plays sound with a black picture on the native route #1144

Backlog

Description

@RadicalMuffinMan

What happened?

A Moonfin user on the new Apple TV 4K (4th generation) gets sound but no picture whenever an AV1 file direct plays. That box decodes AV1 in hardware, so VTCapabilityProbe.av1Available comes back true and AV1 goes to the native route. AVPlayer reaches readyToPlay, reports an enabled av01 video track and starts playing. The audio is fine. But layer.isReadyForDisplay never turns true, so the picture stays black for the whole session.

I expected AV1 to show a picture there, like it does on iPhones and Macs with hardware AV1. Or I expected it to stay on the software path, like on every earlier Apple TV.

When the server transcodes the same file to H.264, the same box shows the picture after about 4 seconds. So the display and HDMI side look fine.

Steps to reproduce

  1. On an Apple TV 4K (4th generation), call engine.load(url:) on any AV1 file for direct play, with default LoadOptions.
  2. The engine logs hwSupported=true from the AV1 probe and dispatches the session to the native route.
  3. Audio plays and the clock moves, but isReadyForDisplay stays false and the picture stays black.

The user's log has four AV1 direct plays across two movies. One of them ran for about 70 seconds, and none of them ever showed a picture.

AetherEngine version or commit SHA

7.62.1 (fork commit 34f149b, which only adds mTLS, a frame grid fix and a FEL define)

Host app

Custom / my own integration

Platform

tvOS

OS version

tvOS 27.0

Device / chip

Apple TV 4K (4th generation, 2026), model A3593

Playback path

Native AVPlayer

Source media (for playback bugs)

MKV, AV1 Main, HDR10 (PQ, BT.2020), 3840x1600, 23.976 fps, AAC 5.1, no Dolby Vision. Direct play from Jellyfin 10.11.6.

Error codes / log lines

[VTProbe] codec=av01 hwSupported=true
[VTProbe] canHardwareDecode codec=av01 profile=0 -> true
[AetherEngine] dispatch: codec=225 → native
[HLSVideoEngine] prepared: codec=av01.0.12M.[REDACTED].16.09.0,mp4a.40.2 resolution=3840x1600 fps=23.976 range=PQ DV=none segments=1422 duration=7116.8s
[NativeAVPlayerHost] #1 layer.isReadyForDisplay=false t+0.00s (carried in from the previous item when true)
[NativeAVPlayerHost] #1 item.status=readyToPlay
[NativeAVPlayerHost] #1 timeControlStatus=playing reason=- t+0.76s
[NativeAVPlayerHost] #1 item.videoTrack codec='av01' enabled=true dim=3840x1600 primaries=ITU_R_2020 transfer=SMPTE_ST_2084_PQ matrix=ITU_R_2020 fullRange=false (readyToPlay)
[NativeAVPlayerHost] #1 item videoFormat=hdr10 subType='av01' transfer=SMPTE_ST_2084_PQ rate=0.000

No isReadyForDisplay=true follows for this session, while segments keep being fetched.

The same file transcoded to H.264 by the server, on the same box:
[NativeAVPlayerHost] #2 layer.isReadyForDisplay=true t+3.89s
[NativeAVPlayerHost] #2 item.videoTrack codec='avc1' enabled=true dim=3840x1600 primaries=ITU_R_709_2 transfer=ITU_R_709_2 matrix=ITU_R_709_2 fullRange=false (readyToPlay)

Anything else

The full diagnostic log is on our tracker: Moonfin-Client/Moonfin-Core#2374. I don't have one of these boxes myself, so that log is all I have for now. The [REDACTED] in the codec string is our log redaction mistaking part of it for an IP address.

As far as I can tell, nothing between 7.62.1 and current main changes this. VideoRoutingPolicy still sends AV1 to software only when av1Available is false. The comment in HLSVideoEngine still says it's false on all current Apple TV chips, and this box doesn't fit that anymore.

The log doesn't show a decode error, so I can't tell whether VideoToolbox's AV1 decoder or AVPlayer's display is the part that fails.

A Moonfin contributor worked around it on our side by setting preferredDecodePath = .software for AV1 on tvOS (Moonfin-Client/Moonfin-Core#2458). I'd rather see it fixed here. That could be on the native route, or by keeping AV1 on the software path on tvOS like the older boxes. One catch with the second option: on devices with hardware AV1, AV1 Dolby Vision 10.1 still decodes through VideoToolbox inside the software host (HardwareVideoDecoder.decodesAV1DolbyVision). So 10.1 could stay black if VideoToolbox is the broken part.

I have a patch ready for that second option and can open a PR if that's the direction you'd like.

Activity

  1. added
    bug
    on Nov 28, 2026
  2. superuser404notfound commented on Nov 28, 2026

    @superuser404notfound
    Owner

    Thanks for the thorough write-up and the log, that made this easy to place.

    I went with your second option and built it on main in cf3c6ea. It's in the next release.

    • tvOS no longer uses the hardware AV1 decoder. Every Apple TV plays AV1 with dav1d on the software host, the route the older boxes have always taken. On the 4th generation the log shows [VTProbe] codec=av01 hwSupported=true followed by an AE#1144 line saying so.
    • Dolby Vision 10.1 follows it. On tvOS it no longer goes through VideoToolbox inside the software host, it goes through dav1d, which attaches the RPU the same way. That covers your concern that 10.1 could stay black if VideoToolbox is the broken part.
    • AV1 Dolby Vision 10.0 is now refused on that box with dolbyVisionUnplayableOnSoftwarePath, like on every other Apple TV, instead of going black.
    • E-AC-3 Atmos in an AV1 file plays as its core, as on any software session. Your file is AAC 5.1, so that one is unaffected.
    • AetherEngine.usesHardwareAV1OnTVOS (@_spi(Diagnostics), default off) turns the hardware decoder back on for the next load, so a later tvOS can be checked without an engine change.

    With this in place, Moonfin PR 2458 shouldn't be needed anymore once you're on the release.

    I don't have one of these boxes either, so a few logs from your user would help a lot.

    1. The same AV1 file on the software route (your PR 2458 build or the next engine release). Does the picture come up, and how does 4K HDR10 run on dav1d there? The [SWHost] lines and any dropped frames are what I'm after.
    2. One HEVC HDR10 file direct playing on the same box. The H.264 comparison was SDR, so it doesn't rule out the HDR side yet.
    3. If they're up for a test build with usesHardwareAV1OnTVOS = true, an 8-bit SDR AV1 file on the native route. A picture there would point at the HDR10 path. Black again would point at AV1 on AVPlayer in general.
    4. An AV1 Dolby Vision 10.1 file with usesHardwareAV1OnTVOS = true, if they have one. That runs VideoToolbox's AV1 decoder inside the software host, so it tells us whether VideoToolbox itself delivers frames on that box.

    With 3 and 4 I can tell whether native AV1 can come back on tvOS, and under which conditions.

    Also, the [REDACTED] in the codec string covers four dotted numbers (bit depth, monochrome, chroma subsampling and colour primaries), which is why it reads as an IP address. An AV1 codec string always has that shape after the level, so it's worth an exception in your redaction rule.

  3. superuser404notfound commented on Nov 30, 2026

    @superuser404notfound
    Owner

    Released in 7.78.0 (cf3c6ea).

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

    area: videobug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions