Jump to content

IETF BCP 47 language code support for embed subtitle


Recommended Posts

Posted

I found that both Simplified Chinese and Traditional Chinese subtitles will be detected as Simplified Chinese, even though they are already set to zh-hans and zh-hant.PixPin_20241121_231723.png.162db3b0fb5b4aa314db803ebc7ce92c.png

PixPin_20241121_231836.png.7abddc4840e6e45e9e2c602e7b5538fa.png

 

The reason might be emby only read ISO 639 language code (which can't distinguish variant), but not IETF BCP 47 language code.

However, if I give the track name as 'Simplified' and 'Traditional', they will be detected correctly even if their language codes are both 'chi' or 'zh'.

 

I hope emby can support IETF BCP 47 language code so that I don't have to adjust them manually.

 






 

Posted

Hello Ryanrrr,

** This is an auto reply **

Please wait for someone from staff support or our members to reply to you.

It's recommended to provide more info, as it explain in this thread:


Thank you.

Emby Team

GrimReaper
Posted
10 minutes ago, Ryanrrr said:

I hope emby can support IETF BCP 47 language code so that I don't have to adjust them manually.

Try giving MediaInfo plugin a spin, see what gives:

 

 

  • Like 1
Posted (edited)
10 minutes ago, GrimReaper said:

Try giving MediaInfo plugin a spin, see what gives:

 

 

Thanks for answering.

I have installed MediaInfo plugin and config well already before posting. I think this plugin is mostly for video and audio tracks, so it doesn't help me with subtitle problems.

Edit: I just found my plugin is version 1.0.1.20, I will try updating it and see if it helps, thanks!

Edited by Ryanrrr
Posted
52 minutes ago, GrimReaper said:

Try giving MediaInfo plugin a spin, see what gives:

 

 

Thanks for answering.

I have installed and updated MediaInfo plugin, I think this plugin is mostly for video and audio tracks, so it doesn't help me with subtitle problems.

Posted (edited)
10 hours ago, Ryanrrr said:

Thanks for answering.

I have installed and updated MediaInfo plugin, I think this plugin is mostly for video and audio tracks, so it doesn't help me with subtitle problems.

 

image.png.bbb021cddef8c28378842a208bbe835b.png

Yes, this function simply writes the audio track language (as a BCP47 language type) as a TAG (so you can filter/sort on it) - it doesn't change the emby record.

However, what it 'could' do is edit/append the MKV Track name based off the BCP47 language type. 

Currently Internal Subs (track names) are not part of the MediaInfo plugin - but could easily be added.

Up until this point, I've never seen the need to edit the sub track name ;)

This is an interesting idea which I'll investigate... but I cannot promise anything at this time.

Edited by rbjtech
  • Like 1
Posted
12 minutes ago, rbjtech said:

 

image.png.bbb021cddef8c28378842a208bbe835b.png

Yes, this function simply writes the audio track language (as a BCP47 language type) as a TAG (so you can filter/sort on it) - it doesn't change the emby record.

However, what it 'could' do is edit/append the MKV Track name based off the BCP47 language type. 

Currently Internal Subs (track names) are not part of the MediaInfo plugin - but could easily be added.

Up until this point, I've never seen the need to edit the sub track name ;)

This is an interesting idea which I'll investigate... but I cannot promise anything at this time.

Thanks for your reply and I really appreciate your work on MediaInfo.

I also had an idea to write a .bat file with mkvpropedit to add track name for subtitle track with 'zh-hant' or similar language code. However I'm a rookie on .bat and not familiar with mkvpropedit so still can't make it😥 

I believe it worth a try since not only Chinese but also like Spanish, French, Portuguese all have a lot variants, letting them be detected correctly can makes the experience better. 

  • Agree 1
Posted

Hi, we’ll take a look at this. Thanks for reporting.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...