[MPlayer-users] How to force SSA subtitles size to constant one ?
Sasza
warpme at o2.pl
Fri Aug 3 10:09:59 CEST 2007
Evgeniy Stepanov wrote:
> On Thursday 02 August 2007, Sasza wrote:
>> Evgeniy Stepanov wrote:
>>> On Tuesday 31 July 2007, Warpme wrote:
>>>> Hi all,
>>>>
>>>> I have problems with different subtitle styles in .mkv files.
>>>> I understand SSA subtitles embedded in matroskha container has also
>>>> embedded presentation style - so when I have .mkv files with the same
>>>> resolution - subtitles might be displayed with different sizes.
>>>> This is exact my case: on some films they are too big, on some other
>>>> they are to small.
>>>> For displaying I use asslib, and I'm forcing ass-font-style.
>>>> Here is my mplayer config:
>>>>
>>>> #-----------------------
>>>> ao=alsa
>>>> ac=hwac3,hwdts,a52,
>>>> lavdopts=fast=yes:skiploopfilter=all
>>>> slang=pol,eng
>>>> alang=eng,pol
>>>> ass=1
>>>> ass-force-style=FontName=Arial,Default.Bold=1
>>>> subfont-text-scale=4.5
>>>> subcp=cp1250
>>>> vo=xv
>>>> fs=yes
>>>> zoom=yes
>>>> #-------------------------
>>>>
>>>> What additionally should be added here for forcing always the same
>>>> subtitles font size ?
>>>>
>>>> thx in advance
>>> Try ass-force-style=FontSize=<value>.
>> Evgeniy,
>>
>> Thanx for trying help.
>>
>> Well - command is recognized by mplayer, but problem still persist.
>> Changing value changes subs size, but they are still different in
>> different movies. Setting i.e suitable size for 1280x540 AVC1 movie
>> causes that DIVX 720x540 movie has subtitles on whole screen...
>> I see 2 problems:
>> -subs size depends on movie res (and I want it to be independent)
>> -different subs styles are still differently presented - so style
>> overriding not works.
>
> SSA/ASS subtitles are scaled proportional to movie height, so with these two
> movies their size (in pixels) should be identical. If you have a sample where
> they aren't, send it.
I have. Both .mkv files are AVC1 encoded 1280x544 movies with the same
resolution. They gives total different subs font size (one 2 times
smaller than other).
Q: Both files are 5GB files - so how can I sent it ?
>
> Different fonts can have different visual sizes with the same FontSize. You
> can check if this is the case by changing FontSize directly in the subtitles
> file, not relying on ass-force-style. This is especially true with FreeType <
> 2.2.0.
Sure. Thats why I want to force always the same font (no mater what
style is defined in .mkv file). Visually it looks like mplayer correctly
forcing font (always Arial). Problem is with size....
More information about the MPlayer-users
mailing list