@eric
Noticed a discrepancy I wanted to highlight: the log shows [ao/audiounit] being used with passthrough enabled, which I believe is the newer audio backend. However, the “Show Stats” overlay in the app still reports “Legacy” under Audio Driver. Not sure if that’s just a labeling issue in the UI or if the client is falling back to legacy but not logging it clearly — figured it was worth flagging in case it helps track down the underruns.
Also, I am trying to get up to speed on all of this as quickly as I can, so I apologize if I am misunderstanding what the logs are actually saying here.
All that said, it does seem that the issue persists with legacy mode enabled.
2025-03-21 09:33:15.082 [u=204.7MB f=1893.3MB] [7.75s] [cplayer] warn: Audio device underrun detected.
2025-03-21 09:33:15.082 [u=205.0MB f=1893.0MB] [7.75s] [cplayer] v: restarting audio after underrun
UPDATE: Here is another more severe one with Legacy enabled
2025-03-21 11:23:21.169 [u=521.0MB f=1577.0MB] [6613.84s] [cplayer] warn: Audio device underrun detected.
2025-03-21 11:23:21.169 [u=521.0MB f=1577.0MB] [6613.84s] [cplayer] v: Enter buffering (buffer went from 100% -> 0%) [0.000000s].
2025-03-21 11:23:21.169 [u=521.0MB f=1577.0MB] [6613.84s] [vo/avfoundation] v: Frame duration changed: 33365 -> 50044
2025-03-21 11:23:21.179 [u=521.0MB f=1577.0MB] [6613.85s] [cplayer] v: Still buffering (buffer went from 63% -> 0%) [0.000000s].
2025-03-21 11:23:21.249 [u=521.3MB f=1576.6MB] [6613.92s] [cplayer] v: Still buffering (buffer went from 0% -> 63%) [0.160000s].
2025-03-21 11:23:21.251 [u=520.1MB f=1577.9MB] [6613.92s] [cplayer] v: End buffering (waited 2.715194 secs) [0.256000s].
2025-03-21 11:23:21.251 [u=520.2MB f=1577.8MB] [6613.92s] [cplayer] v: restarting audio after underrun
No packet loss, symbol errors, or low bitrate. Network appears stable.
FURTHER TESTING:
Apple TV vs Fire TV - Audio Cache & Format Comparison (Channels DVR)
Devices Tested:
- Apple TV 4K (2017, Model A1842)
- Apple TV 4K (2021, Model A2169)
- Fire TV 4K Max (latest gen)
Apple TV (Wired): (Tested on wi-fi as well. Only differece is lower buffer cache numbers with audio often pinned at 0.0s)
-
Audio Format:
ac3 (ATSC A/52A (AC-3))
-
Total Cache (Show Stats):
-
Video: ~0.5–0.7 seconds
-
Audio: ~0.1–0.2 seconds (frequently drops to 0.0)
-
Behavior:
- Frequent
audio device underrun errors in logs
- Playback buffers randomly, often after 10+ minutes
- Happens on both wired and Wi-Fi
Fire TV 4K Max (Wired):
-
Audio Format:
raw ac3 (raw audio passthrough decoder)
-
Total Cache (Show Stats):
-
Video: ~1.7–1.9 seconds
-
Audio: ~0.6–0.8 seconds
-
Behavior:
- Smooth playback
- No underrun errors
I have also tested by pausing liveTV for 5-10 seconds and seeing what happens. The under runs still occur but there is no buffering pause.