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

Subtitle stretching on high resolutions (>4k) #1508

Closed
darthdragonhc opened this issue Jan 23, 2022 · 13 comments
Closed

Subtitle stretching on high resolutions (>4k) #1508

darthdragonhc opened this issue Jan 23, 2022 · 13 comments

Comments

@darthdragonhc
Copy link

When I stretch MPC window through my 3 monitors I've got this kind of effect:

Untitled-1

Is there a way, to render subtitles correctly in this situation?

@clsid2
Copy link
Owner

clsid2 commented Jan 23, 2022

You can try this hidden option:

HKEY_CURRENT_USER\Software\MPC-HC\MPC-HC\Settings
DesktopSizeBackBuffer = 1

If that doesn't work, then I don't have a solution for you. Stretching over multiple monitors is not really supported or tested.

@darthdragonhc
Copy link
Author

Thanks for quick response.

Unfortunately changing this key to 1 doesn't make any difference. I will do more testing later on.

This issue does not occur only on multiple monitors, but also on single one when resolution height or width is bigger than 3840 x 2160. For example this fullscreen on my 1440 x 2560 monitor:

Untitled-1

@clsid2
Copy link
Owner

clsid2 commented Jan 23, 2022

Problem might be related to your monitor being rotated.

Which video renderer are you using? The DesktopSizeBackBuffer option only applies to EVR-CP and Sync.

@darthdragonhc
Copy link
Author

Thanks again for quick response.

I was using default MPC Video Renderer.

After quick testing I resolved my issue. Changing DesktopSizeBackBuffer to 1 and selecting Enhanced Video Renderer (custom presenter) works perfectly. If I only change video renderer subtitles looks good on one monitor, but multiple monitor stretch gives much worse result:

Untitled-2

So both changes in combination does the trick.

Big thanks for help and good day.

@clsid2
Copy link
Owner

clsid2 commented Jan 23, 2022

@Aleksoid1978
Any change of a similar option for MPCVR? To use desktop size for subtitle texture, so it can stretch across multiple monitors?

@Aleksoid1978
Copy link

@Aleksoid1978 Any change of a similar option for MPCVR? To use desktop size for subtitle texture, so it can stretch across multiple monitors?

DX9/DX11 ?

@clsid2
Copy link
Owner

clsid2 commented Jan 24, 2022

He was probably using DX11.

I was thinking, maybe compare video size with backbuffer size of Surface9SubPic when rendering a frame. If video becomes larger, then re-init Surface9SubPic.

@Aleksoid1978
Copy link

MPC VR knows nothing about backbuffer size of Surface9SubPic. It's create D3D9 surface of size of current screen + D3D11 texture for share between D3D9/D3D11.

@Aleksoid1978
Copy link

If use Direct3D9 ?

@clsid2
Copy link
Owner

clsid2 commented Jun 30, 2022

This might be fixed in MPC-HC 1.9.22 in combination with recent MPC VR development build:
https://disk.yandex.ru/d/X0EVMKP4TcmnHQ

@clsid2 clsid2 closed this as completed Jul 2, 2022
@dlong500
Copy link

@clsid2 Does the MPC VR development build require separate installation or is it included with MPC-HC 1.9.22? I'm using MPC-HC 1.9.22 and have a similar issue with subtitle stretch (or just not appearing at all) except that I'm NOT using any odd orientation. I have a 2560 x 1440 monitor, and when I go to full screen with a 1920 x 800 video I get portions of subtitle that don't show at all (when it would be a single line) and portions that stretch (when the subtitle is multi-line). It shows correctly when not in full screen.

What's odd is that I haven't ever noticed anything like this before over many, many years. That's making me wonder if something changed in a recent version, but I can't be sure without doing some testing on older versions.

@dlong500
Copy link

Well, I thought I'd determined that it was a regression in the latest version after testing out some older versions without experiencing the problem, but then I tried 1.9.22 again and did not experience the problem. Could opening previous versions have somehow changed any settings?

@clsid2
Copy link
Owner

clsid2 commented Jul 16, 2022

To reset to defaults:
Options > Miscellaneous > Reset

MPCVR is a separate install.

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

No branches or pull requests

4 participants