public static void getSubCodec(DLNAMediaSubtitle subt, String value) {
if (value.equals("s_text/ass") || value.equals("s_text/ssa")) {
subt.setType(DLNAMediaSubtitle.ASS);
} else if (value.equals("pgs")) {
subt.setType(-1); // PGS not yet supported
} else if (value.equals("s_text/utf8")) {
subt.setType(DLNAMediaSubtitle.EMBEDDED);
subt.setFileUtf8(true);
}
}// GUI: Override ASS subtitles style if requested (always for SRT subtitles)
if (
!configuration.isMencoderAssDefaultStyle() ||
params.sid.getType() == DLNAMediaSubtitle.SUBRIP ||
params.sid.getType() == DLNAMediaSubtitle.EMBEDDED
) {Junkyboy wrote:Seems like a "subt.setFileUtf8(true);" should be there for ass/ssa as well since its specifically tested for in the ASS enabling code. I added it..and it didnt help for some reason, still false. Well I just commented out the test and it started to emit the -ass flag. Then I noticed I could not turn off style override, regardless of the button selection. Looking at the code I found this:
- Code: Select all
// GUI: Override ASS subtitles style if requested (always for SRT subtitles)
if (
!configuration.isMencoderAssDefaultStyle() ||
params.sid.getType() == DLNAMediaSubtitle.SUBRIP ||
params.sid.getType() == DLNAMediaSubtitle.EMBEDDED
) {
Well, all of my mkvs with subtitles are DLNAMediaSubtitle.EMBEDDED and I wanted to use the style it comes with. So, I comment out params.sid.getType() == DLNAMediaSubtitle.EMBEDDED and it works perfectly. If I want to force the default style, I can just use the checkbox.
Thanks for the all the hard work, this is the best version of PMS released!
public static void getSubCodec(DLNAMediaSubtitle subt, String value) {
logger.debug("getSubCodec : value is : " + value); // never gets printed for me
if (value.equals("s_text/ass") || value.equals("s_text/ssa")) {
subt.setType(DLNAMediaSubtitle.ASS);
subt.setFileUtf8(true); // should this be here? Its required to enable -ass
} else if (value.equals("pgs")) {
subt.setType(-1); // PGS not yet supported
} else if (value.equals("s_text/utf8")) {
subt.setType(DLNAMediaSubtitle.EMBEDDED);
subt.setFileUtf8(true);
}
}Junkyboy wrote:Just get some more testing in, I added some more logging to MediaInfoParser (the class that sets the type to DLNAMediaSubtitle.ASS). I don't see it getting called since none of my added log messages are showing up.
ExSport wrote:And what is returned for external ASS/SSA subs?![]()
- Code: Select all
DLNAMediaSubtitle.ASS ?
Users browsing this forum: No registered users and 3 guests