-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider normalizing all language codes to use a single standard #2867
Labels
Comments
Pretty sure we just mirror whatever's in the source media. Assuming the source media uses some vaguely sane standard, then you should be able to normalize it into RFC 5646 using |
Hm, actually, I'm not about the second part of my answer. |
ojw28
changed the title
What standard does ExoPlayer use for language code of a track in Format.language field?
Consider normalizing all language codes to use a single format
Sep 20, 2017
ojw28
changed the title
Consider normalizing all language codes to use a single format
Consider normalizing all language codes to use a single standard
Sep 20, 2017
ojw28
pushed a commit
that referenced
this issue
Nov 27, 2017
Also slightly improve language normalization/documentation. For this CL, it is assumed that null and "und" languages are different entities. Once we fully tackle language tag normalization, we can decide whether to normalize the "undefined" language. Issue:#2867 Issue:#2980 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=177008509
ojw28
pushed a commit
that referenced
this issue
Dec 12, 2017
Also slightly improve language normalization/documentation. For this CL, it is assumed that null and "und" languages are different entities. Once we fully tackle language tag normalization, we can decide whether to normalize the "undefined" language. Issue:#2867 Issue:#2980 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=177008509
ojw28
pushed a commit
that referenced
this issue
Jan 29, 2019
…tation. Issue:#2867 PiperOrigin-RevId: 231385677
Fixed in |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version of ExoPlayer used: 2.3.1 (with plans to use latest)
ExoPlayer uses three-letter codes in Format.language for audio and subtitle tracks. Question is - what standard is used for these codes? Is it 639‑2/T, 639‑2/B, 639‑3 (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes#Partial_ISO_639_table) or some other standard?
The Format.language field description states only "The language, or null if unknown or not applicable." (in v1 it was stated explicitly: "The language codes are two-letter lowercase ISO language codes (such as "en") as defined by ISO 639-1.") and I couldn't find the answer regarding v2 anywhere. I'd be grateful for the clarification.
The text was updated successfully, but these errors were encountered: