mpv-player / mpv-player/mpv

Missrendering while playing 10bit conent with hwdec (v4l2m2m) in X11

Open
#8,552 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

hwdec hwdec:drm os:linux
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Important Information
  • mpv version - current git.
  • Linux Distribution and Version - ubuntu-18.04 arm64 on rockpro64 sbc (rk3399 based board),mesa from git, kernel 5.10.12 with patches from openelec.
  • Source of the mpv binary - compiled from git.
  • If known which version of mpv introduced the problem - it is unknown.
  • Window Manager and version - marco-compton.
  • GPU driver and version - panfrost from mesa current git.
  • Possible screenshot or video of visual glitches
    mpv-shot0001
Reproduction steps

mpv --no-config -vo=gpu -gpu-context=x11egl -hwdec jellyfish-20-mbps-hd-hevc-10bit.mkv
(there are no issue without hwdec, besides performance),
This movie also plays fine in drm console with:
mpv --no-config -vo=gpu -gpu-context=drm -hwdec --drm-draw-plane=overlay --drm-drmprime-video-plane=primary jellyfish-20-mbps-hd-hevc-10bit.mkv
(mpv use FFmpeg with Kwiboo's patches for v4l2-request and rkvdec)

Expected behavior

Correct rendering.

Actual behavior

Missrendering

Log file

mpv_log_x11.txt

Sample files

https://jell.yfish.us/media/jellyfish-20-mbps-hd-hevc-10bit.mkv

I am completely not sure that issue is on mpvs side, how determine it?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the command from the issue with the linked jellyfish-20-mbps-hd-hevc-10bit.mkv sample, then compare the X11 EGL result with the DRM command that renders correctly. Read the attached mpv_log_x11.txt and inspect the screenshot to determine whether the failure is in mpv's X11 path or the hardware-decoding and driver combination. Done means identifying the responsible component and a clear next step for fixing or reporting it.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux, ubuntu
Domain
computer-graphics, desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.