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

Rendering: unexpected stretching #713

Closed
hooke007 opened this issue Nov 7, 2023 · 3 comments
Closed

Rendering: unexpected stretching #713

hooke007 opened this issue Nov 7, 2023 · 3 comments
Labels

Comments

@hooke007
Copy link

hooke007 commented Nov 7, 2023

Screenshots

mpv

193502b9u3ummabz3nbony

Description of the issue

Not sure if it was dup.
Just check the screenshot.

mpc-be's vsfilter

201242z9jp9bjtp1pt4p6j

libass version

master

Is it a regression?

No response

ASS Sample

test-00.00.00.000-00.00.00.637.7z.zip

Special Fonts

I uploaded or linked to the required font

System Information

Win10 but I think more info is unnecessary...

Log

No response

Additional info

No response

@astiob
Copy link
Member

astiob commented Nov 7, 2023

Your file has anamorphic video that is stored as 1440×1080 pixels but displayed at a 16:9 aspect ratio. This is why it gets stretched for display. This stretching includes the subtitles, and this is expected.

Please check your MPC-BE settings. For comparison, in MPC-HC, there’s a checkbox under Subtitles that mentions “anamorphic video”. This checkbox should always be checked for real subtitle files, and it will give you the same output as you’re seeing in mpv. If there’s no such checkbox, please report this to MPC-BE, because this is a serious issue for subtitled DVD rips.

If you’re authoring the subtitles and must keep the anamorphic video, apply a compensatory ScaleX of 75%.

If you’re trying to play a file created by someone else where undesired stretching occurs, mpv allows you to disable anamorphic correction (similar to the checkbox in MPC-HC): press V (Shift+v). XySubFilter/standalone VSFilter also allows this: filter properties → More → Render Layout Options → Use AR Adjusted Video Size.

In the attached file, XySubFilter and MPC-HC at default settings show the same stretching:

XySubFilter 3.2.0.806 screenshot MPC-HC 2.1.0 screenshot I don’t know why my MPC-HC isn’t picking up the font. This seems like an MPC-HC bug.

@astiob astiob closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2023
@astiob
Copy link
Member

astiob commented Nov 7, 2023

I don’t know why my MPC-HC isn’t picking up the font. This seems like an MPC-HC bug.

I’ve filed clsid2/mpc-hc#2312 for this.

@TheOneric
Copy link
Member

If you’re authoring the subtitles and must keep the anamorphic video, apply a compensatory ScaleX of 75%.

If MPC-BE’s ISR supports it you could also set the LayoutResX and LayoutResY headers to the video’s de-squeezed resolution (in this case: 1920×1080). The headers are supported by libass >=0.17.0, current git of Cyberbeing and pinterf xy-VSFilter/XYSubFilter and MPC-HC’s ISR >= 2.0.0.
If MPC-BE’s ISR does not yet support LayoutRes{X,Y} you could try asking them if they want to add support.

(Note: this affects more than just the font stretching shown here, but if you want to avoid/workaround font stretching you presumably will also find its other effects to your liking)

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

3 participants