Hi,
I am trying to rename my TV show episodes using the language information from the text Map (text.language or texts[0].language)
it works globally fine but I have encountered a strange case. The text language is undefined (confirmed with MediaInfo and VLC) but filebot defines it as 'en' for English. Actually the actual language for the subs is French.
Anyone could explain to me how is the English subs language detected ?
Thanks
Here is the MediaInfo Text extraction :
Text
ID : 1
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 41mn 3s
Bit rate : 103 bps
Count of elements : 1006
Stream size : 31.0 KiB (0%)
Default : Yes
Forced : No
then the filebot Text extraction :
StreamOrder 0
ID 1
ID/String 1
UniqueID 14240665607024620457
Format UTF-8
Format_Commercial UTF-8
CodecID S_TEXT/UTF8
CodecID/Info UTF-8 Plain Text
Codec S_TEXT/UTF8
Codec/String UTF-8
Codec/Info UTF-8 Plain Text
Language en
Language/String English
Language/String1 English
Language/String2 en
Language/String3 eng
Language/String4 en
Default Yes
Default/String Yes
Forced No
Forced/String No
DURATION 00:41:05.130000000
NUMBER_OF_FRAMES 59104
NUMBER_OF_BYTES 1298856937
_STATISTICS_WRITING_APP mkvmerge v8.3.0 ('Over the Horizon') 64bit
_STATISTICS_WRITING_DATE_UTC 2016-04-14 19:18:46
_STATISTICS_TAGS BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
wrong subtitle language detected
Re: wrong subtitle language detected
1.
{text} is a MediaInfo binding only works for media files / embedded subtitle streams.
e.g. according to MediaInfo, the subtitles are English, because the subtitle stream is tagged as English (which may or may not be correct) by whoever created the file:
libmediainfo says that it's English. If the mediainfo console tool says something different, then it's probably because the version is different, or your command doesn't list all mediainfo properties.
2.
{lang} is based on language detection from filename (eng suffix) / subtitle content (statistical language detection) and only works for subtitle files.
{text} is a MediaInfo binding only works for media files / embedded subtitle streams.
e.g. according to MediaInfo, the subtitles are English, because the subtitle stream is tagged as English (which may or may not be correct) by whoever created the file:
Code: Select all
Language en
2.
{lang} is based on language detection from filename (eng suffix) / subtitle content (statistical language detection) and only works for subtitle files.