Skip to content

[BUG] - Direct Play of Dolby Vision Profile 7 MKV fails on first load with "stuck buffering", falls back to unseekable remux #2120

Open

Description

@Meas

Description

Direct Play of a large 4K Dolby Vision Profile 7 (dual-layer FEL) MKV fails right at startup with Player stuck buffering and not loading for 4000 ms. Wholphin then falls back to a server-side remux (progressive MKV written on the fly), which plays fine but cannot be seeked, so fast-forward/skip does nothing for the rest of the session.

If I change the subtitle or audio track during playback (any track change works), Wholphin re-requests the stream, gets Direct Play again, and this time it works, including seeking. It reliably fails on the first load and works on the reload. Kodi and Nova Player play and seek the same file directly without issues.

Steps

  1. Play the movie with ExoPlayer, with various audio/subtitle choices (tested TrueHD and AC3 audio, PGS and SRT subtitles).
  2. After ~4–5 s the player errors with "stuck buffering" and Wholphin falls back to transcoding (remux).
  3. Seeking does not work in the remux.
  4. Change the subtitle or audio track during playback → new Direct Play session starts and works, seeking works.

What the network side shows (nginx access log in front of Jellyfin, same file, reproduced several times):

  • Failing first load: the player reads ~5–9 MB (header), ~0.3 MB (Cues at end of file), then one ranged request of ~22–24 MB from the start of the file, and then stops issuing requests until the error 4 s later.
  • Working reload after a subtitle or audio track change: ranged requests keep coming at 60–190 MB each.

So loading stops because the LoadControl considers the buffer full (Target buffer size reached with less than 500ms of buffered media data. is logged hundreds of times, every ~10 ms), while the buffered duration stays under 500 ms.

What I've ruled out

  • Default audio track starting late: the file's default-flagged audio track (Italian DTS) starts at 9.7 s, so I suspected the initial default track selection (prepare() runs before TracksChangedListener applies the chosen tracks). Moving the default flag to the English TrueHD track (starts at 0 s) with mkvpropedit did not change anything; it still fails the same way.
  • Refresh rate switching: turning it off makes no difference.
  • The file: complete Cues (~7,800 video cue points, ~1 s apart), RPU + EL present on every frame, keyframes at every cue. Kodi/Nova direct play and seek it fine.

Possibly relevant

  • A Dolby Vision Profile 8 (single layer) 4K WEB-DL on the same device/server starts fine with Direct Play from the beginning.
  • The difference between the failing and the working load seems to be only that the working one is a reload within an already running playback session, so maybe something about first-time initialisation of the DV Profile 7 decoder path / HDMI DV mode switch on this device.

It might also be worth falling back to HLS rather than a progressive remux, since the latter can't be seeked.

Experimental settings

No

Player backend

ExoPlayer (default)

Media info

Container: Matroska (mkvmerge v98.0), 77.96 GB, 1:58:12, ~88 Mbps overall
Video:  HEVC Main 10 @ L5.1, 3840x2160, 23.976 fps, ~82 Mbps
        Dolby Vision Profile 7.6 (dual layer, BL+EL+RPU, FEL), HDR10 base layer (BT.2020 / PQ)
        BlockAdditionMapping: dvcC + hvcE
Audio 1: TrueHD Atmos 7.1, eng (not default)       — starts at 0.000 s
Audio 2: AC-3 5.1, eng (not default)               — starts at 0.000 s
Audio 3: DTS 2.0, eng, commentary (not default)    — starts at 0.000 s
Audio 4: DTS 5.1, ita (DEFAULT)                    — starts at 9.700 s
Sub 1:   PGS, eng (zlib content encoding)          — starts at 2.628 s
Sub 2:   SRT, ita (DEFAULT, ~10 events, forced-style)
Sub 3:   SRT, ita (full, ~1,560 events)
Attachment: cover.jpg

App Version

1.0.9-0-g2d87d526

Server Version

12.2.0

Device

Ugoos SK1 (Android 14, API 34)

Logs

# Repeated ~470 times in the ~4 s before the error:
W DefaultLoadControl: Target buffer size reached with less than 500ms of buffered media data.

E ExoPlayerImplInternal: Playback error
E ExoPlayerImplInternal:   m92: Unexpected runtime error
E ExoPlayerImplInternal:       at na2.handleMessage(...:494)
E ExoPlayerImplInternal:   Caused by: cj7: Player stuck buffering and not loading for 4000 ms
E ExoPlayerImplInternal:       at na2.j(...:2514)
E ExoPlayerImplInternal:       at na2.handleMessage(...:444)
W Wholphin: Playback error during DirectPlay, falling back to transcoding
I Wholphin: changeStreams (<item>): audioIndex=2, subtitleIndex=7, enableDirectPlay=false, enableDirectStream=false, positionMs=0

Server side (Jellyfin, debug) for the same attempts: the first PlaybackInfo returns PlayMethod: DirectPlay; the follow-up after the player error returns TranscodeReason=DirectPlayError and Jellyfin starts ffmpeg ... -codec:v:0 copy -codec:a:0 copy -y /transcodes/<id>.mkv.

I've uploaded several app logs to my server via "Send app logs" and can share full copies if useful.

Activity

  1. changed the title [-][BUG] - Direct Play fails at start with "stuck buffering" when the MKV's default audio track starts late, falls back to unseekable remux[/-] [+][BUG] - Direct Play of Dolby Vision Profile 7 MKV fails on first load with "stuck buffering", falls back to unseekable remux[/+] on Oct 23, 2026
  2. damontecres commented on Oct 28, 2026

    @damontecres
    Owner

    Searching the web about Ugoos SK1 and DV profile 7 seems to show that it doesn't support DV Profile 7, which isn't uncommon.

    There is an upcoming new experimental setting (#2017) which will rewrite profile 7 to 8 which you could try.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions