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

fix my issue #168

Closed
wants to merge 2 commits into from
Closed

fix my issue #168

wants to merge 2 commits into from

Conversation

pingplug
Copy link

I tried to fix issue #154
It seems work

@ghost
Copy link

ghost commented Mar 22, 2015

change default ScaledBorderAndShadow to 1

I support this, even if it's not "compatible".

@rcombs
Copy link
Member

rcombs commented Mar 22, 2015

Just was looking at vsfilter source to see, and it's not, and whether we think it's a good idea in general or not, I find it weird to be regressing in a compatibility as part of a fix for a compatibility issue.

@ghost
Copy link

ghost commented Mar 22, 2015

Looking at the commit, your changes actually disable ScaledBorderAndShadow, which conflicts with what the commit message says.

@ghost
Copy link

ghost commented Mar 22, 2015

Also be aware that you must call ass_set_storage_size() to the size of the video. (This can be a different value from ass_set_frame_size() if the subtitles are rendered into a video frame that has already be scaled, like for rendering in display resolution in a video player.)

@grigorig
Copy link
Member

grigorig commented Sep 7, 2015

Yes, ScaledBorderAndShadow=1 may be a more sensible default. Can you explain the second commit a bit better, ideally in the commit message?

@pingplug
Copy link
Author

rewrite commit message
commit 1 disable the ScaledBorderAndShadow by default like VSFilter does
dummy_000_0
before
dummy_001_0
after

commit 2 add a border between two collision texts, makes the space between two collision texts larger than space between two lines, Which is what VSFilter does.
dummy_002_0

ass file:

[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,微软雅黑,31,&H00FFFFFF,&H00000000,&H00000000,&H00000000,-1,0,0,0,100,100,0,0,1,1,0,2,30,30,15,1

[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:00.00,0:00:27.16,*Default,NTP,0,0,0,,Text1, line1 测试\NText1, line2 测试
Dialogue: 0,0:00:00.00,0:00:27.16,*Default,NTP,0,0,0,,Text2, line1 测试\NText2, line2 测试

@ghost
Copy link

ghost commented Dec 31, 2015

It's still not clear whether whatever code you use calls ass_set_storage_size().

I don't know whether changing the ScaledBorderAndShadow default is reasonable; it used not to make any sense with libass (because libass could render to screen resolution, i.e. different frame size than the video frame), but maybe the storage size thing handles this correctly now.

@pingplug
Copy link
Author

@wm4 there are may subtitles uses the default resolution 484x480, but the resolution of video is much higher(1920x1080). These subtitles are created and previewed with VSFilter, and the border is not scaled. libass will scale the border, make the border thicker than VSFilter.

@ghost
Copy link

ghost commented Dec 31, 2015

That's yet another issue, and not what I asked about.

@pingplug
Copy link
Author

ass_set_storage_size() will not change the value of ScaledBorderAndShadow, so I don't think this function can help

@TheOneric
Copy link
Member

The two issues this pr attempted to resolve have since been addressed by #390 and #395 .

@TheOneric TheOneric closed this Oct 27, 2020
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

Successfully merging this pull request may close these issues.

None yet

4 participants