[CLOSED] ENCA update for better MEncoder subtitles support
[CLOSED] ENCA update for better MEncoder subtitles support
http://cihar.com/software/enca/#
Improved bielorusian, chinese, slovenian support and fixed some bugs fro OSX, ... since 1.13 that is actually used by UMS for some subtitles.
Improved bielorusian, chinese, slovenian support and fixed some bugs fro OSX, ... since 1.13 that is actually used by UMS for some subtitles.
Last edited by Sami32 on Sat Jul 09, 2016 4:21 am, edited 4 times in total.
Re: ENCA latest update (1.18) for better subtitles support
Where do we use ENCA?
Re: ENCA latest update (1.18) for better subtitles support
Actually it's look like it's used for MPlayer/MEncoder only.
In SubtitleUtilsTest.java
assertThat(getSubCpOptionForMencoder(sub1)).isEqualTo("enca:zh:big5");
assertThat(getSubCpOptionForMencoder(sub3)).isEqualTo("encacp1251");
and in SubtitleUtils.java :
// Cyrillic / Russian
put(CHARSET_IBM855, "encacp1251");
put(CHARSET_ISO_8859_5, "encacp1251");
put(CHARSET_KOI8_R, "encacp1251");
put(CHARSET_MACCYRILLIC, "encacp1251");
// Chinese
put(CHARSET_ISO_2022_CN, "ISO-2022-CN");
put(CHARSET_BIG5, "enca:zh:big5");
put(CHARSET_GB18030, "enca:zh:big5");
put(CHARSET_EUC_TW, "enca:zh:big5");
Also mentioned in contrib/binaries-deps-versions, contrib/download-pms-binaries-source.sh, contrib/download-pms-binaries-source.sh and contrib/build-pms-binaries.sh.
P.S. Do you imply that is old code from 2012 that was not cleaned ?
In SubtitleUtilsTest.java
assertThat(getSubCpOptionForMencoder(sub1)).isEqualTo("enca:zh:big5");
assertThat(getSubCpOptionForMencoder(sub3)).isEqualTo("encacp1251");
and in SubtitleUtils.java :
// Cyrillic / Russian
put(CHARSET_IBM855, "encacp1251");
put(CHARSET_ISO_8859_5, "encacp1251");
put(CHARSET_KOI8_R, "encacp1251");
put(CHARSET_MACCYRILLIC, "encacp1251");
// Chinese
put(CHARSET_ISO_2022_CN, "ISO-2022-CN");
put(CHARSET_BIG5, "enca:zh:big5");
put(CHARSET_GB18030, "enca:zh:big5");
put(CHARSET_EUC_TW, "enca:zh:big5");
Also mentioned in contrib/binaries-deps-versions, contrib/download-pms-binaries-source.sh, contrib/download-pms-binaries-source.sh and contrib/build-pms-binaries.sh.
P.S. Do you imply that is old code from 2012 that was not cleaned ?
Re: ENCA latest update (1.18) for better subtitles support
Sami32 the ENCA itself is not used in the UMS. So I guess that it is used internally in the MEncoder so the UMS only prepares the subs parameters for MEncoder. If in the MEncoder is used the latest ENCA code I don't know.Sami32 wrote:Actually it's look like it's used for MPlayer/MEncoder only.
P.S. Do you imply that is old code from 2012 that was not cleaned ?
In the SubtitleUtils.java there is a fileCharsetToMencoderSubcpOptionMap which is used to prepare the correct MEncoder parameters regarding the detected subs charset.
The contrib/binaries-deps-versions, contrib/download-pms-binaries-source.sh, contrib/download-pms-binaries-source.sh and contrib/build-pms-binaries.sh are there for Linux and OSX. These scripts are only meant for enthusiasts who want to bundle their UMS with custom built versions of libraries and tools, replacing the standard versions shipped with the regular UMS distribution. Those scripts should be updated.
Re: ENCA update for better MEncoder subtitles support
Valib Thank you very much for your answer and your explanations