Skip to content

Some Dolby videos play normally on Windows and iPhone but stutter, display incorrect colors, and crash on Android phones. #388

Description

@php0002

Hi , I forked fvp and modified fvp/tree/master/example/lib/main.dart.
I changed

fvp.registerWith()

to

fvp.registerWith(
      options: {
        // Subtitle fully disabled (you already confirmed this works)
        'subtitle.enabled': 'no',
        'subtitle.auto': 'no',
        'subtitle.default': 'no',
        'subtitle.preferred': '',
        'ffmpeg.enable.all': '1',
        // Prefer hardware decoders that preserve 10-bit
        'video.decoders': [
          'D3D11VA',
          'NVDEC',
          'VAAPI',
          'VideoToolbox',
          'AMediaCodec',
          'FFmpeg',
        ],
        // HDR + 10-bit + Tone Mapping + Metadata Passthrough
        'videoout.hdr': 'yes', // Master HDR switch
        'videoout.hdr10_metadata':
            'yes', // Send HDR10/HDR10+ metadata to display
        'videoout.tone_mapping':
            'hable', // Best perceptual tone mapper (or 'mobius', 'reinhard')
        'videoout.tone_mapping.mode': 'auto', // Auto: HDR→SDR when needed
        'videoout.color_space':
            'auto', // Let MDK detect BT.709 / BT.2020 / DCI-P3
        'videoout.color_transfer': 'auto',
        // Optional: For low-latency HDR streaming
        'lowLatency': 1,
      },
    )

and updated the remote media URL from

https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4

to

https://github.com/dzhl1201/douyin/releases/download/v1.0.1/test.mkv

. After compiling, the video colors display correctly on Windows and iOS (as shown in the first image), but the colors are incorrect on Android (as shown in the second image).and When I play this video on my Android phone, it stutters significantly, and the player crashes after about ten seconds. I suspect the Android system is killing the process rather than it being a bug in the player itself; the crash might be triggered by system protection mechanisms due to excessive memory usage. This video plays normally on other players.

Image Image Is there a solution to ensure this video displays correctly on Android as well? Using mpv's `gpu-next` allows the colors to render correctly on the Android system.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions