Mpv.NET-lib-
Mpv.NET-lib- copied to clipboard
Windows Scale Resolution not 100% only 1/4 video is displayed
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:
- Set windows scaling to any value higher than 100%
- Play a video
- 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.
I cannot replicate this. Could you please confirm the version of libmpv and version of Windows you are using?
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: @.***>
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: @.***>
Here is a fullscreen screenshot with display scale & layout set to 100%
Here is the same video with display scale & layout set to 125%
This is the display setting I'm referring to
I am using the dll in c# .Net with the Mpv.NET wrapper. The GDIScaling.manifest is.... GdiScaling.manifest.txt
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?
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
When I turned off gdiScaling
in the manifest it seemed to work? Can you try on your end?
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: @.***>
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: @.***>