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

Add option to use libass to render ass/ssa subtitles #205

Closed
g-2-s opened this issue Jan 2, 2020 · 13 comments
Closed

Add option to use libass to render ass/ssa subtitles #205

g-2-s opened this issue Jan 2, 2020 · 13 comments
Labels
enhancement PatchRequired Idea approved / bug confirmed. Now we just need someone to implement it...

Comments

@g-2-s
Copy link

g-2-s commented Jan 2, 2020

This is not an issue but a question from a noob user: are external sub renderers like XySubFilter or AssFilter still necessary/recommended or is the internal one good enough?

@eXmendiC
Copy link

eXmendiC commented Jan 2, 2020

XySubfilter as a libass wrapper is my recommendation.
Take a look here: Cyberbeing/xy-VSFilter#16

@clsid2
Copy link
Owner

clsid2 commented Jan 2, 2020

The internal subtitle renderer works good and is reliable. Perhaps only with idiotically complex typesetting it might struggle with performance.

xy-VSFilter and XySubFilter are based on VSFilter, which is actually part of MPC-HC code base and shares the rendering code with the ISR. So instead of trying to modify a dead fork of a dead project (xy-VSFilter) people should consider implementing a libass rendering option for ISR. The patch that you have linked to could probably be ported with some small modifications.

@MatiasMovie
Copy link

XySubFilter work better than internal sub filter but when you using external filter then you can't using delay (F1 and F2 button). Delay with external sub filter works in MPC-BE.

@clsid2 clsid2 changed the title Is the Internal Subtitle Renderer good enough? Add option to use libass to render ass/ssa subtitles Mar 18, 2020
@clsid2
Copy link
Owner

clsid2 commented Mar 18, 2020

It could be interesting to port this patch to MPC-HC:
Cyberbeing/xy-VSFilter#16

@clsid2 clsid2 added enhancement PatchRequired Idea approved / bug confirmed. Now we just need someone to implement it... labels Mar 18, 2020
@adipose
Copy link

adipose commented Apr 1, 2020

I looked at the patch, and I'm sure it could be ported, but most of the changes are in new cpp files that don't exist in the mpc-hc-included VSFilter.

@clsid2
Copy link
Owner

clsid2 commented Apr 2, 2020

Yes, it seems the patch only changes it for XySubFilter and not for VSFilter. But they share the same lower level code, so it should be portable to VSFilter (and Internal Subtitle Renderer) as well.

@adipose
Copy link

adipose commented Apr 3, 2020

https://en.wikipedia.org/wiki/DirectVobSub

The article mentions mpc-hc being shut down due to lack of developers. Might be worth updating it.

@adipose
Copy link

adipose commented Apr 4, 2020

@clsid2

The patch relies on RequestFrame, which isn't an implemented method in vsfilter (though it is in xy-vsfilter via xy_sub_filter). It seems more like the code in XySubPicProvider in mpc-hc. So maybe a new sub provider similar to PGSSub would be the most analogous.

I was hoping a 3 way merge might be possible, but after reviewing it, it seems basically it would have to be reimplemented in mpc-hc.

I'm not familiar with vsfilter code, so I'm probably not the right person to do it, but it seems to me the code that this patch depends on isn't really in mpc-hc vsfilter.

@clsid2
Copy link
Owner

clsid2 commented Apr 4, 2020

I am not very familiar either. But yes, it seems it would require a new implementation similar to CRenderedTextSubtitle/CPGSSub.

@clsid2
Copy link
Owner

clsid2 commented Jun 19, 2020

@clsid2 clsid2 closed this as completed Jul 11, 2020
@eXmendiC
Copy link

eXmendiC commented Jul 12, 2020

Since you closed the issue and already and have a test build, does it mean it will be implemented (as an alternative option) with a newer version? I downloaded the test build but can't see an option available besides "Internal Subtitle Renderer". You changed the name to "Add option to use libass to render ass/ssa subtitles", so it shouldn't replace the old "Internal Subtitle Renderer", should it?

@clsid2
Copy link
Owner

clsid2 commented Jul 12, 2020

It will be optional.

@MatiasMovie
Copy link

MatiasMovie commented Nov 18, 2021

I think Masaiki create good solution to use libass in mpc
https://github.com/Masaiki/xy-VSFilter/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement PatchRequired Idea approved / bug confirmed. Now we just need someone to implement it...
Projects
None yet
Development

No branches or pull requests

5 participants