mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.77k stars 2.93k forks source link

Video is off-centre after resizing the window #15386

Open bipface opened 2 days ago

bipface commented 2 days ago

mpv Information

mpv v0.39.0-396-gad1fb9f4 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Nov 27 2024 00:08:13
libplacebo version: v7.349.0 (v7.349.0-28-gcfe45e6-dirty)
FFmpeg version: N-117930-gd4966f0a7
FFmpeg library versions:
   libavcodec      61.26.100
   libavdevice     61.4.100
   libavfilter     10.6.101
   libavformat     61.9.100
   libavutil       59.47.101
   libswresample   5.4.100
   libswscale      8.12.100

Other Information

- Windows version: 10.0.19045.3570
- GPU model, driver and version: AMD RX 7800 XT, driver 23.20.23.01-231025a-397406C-AMD-Software-Adrenalin-Edition
- Source of mpv: https://github.com/shinchiro/mpv-winbuild-cmake/releases
- Latest known working version: ?

I tested a number of older MPV versions (oldest I tried: v0.37), they were all affected by this bug.
I tested a newer AMD driver (24.10.1) and newer Windows version (10.???, I've forgotten), the bug still occurs in those environments.

Reproduction Steps

I also tried different --vo= options, only GPU modes seem to reproduce this issue:

Option Result
--vo=gpu Affected
--vo=gpu-next Affected
--vo=gpu --hwdec=no Affected
--vo=gpu --hwdec=d3d11va Affected
--vo=gpu --gpu-api=vulkan Affected
--vo=gpu-next --gpu-api=vulkan Affected
--vo=gpu --gpu-api=opengl Unaffected
--vo=gpu-next --gpu-api=opengl Unaffected
--vo=direct3d Unaffected
--vo=sdl Unaffected

Expected Behavior

Video remains centred.

Actual Behavior

The video/image is rendered off-centre. See the following screenshot: image

Dragging the window by grabbing the title bar seems to reset it.

Log File

out.txt

Sample Files

mpv-logo-128-0baae5aa

I carefully read all instruction and confirm that I did the following:

llyyr commented 2 days ago

I can't reproduce here but can you try --gpu-api=vulkan with gpu/gpu-next?

bipface commented 2 days ago

I've updated the report, it seems --gpu-api=vulkan can reproduce it but --gpu-api=opengl cannot.