Repository navigation
Description
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
- On an Apple TV 4K (4th generation), call
engine.load(url:)on any AV1 file for direct play, with defaultLoadOptions. - The engine logs
hwSupported=truefrom the AV1 probe and dispatches the session to the native route. - Audio plays and the clock moves, but
isReadyForDisplaystays 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
superuser404notfound commentedon Nov 28, 2026
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.
[VTProbe] codec=av01 hwSupported=truefollowed by anAE#1144line saying so.dolbyVisionUnplayableOnSoftwarePath, like on every other Apple TV, instead of going black.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.
[SWHost]lines and any dropped frames are what I'm after.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.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.superuser404notfound commentedon Nov 30, 2026
Released in 7.78.0 (cf3c6ea).