-
Notifications
You must be signed in to change notification settings - Fork 199
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
Incorrect subtitles encoding for streamable URL #586
Comments
Subtitle charset detection and conversion is not done for subtitles passed to Just Player using the MX Player like API. My reasoning was:
|
@moneytoo I agree that UTF-8 should be used, but there are billions of files in other encodings and that burden will not go away any soon. Your player can already load Windows-1251 encoded subs from a file properly. It should not be that hard for you to apply those to the sreamable URL too. About breaking encoding - you already have preferred language in settings that you can use as a reference. Plus you already load subs from file with proper encoding. Could you please add a fix for this as the developer of NOVA can not handle it? I proposed him multiple solutions, but I guess it is too hard for him. I saw his subs code and it is complete mess. |
@JJD2K, I do care about fixing issues. However, when passing subs to an external player, I just do not think that it is nova's responsibility to do the transcoding for somehow the same reasons @moneytoo provided. @moneytoo, if there is something better that nova should do please let me know. EDIT: I tried to download the subs and pass them as files to just player but for some reasons it does not work
|
@courville , @moneytoo "Basically all texts across Android already are in UTF-8" It would be nice if that was true, but non-utf-8 subtitles will not go away any soon - there are millions of files created over the years and people still keep using different encodings. Those should not be neglected. "Sending application has potentionally more context to know whatever the subtitle is or isn't UTF-8 encoded" "Conversion to UTF-8 costs some I/O plus storage of temporary subtitles in cache" "And more importantly the charset detection can theoretically break properly encoded UTF-8 subtitles as detection is not 100%" I have not thought about the fact that NOVA might be sending multiple subtitles for the same video. In such case it is probably more convenient JUST player to detect and apply the proper encoding only to the selected (loaded) file. If there are 20 subs for a file it is useless to process them all if they will not be used. There are millions of subtitles and millions of users have non-utf files and I hope you both can work out a way to fix this as it is a CORE functionality. As I wrote - both apps can already load non-utf files so the code should be already there. Thank you. |
Describe the bug
I am trying to use Just as external player from NOVA to play files over SMB. Unfortunately NOVA launches external players in a strange way and they do not have access to subtitles. That is why NOVA passes the subtitles as streamable URL, but in that case Just does not detect properly the encoding of the files and displays ??????????? (question marks in rhomboids).
Please note that the same subtitles are displayed properly if I launch Just from MIxplorer or other file manager, because they probably set working directory for JUST and just loads the subtitles in a different way.
This happens on files with Windows-1251 encoding (probably others) too.
See this link: nova-video-player/aos-AVP#1177
Could you please check this issue? Thank you in advance.
To Reproduce
Expected behavior
The encoding should be detected and used the same way Just does when loading a file from Mixplorer or other file manager.
Device (please complete the following information):
Android TC
Media
Any media with Windows-1251 encoded external .sub file
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: