-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
[Bug]: Set working directory when executing external player to allow access to subtitles #1177
Comments
It seem that processbuilder is what you have to use: |
@courville |
Probably the file managers use a different intent:
|
I guess that the correct title for this issue is: pass subtitles to just player not working. |
@courville Passing subs to JustPlayer is absolutely sufficient for me. |
See nova-video-player/aos-AVP#1177 Turns out that subs were not prepared and thus not passed...
@JJD2K done (pending your testing). |
Oh there is another bug: only one sub file is passed. I need to fix this too before releasing. |
I saw the NOVA subs code and it is quite complex - probably there is a reason for it. I saw you have code for different players etc. |
@courville |
@courville Great progress, but has some issues.
This could be related to point 2. as on the files that DO WORK the subs in Just are listed, but not selected - I have to select them manually and they work. If you need more info or test files let me know by email. Thank you for looking at this issue - I really appreciate it. |
For clarification sake:
Regarding your last comment, I do not activate one subtitle by default thus it needs to be selected in Just (I could fix this) |
Hello
My comment was just an observation that could be related to the issue.
@courville Hope that helps. |
@courville |
@JJD2K perhaps the difference is that MixPlorer passes the file uri and nova provides the file as http streaming uri and in this case JustPlayer does not properly recognize the encoding. There is no reprocessing of the file by nova. |
@courville |
I tried but not that obvious. Will continue. |
Is it a problem to pass the URI or do we have to notify @moneytoo about this issue? |
No need. Let me progress on the issue. |
add correct subtitles languages as names subs.name extra in the intent nova-video-player/aos-AVP#1177
@JJD2K please try this release https://github.com/nova-video-player/aos-AVP/releases/tag/v6.2.72 and let me know if it works for you. |
Hello @courville |
…l players See nova-video-player/aos-AVP#1177 (comment) note that it may cause some encoding interpretation issues (not in french though)
@JJD2K indeed for some reason it does not pass the files. |
Thank you, but seeing ??????????????????? instead of subtitles is as useless as no subtitles.
When I open that video NOVA passes the same wrong name to Just player which also displays Ntb as the subtitles name. I do not know how NOVA makes up those names, but they are random and not contained in the subs/video file name. I do not think the encoding issue is related to any language - it is related to the file encoding. Probably the French files that you tested with match the Just player default encoding - try with the files that I sent you. I really hope that you can fix these subtitles as I am using Just from MixPlorer now and it is playing everything that I throw at it flawlessly. |
@JJD2K it works in many languages not yours (and I warned you about it): I prefer to have this instead of displaying nothing for now until I figure it out. |
@courville Hi The issue with subtitles is not language - it is encoding. I do not know how you have executed Just in your previous release, but I really think that it should be something very simple that you can easily test on your side. I am sorry if I have sounded annoying with my advices, but my aim was to help with suggestion. I am really disappointed that I can not use NOVA, but I appreciate the fact that you have spent time to try and fix this. |
You miss the point: the subs are not located anywhere and are not visible
they are fetched in private nova directory. Hence the difference. And smb
subs are not sharable since smb uri are not supported by other players.
Which explains why it was passed as http uri via a proxy made by nova.
…On Fri, May 10, 2024 at 5:13 PM JJD2K ***@***.***> wrote:
@courville <https://github.com/courville> Hi
I sent you the file name and a screenshot. I've missed that NTb is last
part of the file name, but it is not extension. Probably NOVA gets confused
and interprets it as language identifier which is wrong as the file name
ise XXXXXXXX-NTb.srt
The issue with subtitles is not language - it is encoding.
As I already wrote, the subtitles code is overly-complicated which
probably leads to all these issues - probably there is a reason for it to
be complicated (I know you support many protocols) , but the end result is
not good.
I do not know how you have executed Just in your previous release, but I
really think that it should be something very simple that you can easily
test on your side. I am sorry if I have sounded annoying with my advices,
but my aim was to help with suggestion.
You could just check the file path to detect that it is SMB share and call
directly a separate function where to execute the external player and set
its working directory to the path where the video is located. There was no
need to change the rest of the subtitles code if you do not want to.
I am really disappointed that I can not use NOVA, but I appreciate the
fact that you have spent time to try and fix this.
Thank you.
—
Reply to this email directly, view it on GitHub
<#1177 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB3JG36FVOLXI5DN65UV53ZBTPZ3AVCNFSM6AAAAABGKBAZEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBUG44DIOJRGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@courville
|
@courville You already copy the file locally, could you please convert it to UTF8 before passing it as streamable url? |
While it is not a fix, I always just use this tool to batch merge my subtitles into their video files: https://github.com/iPzard/mkvtoolnix-batch-tool |
To pass subtitle and video files to justplayer I use mxplayer API https://mx.j2inter.com/api which is not based on folder ACTION_VIEW. |
Problem description
I tried JustPlayer as an alternative to Nova as I have a lot of issues with stutter and passthrough and it plays really well.
I want to us the option to play with external player but JustPlayer can not load the subs when loaded from NOVA.
I have tried other players like MXPlayer and I get the same issue.
I suspect that you do not set startup directory when you launch the external app.
Can you please set the MOVIE folder as working directory for the process when starting it so that the app can see the subs?
P.S. When launching those player from a file browser like MixPlorer they can see the subtitles so I am sure that it has something to do with the way NOVA launches the app.
I really believe that this should be something very simple.
It will be great to be able to use JustPlayer until you improve NOVA playback.
Thank you.
Steps to reproduce the issue
Install JustPlayer and try to use it as external player.
Expected behavior
No response
Your phone/tablet/androidTV model
TCL C845
Operating system version
Google TV 12
Application version and app store
Latest from Google Playstore
Additional system information
No response
Debug logs
No response
The text was updated successfully, but these errors were encountered: