-
-
Notifications
You must be signed in to change notification settings - Fork 509
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
Embedded subtitles fail to load #1534
Comments
same error from the first beta 0.13 shiledtv 2017 with external and internal .srt sub, jellyfin 10.8 nightly |
Did you experience this issue with the previous version of the app (0.12.3)? |
|
I am not sure, I will try to install 0.12.3 back. Hopefully I will figure out how. Will report back. |
I have tried 0.12.3, 0.12.2, 0.12.0 and on all of those versions embedded subtitles did not work. |
Logs that might help:
|
I get this same issue with a similar error. The jellyfin server logs indicate that ffmpeg extraction complete. When that happens 1-5 minutes(depending on the size of the file) android app will play the subtitles as they should. For some reason exoplayer is reporting to the server that it can't play srt subs(internal or external). There should be no reason to extract the srt files as best I can tell 2022-03-19 19:07:51.807 4423-4423/org.jellyfin.androidtv.debug E/jellyfin-apiclient: VolleyError com.android.volley.TimeoutError: null |
After updating Jellyfin server then rebooting AndroidTV, the issue was gone but I only tested 1 episode. |
Yeah, but before you did those things, did you try and use the subtitle? Once you use a subtitle even once, it will load fine. Also, this only affects subrips, srt external. PGS etc load fine |
After doing some more poking myself, I have found that the error was due to a timeout to jellyfin API endpoint. The request took so long because on the jellyfin backend's side the embedded subtitles were being extracted from the mkv file itself by ffmpeg. The extracted subtitle file was then saved to /config/data/data/subtitles folder. After the ffmpeg extraction was successfully completed, I had to manually switch to another subtitle and back to get it to display. OK. My questions are:
|
This is my findings too. I think exoplayer should be fully capable of playing subrips, SRT files natively, with no transcoding. I understand that option only works for like one client, Kodi maybe? |
I meant it like this. The ATV client sends to the server that it has exited the player and stopped the stream to the backend. And that would result in backend killing the ffmpeg extraction process which would left blank file. This is pure speculation though. |
Yeah, sounds like it might be a seperate issue, or a sympton. In theory, it shouldnt be extracting anyway. |
Seems to still not work for me on the simulator |
Did not work for me as well. |
Looking further in the code I found this part: jellyfin-androidtv/app/src/main/java/org/jellyfin/androidtv/ui/playback/PlaybackController.java Lines 942 to 953 in be89cf2
This makes me believe we don't support embedded subtitles at all and the app will always request the server to extract them when ExoPlayer is used. LibVLC should support embedded subtitles without extraction already (although the linked PR might be required for it to actually work). |
But in theory, exoplayer should be able to support embedded subs right? |
Is it just me or LibVLC still requires jellyfin to extract embedded subtitles? I have tried playing media on the artefact version linked above and made no difference. With the exception that for some reason LibVLC required to transcode audio as well and Exoplayer did not. |
Yes but it's not implemented in our code
I pushed a new change to the linked pull request when I posted my previous message, the newer artifact should work with LibVLC. (https://github.com/jellyfin/jellyfin-androidtv/suites/5729875269/artifacts/189681637) |
Something to look forward to in the new playback rewrite, eventually? |
Yeah I'll definitely implement it in the rewrite. |
I tested with never played content instead of stuff I had already tested. This is on a ShieldTV Pro 2019. |
What I had observed was when I switch back default player from ExoPlayer to Auto the embedded subtitles work. |
I have the same error on my Fire TV2 using both ExoPlayer and Auto, please I’m desperate to use always Jellyfin and not Plex, thanks |
The issue is I think when selected "Auto" as playback option it uses libVlc which does not show option to Zoom but it loads subtitles. On other hand exo player has option to zoom but it cannot load subtitles. So either I have to watch video with black strips at top/bottom or I can zoom but not have subtitles! I should be able to zoom video and view subtitle at same time. |
Hey all, juste wanted to report I have the same issue on my shield, app version is the latest. I'm a new user so I don't have experience with previous ones. |
Closing as duplicate of #145. |
Describe the bug
I have noticed that all of my embedded subtitles fail to load. When I select them, first I get "Loading subtitles" message and after a while the message disappears and a popup appears: "Failed to load subtitles". External subtitles are working.
I believe this is an error on jellyfin androidtv part, since other types of clients can display the very same subtitles OK. Also, it doesn't matter whether the media is transcoded or direct played, the issue occurs in both cases.
Logs
No response
Application version
0.13.0
Where did you install the app from?
Google Play
Device information
Sony Bravia KD-55XF9005
Android version
9
Jellyfin server version
10.7.7
The text was updated successfully, but these errors were encountered: