Jump to content

Incorrect characters in subtitles


tmysik

Recommended Posts

Noticed that in Android app (Emby plugin for Kodi works OK).

Some characters of the subtitles are incorrect, see the attached images.

Expected:

expected.png.e34211658dc0a902bf7a16b9736e93f2.png

Actual:

emby.thumb.png.2895bcce3a0027176b7207c957187254.png

 

Subtitles file (UTF-8, Linux line endings, no language in the file name):

Top.Gear.S30E01.720p.HDTV.2CH.x265.HEVC-PSA.srt

Server logs:

embyserver.txt

hardware_detection-63762911635.txt

 

Please, let me know if anything more is needed. Thank you.

 

  • Agree 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

Just wanted to report same problem. It seems there is problem with sub font in android app which doesnt correctly display č, ž, š(czech letters with hook). But othres "hooked" letters ě, ň, ď, ť, ř are correct.

 

Screenshot_20210924-162959_Emby.jpg

  • Agree 2
Link to comment
Share on other sites

Hi, i do have the exact same issue with apple 4k tv and apple iphone 11 both with ios 15. Should i open a new topic under apple tv or ios? Or will this be solved globally for each device? Screenshot from my iphone emby with Czech subtitles…probably Slovak language (subtitles) will have same issue. Thanks

50AC3F37-7D9B-4284-AE09-DA20BA1AA0F3.jpeg

Link to comment
Share on other sites

  • 5 weeks later...
  • 5 weeks later...
  • 4 weeks later...
  • 3 weeks later...

Just got hit by this bug when watching in Firefox. I think the issue is either the font or the renderer of the font. A font can contain accented characters (say í or ý) and everything works fine. But when the renderer encounters a character that is not contained in the font,  such as ž, then it can use "v" and "z" to create the desired symbol. This clearly does not work here. To make matters even more complicated, in unicode you can represent ž either as one special character or as character "z" followed by accent "v".

To debug this I suggest to go trough the following steps:

  1. Try using font that has all unicode characters of all European languages.
  2. Try upgrading the library that is in charge of displaying fonts.
  3. Convert  subtitles into unicode files with one unicode character per displayed character.
Edited by VTucek
Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...
  • 1 month later...
mprasil

This is still not working in the latest version. If this is font issue, is there a way to provide custom font?

Link to comment
Share on other sites

7 minutes ago, mprasil said:

This is still not working in the latest version. If this is font issue, is there a way to provide custom font?

HI, we'll take another look at it. Thanks.

  • Sad 2
Link to comment
Share on other sites

Houfino

I have the same problem..The admin doesn't want to solve it and they censored me...We have been waiting for a year and a half....I had to return the old versions

I had to reinstall emby version EMBY 3.1.73(android)...It works!!!!

Link
PROBLEM SUBTITLE

@Luke
why are you doing????? Why don't you want to solve it?

Link to comment
Share on other sites

MiChAeLoKGB

I personally do not have EMBY Premium anymore and am using EMBY only to track my watched media...

Link to comment
Share on other sites

GrimReaper
3 minutes ago, Houfino said:

and they censored me

Who censored you? Where? I've gone through the entire thread you linked to and haven't noticed any action taken on any of your content by an Admin or a Mod? 

  • Like 1
Link to comment
Share on other sites

Houfino
Dne 18.7.2022 v 19:35 GrimReaper řekl:

Kdo tě cenzuroval? Kde? Prošel jsem celé vlákno, na které jste odkazoval, a nevšiml jsem si žádné akce, kterou s vaším obsahem provedl administrátor nebo mod? 

I wrote you a private message..I don't want to write here publicly..

Link to comment
Share on other sites

  • 3 weeks later...
Marcus1305

The problem is still there. I don't understand why is it hard to fix it, since everything was fine until version 3.1.73 and that's why I'm forced to stay on it and not update the app. I think you should add an option to change the subtitle font or revert to the old one, as this could be a potential cause of the problem.

Edited by Marcus1305
  • Agree 1
Link to comment
Share on other sites

Houfino
2 hours ago, Marcus1305 said:

The problem is still there. I don't understand why is it hard to fix it, since everything was fine until version 3.1.73 and that's why I'm forced to stay on it and not update the app. I think you should add an option to change the subtitle font or revert to the old one, as this could be a potential cause of the problem.

I agree! The admin doesn't want to solve it... We waited a year and a half.... The admin keeps making excuses that he will solve it and nothing....i also remain version emby 3.1.73....It's not hard to fix..They don't want to deal with it..why do we pay emby when subtitles don't work..

  • Agree 1
Link to comment
Share on other sites

mprasil

So I did an experiment and recompiled  the latest Emby apk file replacing the assets/subfont.ttf file with same file from older Emby apk that didn't have this issue. After using the recompiled version, I can confirm the subtitles render correctly using latest Emby for Android 3.2.62:

image.png.9b339cc1332bb188298b3430c1ab8297.png

This obviously does not fully solve my problem as I can't use the same approach on devices that do not support sideloading. But I think this pretty much confirms that the issue is within the used font. The working font is Roboto, the new (broken) font seems to be Noto Sans.

You can actually test the font pretty easily here, just type in some test text and drag the font you want to test. Here is how the old font renders my test string at 36px (note there is some slight kerning issue around the ť character, but otherwise it seems OK):

image.png.7cd8837f893149aa79db471c3bfcd96f.png

The font in the latest version renders the same text very incorrectly:

image.png.b767d3ebc63bef5c853328f0a11f6f30.png

Here's the test text, I've used for testing, just copy/paste it into the tool: Příliš žluťoučký kůň úpěl ďábelské ódy

I understand that reverting the font might not be super easy as it might break international characters in other languages, however this should be considered the same as broken playback on all devices within regions using this characters sets. (Czech, Slovak, possibly others) This renders Emby almost unusable for those languages. (Which is made even worse by the fact, that using subtitles is much more common as a lot of content isn't dubbed in local language)

Hope this info helps to fix this ASAP.

  • Like 1
  • Agree 1
  • Thanks 2
Link to comment
Share on other sites

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...