Search the Community
Showing results for tags 'ISO 639-1'.
harrv posted a topic in General/WindowsI really like using Emby to manage my movie and TV libraries, and to provide remote access to them. When I'm home, for various reasons, I use Kodi as my player, rather than one of the Emby apps. I use the Emby for Kodi add-on, the Embuary skin, and configure them for native/direct play over nfs to my nas. I have both Emby and Kodi configured to store subtitles alongside the video files. Emby is configured to download external srt subtitles from opensubtitles.org for movies and episodes that have neither external subtitles already, nor subtitles encoded into the video file itself. I only need/use English subtitles. All of that works beautifully most of the time. When doing direct-play in Kodi, it will use the embedded subtitle found in the video container file, or the external *.eng.srt file downloaded and saved by Emby. When I notice that subtitles are out-of-sync with the video, one of the nice ways I can solve that within Kodi is to use their mechanism for picking and downloading a new srt subtitle file from opensubtitles.org. I pick a file that I think will more closely match the video file I have, download it, and continue to play the video to test the new subtitles. It usually only takes one or two tries to find a subtitle file that is perfectly synchronized. However, Emby saves subtitle files as *.eng.srt and Kodi saves them as *.en.srt. So, after choosing and downloading an in-sync subtitle file in Kodi, I now have two subtitle files on disk--one that is in sync with the video (named *.en.srt) and one that is out-of-sync with the video (named *.eng.srt). Although Kodi saves the file using the 'en' tag, it seems to also recognize files that use the 'eng' language tag in their names. It seems to prefer the *.en.srt file if available, either because that's the naming standard it uses when it saves, or because that file is newer, I'm not sure which. I'm not sure how Emby decides which file to use as the English subtitle file when streaming, but if it picks the same one it saved, it will be the out-of-sync one. All of this would be solved though, if Emby and Kodi both used the same language tag standard. Kodi seems to be using either ISO 639-1, or the IANA Language Subtag Registry. I'm not sure which because both of those use 'en' as the code for English. Emby, on the other hand, seems to be using ISO 639-2. There are quite a few different standards for language tags. See the tags I've given this topic for some of them. The only guidance I could find when searching for preferred standards for this type of use came from W3C in this document: https://www.w3.org/International/questions/qa-lang-2or3 Their recommendation is to use the IANA Language Subtag Registry instead of ISO 639-1 or ISO 639-2. If that's the case, then I think Kodi is correct to us 'en' instead of 'eng'. Thanks so much for any help with this. I hope that Emby and Kodi can get on the same page for which language tags to use when naming srt files.