Kdenlive Subtitles Stretched in Vertical Aspect Ratio

Hello,

did anyone here ever try to make subtitles in a project which uses a different aspect ratio, for example 1080x1920 instead of 1920x1080?

I realized that it is stretched - regardless of the font. “Character spacing” is a nice feature, but doesn’t change the fact that there is an issue.

I uploaded a Screenshot for you to see the difference.

I found this post on the forum, but as far as I can tell, it happens for every font in general and not only font outlines. Can someone try so we can validate that it is a bug or if I did something wrong. Thanks.

I’m pretty sure you’ll find the internet is full of them : )

it happens for every font in general and not only font outlines

Yes, font spacing, the effect of scaleX, and any outline/shadow, all respond to changes in aspect ratio. That’s how ASS subtitles are defined to work.

we can validate that it is a bug or if I did something wrong

We can. If you don’t like the proportions you’re seeing, then it’s almost certainly the latter. Sorry.

It should be easy to confirm that a modern version of any Good Player (like vlc) will render a given subtitle file in much the same way we do (modulo font family availability and substitution).

ASS subtitles operate in ‘script resolution’, which is something separate to the project resolution. Its intention was so that you can define the appearance of the subtitles relative to some reference resolution that the subtitle author created them with - and they will retain their relative proportions to that if the viewer watches that video scaled to different size, or distorted to a different aspect ratio.

It doesn’t guarantee that a particular set of font parameters (or anything else that operates in Script Resolution units) will appear identically if they are blindly copied to a different subtitle file that is using a different script resolution or aspect ratio.

The new subtitle code that I’m working on tries a bit harder to provide some better defaults, and to fix up the script resolution where it can when things are rescaled - but what you’re seeing is pretty fundamental to ASS, and we can’t Just Change That and expect subtitles to still work the same on every player.

If you want the font to look different visually, you’ll need to create one to suit your project size and aspect or change the parameters of the default one, to look the way you want. (The new code will help with that too by providing style libraries you can save them to for reuse in other projects).

Thanks for the quick answer :slight_smile: