iBoss 23 Posted January 21, 2019 Share Posted January 21, 2019 Hi There is some issue with Arabic subtitle on ios emby App. it gives Squares and G letter (please see the attached screenshot 01.png) ... it should as attached screenshot 02.png after some investigation on mpv player I see the same problem (it is because the default font it used by the mpv) ... if I add: sub-text-font="" without any name of font, it will fix the issue. my request: Could you please embed the attached font (Mohammad-Bold-normal.ttf) within the emby app and point mpv player to chose it? it will fix the issue and it will be fantastic because this font is one of the top font for Arabic subtitle and also please add it for all app like Apple TV and Android Note: I have attached a test subtitle (small subtitle 7 sec) to reproduce the issue Server: Linux Ubuntu Linux 16.04.5 Emby Version 4.0.0.2 ios Emby App Version: 1.7.2 test.srt embyserver.txt ffmpeg-transcode-0d6635bc-f8a3-45d6-aade-f88882c7996a_1.txt Mohammad-Bold-normal.zip Link to comment Share on other sites More sharing options...
Luke 36999 Posted January 21, 2019 Share Posted January 21, 2019 Hi there, how does that compare to this font file: https://github.com/mpv-android/mpv-android/blob/master/app/src/main/assets/subfont.ttf It's not that simple to just replace the font because it could end up causing new problems with other languages. Link to comment Share on other sites More sharing options...
iBoss 23 Posted January 22, 2019 Author Share Posted January 22, 2019 Hi there, how does that compare to this font file: https://github.com/mpv-android/mpv-android/blob/master/app/src/main/assets/subfont.ttf Same issue. actually this font does not have Arabic letters. please see that attached screenshots. I have an idea ... please give me the font file you want to use it; I will develop it to add Arabic characters inside it without touch any other language ... in this way I will solve the issue + top Arabic font for the subtitle will be added Link to comment Share on other sites More sharing options...
Luke 36999 Posted January 22, 2019 Share Posted January 22, 2019 Attached is the font file we are currently using on Android. On iOS we are currently just using system fonts from the device. subfont.zip Link to comment Share on other sites More sharing options...
iBoss 23 Posted January 22, 2019 Author Share Posted January 22, 2019 Attached is the font file we are currently using on Android. On iOS we are currently just using system fonts from the device. There is no issue when I use/type Arabic on iOS, but the issue there only on emby subtitle. so if I work on the file you have attached, will you use it for emby iOS as well? Link to comment Share on other sites More sharing options...
Luke 36999 Posted January 22, 2019 Share Posted January 22, 2019 First i think we'll need to get to the bottom of why the system fonts don't display correctly with subtitles. But yes if you make the change, i can put it in android right away and have you test that. Thanks. Link to comment Share on other sites More sharing options...
iBoss 23 Posted January 22, 2019 Author Share Posted January 22, 2019 @@Luke I did some test using Apple TV, iPhone, Chrome and Android TV: The subtitle works perfect on Apple TV The subtitle works perfect on Chrome The subtitle has issue that mention above on iPhone (Please see the attached screenshot) The subtitle works perfect on Android TV (I don't have Android mobile to test) - My comment on Android TV ... it works but it use different font that you have attached it here (Please see the attached screenshot) - this font "https://github.com/mpv-android/mpv-android/blob/master/app/src/main/assets/subfont.ttf"does not have Arabic - but the font you have sent it to me it has Arabic font but it's different from what I see on Android TV (Please see the attached screenshot - tested by using mpv player) So, the current font on emby Android TV works and it is good font ... can you add this font for iOS to test it Thanks Link to comment Share on other sites More sharing options...
Luke 36999 Posted January 22, 2019 Share Posted January 22, 2019 Thanks for the info. We're going to do what i said above first on iOS and then make a decision. Thanks. 1 Link to comment Share on other sites More sharing options...
iBoss 23 Posted January 22, 2019 Author Share Posted January 22, 2019 Thanks for the info. We're going to do what i said above first on iOS and then make a decision. Thanks. Thanks if any thing want it from me, I'm ready to help Link to comment Share on other sites More sharing options...
Luke 36999 Posted January 22, 2019 Share Posted January 22, 2019 Great, thanks ! Link to comment Share on other sites More sharing options...
iBoss 23 Posted January 23, 2019 Author Share Posted January 23, 2019 Hi @@Luke, Are you using mpv player for iOS emby? if yes, I think the problem from mpv; because you said you are using system fonts .. if you don't mind, what did you mean by that? are you leave the mpv's config file empty for the font selection or you select a default iOS font "San Francisco" by write something like this: sub-text-font="San Francisco" In both ways it will give you the same issue because San Francisco does not have Arabic characters as well. So it will show you a default Arabic font with this issue. if my above assumption true, you need to fix the problem: Either mpv support solve it Or add subfont.ttf file inside the app and use it (I prefer this solution) ... this will make the app more independent. Just in case I have already submitted this issue to mpv: https://github.com/mpv-player/mpv/issues/6456 Thanks Link to comment Share on other sites More sharing options...
Luke 36999 Posted January 23, 2019 Share Posted January 23, 2019 Yes we are using mpv. Thanks for the info. Link to comment Share on other sites More sharing options...
iBoss 23 Posted February 2, 2019 Author Share Posted February 2, 2019 After latest update of Apple TV ... now it shows same issue as iOS Link to comment Share on other sites More sharing options...
Luke 36999 Posted February 2, 2019 Share Posted February 2, 2019 Well it's the same video player as iOS so that's not surprising. We are looking into it, thanks. Link to comment Share on other sites More sharing options...
iBoss 23 Posted February 3, 2019 Author Share Posted February 3, 2019 @@Luke, I have just test emby Android mobile from my friend .. also the same issue , actually worse than iOS (screenshot and log are attached) but the file you have attached "subfont.ttf" is working on mpv player ver. 0.29.1 on macOS without any issue .. are you sure you are using the same version of the attached subfont.ttf file? Emby Android mobile ver. 3.0.33 subfont.ttf.zip embyserver.txt Link to comment Share on other sites More sharing options...
Luke 36999 Posted February 3, 2019 Share Posted February 3, 2019 The one i attached is the one we are using in android, yes. Link to comment Share on other sites More sharing options...
iBoss 23 Posted February 4, 2019 Author Share Posted February 4, 2019 For the Android mobile: I know the problem of "subfont.ttf" font ... there are some characters missing. it works on mpv mac/windows/ubuntu versions because some how it replace the Arabic character missing with Farsi character (same shape) .. for example this Arabic Unicode Character “ﻳ” (U+FEF3) same as Farsi Unicode Character “ﯾ” (U+FBFE) So the "subfont.ttf" font not design properly. to fix this issue: Either find the way to let the player/Android mobile to behave same as mac/windows/ubuntu Or fix the "subfont.ttf" anyway the "subfont.ttf" should be fixed. I'll fix one character and send it to you to test it ... if it works I'll continue for all characters Thanks Link to comment Share on other sites More sharing options...
iBoss 23 Posted February 4, 2019 Author Share Posted February 4, 2019 (edited) Ok the font is attached I fix one character ... @@Luke could you please add it on emby Android mobile? subfont_v1.0.zip Edited February 4, 2019 by iBoss Link to comment Share on other sites More sharing options...
Luke 36999 Posted February 5, 2019 Share Posted February 5, 2019 So this is all just about one character? Link to comment Share on other sites More sharing options...
iBoss 23 Posted February 5, 2019 Author Share Posted February 5, 2019 I'll fix one character and send it to you to test it ... if it works I'll continue for all characters modifying Arabic characters not easy .. I fixed only one character to make sure my solution works. if you don't mind, I need form you to add my attached file to emby Android mobile .. if it works, I'll start working on all characters subfont_v1.0.zip Link to comment Share on other sites More sharing options...
Luke 36999 Posted February 5, 2019 Share Posted February 5, 2019 Is there another way outside of emby that you can test it? Link to comment Share on other sites More sharing options...
iBoss 23 Posted February 5, 2019 Author Share Posted February 5, 2019 Is there another way outside of emby that you can test it? How? I want to make sure is working on emby you can add it on emby beta for Android mobile ... I have already installed the beta Link to comment Share on other sites More sharing options...
Luke 36999 Posted February 5, 2019 Share Posted February 5, 2019 I understand, but i can't keep building the apk for every single character change. can you test the font file by using it in a document? Link to comment Share on other sites More sharing options...
iBoss 23 Posted February 5, 2019 Author Share Posted February 5, 2019 it works on mpv mac/windows/ubuntu versions because some how it replace the Arabic character missing with Farsi character (same shape) .. for example this Arabic Unicode Character “ﻳ” (U+FEF3) same as Farsi Unicode Character “ﯾ” (U+FBFE) as I said above, it works on my macOS before and after modifying the file. to fix this issue: Either find the way to let the player/Android mobile to behave same as mac/windows/ubuntu Or fix the "subfont.ttf" -------- but i can't keep building the apk for every single character change I understand, but I'm not requesting to build the apk for every single character ... just one time. if you can't, I'll work on all characters and send it to you later Link to comment Share on other sites More sharing options...
Luke 36999 Posted February 5, 2019 Share Posted February 5, 2019 Ok here you go: https://www.dropbox.com/s/9am2hgfcj403j8d/MediaBrowser.Mobile-googlearmv7-release.apk?dl=0 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now