mpv-player / mpv-player/mpv

Video rotate not working with mpv rkmpp

Open
#6,674 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

meta:developer-needed vo:gpu:drm
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

mpv version and platform

mpv - 0.28.0-1ayufan5 for Rock64 Armhf from the ppa:ayufan/rock64-ppa. I understand this isn't the newest version, but there really don't seem to be any changes to the functionality for this issue. The issue also persists on TinkerBoard S armhf.

Reproduction steps

mpv --vo-gpu --gpu-api=opengl --gpu-context=drm --gpu-hwdec-interop=drmprime-drm --hwdec=rkmpp --keep-open --video-rotate=0
On a 1080x1920 or any portrait video, or
mpv --vo-gpu --gpu-api=opengl --gpu-context=drm --gpu-hwdec-interop=drmprime-drm --hwdec=rkmpp --keep-open --video-rotate=90
On a 1920x1080 or any landscape video

Expected behavior

The video is rotated.

Actual behavior

Black screen in this case, and an error message for each frame:
[vo/gpu/drmprime-drm] Failed to create framebuffer on layer 0.

Log file

https://0x0.st/zc8l.txt

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 two mpv commands on the reported Rock64 or TinkerBoard hardware and inspect the linked log, especially the drmprime-drm framebuffer errors. Trace the video-output path responsible for framebuffer creation and verify that portrait and landscape videos with the given rotation options display correctly without per-frame errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.