Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video is off-centre after resizing the window #15386

Open
6 tasks done
bipface opened this issue Nov 27, 2024 · 2 comments
Open
6 tasks done

Video is off-centre after resizing the window #15386

bipface opened this issue Nov 27, 2024 · 2 comments
Labels

Comments

@bipface
Copy link

bipface commented Nov 27, 2024

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

  • Open any video or image,
    I used mpv.exe --loop-file=inf --no-config mpv-logo-128-0baae5aa.png.
  • Resize the MPV window in any direction by any number of pixels.

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:

  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.
@bipface bipface added the os:win label Nov 27, 2024
@llyyr
Copy link
Contributor

llyyr commented Nov 27, 2024

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

@bipface
Copy link
Author

bipface commented Nov 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants