Expand description
Language codes as files write them: ISO 639-2 in streams (eng, and
both ger and deu), often ISO 639-1 in subtitle file names (en).
same_language treats all spellings of one language as equal.
Functions§
- bcp47
- A language code as BCP 47 (HLS’s
LANGUAGE) writes it: the two-letter code where the language has one (engandenareen), else the code as it is, lowercased. - iso639_
2 - A language code as ISO 639-2 writes it, three letters, the
bibliographic code where there are two (
enandengareeng,deisger): what MP4’s language field holds, and ffmpeg’s MP4 muxer writesundfor any other. A code not known stays as it is, lowercased. - same_
language - Whether two language codes name the same language.