Mpv.NET-lib- icon indicating copy to clipboard operation
Mpv.NET-lib- copied to clipboard

Windows Scale Resolution not 100% only 1/4 video is displayed

Open DJSures opened this issue 2 years ago • 10 comments

Mpv.NET (lib) Version Version 1.2.0 Published Monday, March 1, 2021 (3/1/2021)

Describe the bug If the windows scale resolution is set to a value higher than 100% (i.e. 125%), only part of the video is rendered. This happens when assigning the player to an existing winforms form via the handle, or by allowing MPV to create a window of it's own.

To Reproduce Steps to reproduce the behavior:

  1. Set windows scaling to any value higher than 100%
  2. Play a video
  3. Only part of the video is displayed

Expected behavior If the windows scale resolution is set to 100%, the video renders correctly. However, any value higher than 100% results in only part of the video being rendered. The expected behavior is to have the full video rendered to the screen.

DJSures avatar Jun 09 '22 04:06 DJSures

I cannot replicate this. Could you please confirm the version of libmpv and version of Windows you are using?

hudec117 avatar Jul 04 '22 20:07 hudec117

Oops, forgot to mention that I'm using Windows 10 (21H2).

On Mon, Jul 4, 2022 at 4:09 PM Aurel Hudec @.***> wrote:

I cannot replicate this. Could you please confirm the version of libmpv and version of Windows you are using?

— Reply to this email directly, view it on GitHub https://github.com/hudec117/Mpv.NET-lib-/issues/52#issuecomment-1174242694, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYCS44LU7JKZE6UVB5YY23VSNAGRANCNFSM5YIWBGBA . You are receiving this because you authored the thread.Message ID: @.***>

DJSures avatar Jul 04 '22 21:07 DJSures

Using mpv-1.dll version 2.0.0.0 from 3/21/2022 for 32-bit on Windows 10 (21H2)

On Mon, Jul 4, 2022 at 4:09 PM Aurel Hudec @.***> wrote:

I cannot replicate this. Could you please confirm the version of libmpv and version of Windows you are using?

— Reply to this email directly, view it on GitHub https://github.com/hudec117/Mpv.NET-lib-/issues/52#issuecomment-1174242694, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYCS44LU7JKZE6UVB5YY23VSNAGRANCNFSM5YIWBGBA . You are receiving this because you authored the thread.Message ID: @.***>

DJSures avatar Jul 04 '22 22:07 DJSures

image

DJSures avatar Jul 04 '22 22:07 DJSures

Here is a fullscreen screenshot with display scale & layout set to 100% image

Here is the same video with display scale & layout set to 125% image

This is the display setting I'm referring to image

I am using the dll in c# .Net with the Mpv.NET wrapper. The GDIScaling.manifest is.... GdiScaling.manifest.txt

DJSures avatar Jul 04 '22 22:07 DJSures

I assume you're using WPF? I still cannot replicate it, even on a really old libmpv version. Would you be able to provide a zip file or repository that replicates this issue?

hudec117 avatar Jul 04 '22 23:07 hudec117

I'm using Windows Forms, unfortunately (legacy stuff). Here is a ZIP .net c# project that demonstrates the partial display. Open the Form1.cs and edit the _filename string for your video file: WindowsFormsApp1.zip

DJSures avatar Jul 05 '22 03:07 DJSures

When I turned off gdiScaling in the manifest it seemed to work? Can you try on your end?

hudec117 avatar Jul 05 '22 09:07 hudec117

Disabling GDI Scaling would break the rest of the application. If GDI Scaling is the culprit, then the DPIx and DPIy are not considered for the video panel size.

On Tue, Jul 5, 2022 at 5:23 AM Aurel Hudec @.***> wrote:

When I turned off gdiScaling in the manifest it seemed to work? Can you try on your end?

— Reply to this email directly, view it on GitHub https://github.com/hudec117/Mpv.NET-lib-/issues/52#issuecomment-1174830019, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYCS44WV7YMIY7P4CI3VZTVSP5HPANCNFSM5YIWBGBA . You are receiving this because you authored the thread.Message ID: @.***>

DJSures avatar Oct 11 '22 07:10 DJSures

I'm using mpv-1.dll version 2.0.0.0 for 32-bit. See attached image. [image: image.png]

On Mon, Jul 4, 2022 at 4:09 PM Aurel Hudec @.***> wrote:

I cannot replicate this. Could you please confirm the version of libmpv and version of Windows you are using?

— Reply to this email directly, view it on GitHub https://github.com/hudec117/Mpv.NET-lib-/issues/52#issuecomment-1174242694, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYCS44LU7JKZE6UVB5YY23VSNAGRANCNFSM5YIWBGBA . You are receiving this because you authored the thread.Message ID: @.***>

DJSures avatar Oct 11 '22 08:10 DJSures