Page 1 of 1

"Subtitle filter" plugins

Posted: 10 Aug 2013 23:08
by joeklow
Hi all.

What are the best possible approaches to be able to receive subtitle text input in plain text, without rewriting Freetype renderer's code - exactly, to avoid any modifications in main source tree?

// currently I look at Marquee's source code, but feel there's something incomplete with its SUBCAT_VIDEO_SUBPIC implementation.

Re: "Subtitle filter" plugins

Posted: 11 Aug 2013 09:13
by Rémi Denis-Courmont
sub filter plugins should be able to access the text before rendering.

Re: "Subtitle filter" plugins

Posted: 14 Aug 2013 20:48
by joeklow
sub filter plugins should be able to access the text before rendering.
Nope..

subpic filters (as in SUBCAT_VIDEO_SUBPIC, "sub filter", pf_sub_filter) are seemingly receiving empty p_subpic->p_region value in pf_sub_filter call, so p_subpic->p_region->psz_text route is unavailable.

Re: "Subtitle filter" plugins

Posted: 15 Aug 2013 17:09
by Rémi Denis-Courmont
Then there are no existing ways.