INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: SSA/ASS subtitles bugs ... and hopefully fixes?  (Read 2115 times)

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1563
SSA/ASS subtitles bugs ... and hopefully fixes?
« on: March 31, 2018, 01:48:53 pm »

I was perfectly happy with subtitles that i get from BD and DVD (never converted them to text ... just mux them into MKV)

Then I discovered SSA/ASS subtitles ... thought it was great for karaoke. Then tried some of those on Anime and thought it was awesome visually. Problem is ... MC is not handling them completly (and now seems cannot use external DirectShow filters to do that anymore).

Here is simple example ... to make comparison ... i installed concerned font Open Sans Semibold (in its absence MPC-HC and MC use their default font settings)

Following is concerned fields of SSA/ASS file:

[Script Info]
Title: HorribleSubs
ScriptType: v4.00+
WrapStyle: 0
PlayResX: 848
PlayResY: 480
ScaledBorderAndShadow: yes

[V4+ Styles]

Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Open Sans Semibold,36,&H00FFFFFF,&H000000FF,&H00020713,&H00000000,-1,0,0,0,100,100,0,0,1,1.7,0,2,0,0,28,1
Style: Bullet_Main,Open Sans Semibold,36,&H00FFFFFF,&H000000FF,&H00020713,&H00000000,-1,0,0,0,100,100,0,0,1,1.7,0,2,0,0,28,1
Style: Bullet_Ep_Title,Open Sans Semibold,30,&H00F3FBFD,&H000000FF,&H0049504F,&H007B7D79,1,0,0,0,100,100,0,0,1,2,0,3,13,60,80,1

[Events]
Format: Layer, Start, End, Style, Actor, MarginL, MarginR, MarginV, Effect, Text

Dialogue: 0,0:02:00.95,0:02:03.76,Bullet_Main,,0000,0000,0000,,{\a6}it feels like the fact that the \NMonolith will be destroyed
Dialogue: 0,0:02:00.99,0:02:04.43,Bullet_Ep_Title,sign,0000,0000,0000,,{\fad(460,470)}#10 Tokyo Area Defensive Battle
Dialogue: 0,0:02:03.76,0:02:05.06,Bullet_Main,,0000,0000,0000,,{\a6}in three days is a lie.

As video is 1080 and subs are for 480, there is some scaling involved ... 1080/480=2.25

Subtitles that gets send to top with {\a6} but retain style's MarginV of 28 should display text 28*2.25=63 below top
Title of episodes with MarginV of 80 should display text 80*2.25=180 above bottom

MPC-HC does this right

This part of subtitles have overlaps in time ... with way MC displays it, can sort of guess how SSA/ASS are handled

1. First part of subtitle gets rendered in default MC font size (in this case its much bigger than what specified) ... it is correctly get send to the top with {/a6} that overides alignment specified for the used style ... however, MarginV gets ignored

2. Second part of subtitles respect style specified (including font size) ... but I am a bit puzzled with its MarginV (which is around 147px ... should be 180)

3. Then first part of subtitles dissapear and immediately third part is displayed ... as this happens second part gets rerendered:
a. Third part correctly get send to the top with {/a6} that overides alignment specified for the used style ... however, MarginV gets ignored again ... but style font size is used this time (instead of default MC font size)
b. Second part gets rerendered ... this time with correct MarginV of 180 ... but font size of third part is used (instead of what is specified in style)

4. As second part of subtitles dissapear, third part gets redrawn ... with default MC font size ... it is correctly get send to the top with {/a6} ... however, MarginV gets ignored again

Seems MC handling of SSA/ASS is a bit off. So my question is ... does JRiver has any plans to implement SSA/ASS features ... or should i just forget about this subtitle format and be happy with what i had before lol

PS. I have not programmed in ages ... so cannot offer any help ... except testing ... testing I can do
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1563
Re: SSA/ASS subtitles have any possible future with JRiver?
« Reply #1 on: April 02, 2018, 06:23:55 am »

having played with text based subtitles ... i think MC is good for pure text subtitles like SRT ... can choose font, size, scaling, positioning (not that i use those lol)

but for ASS/SAA ... strict adherance to styling should be followed ... (in many instances subtitle color, borders, font, color and positioning are precisely defined to match what is being translated ... eg street signs, book titles) ... at most only scaling should be provided for ppl who find what author of ASS/SSA subtitle made to be too big or too small ... and possibly timing delay/stretch to match source video you have
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)
Pages: [1]   Go Up