Jump to content

"Unable to load subtitle"


Mastrovious

Recommended Posts

Mastrovious

I have both my Emby Server and Emby app on my Nvidia Shield Pro (2019). I've added a strm file according to the guidelines, I see the movie in the library, metadata updated etc. So far so good. 

 

When playing a movie directly on the web (chrome) I get the subtitles but when trying via the app on Nvidia I get: "unable to load subtitle". For this movie I am trying to choose Swedish (subrip). Some subtiltes (eng pgssub) causes the movie to freeze or lag. My strm files are located on a Synology NAS if that has anything to do with this? Open subtitles is setup with login credentials on the server. I have tried different app settings regarding subs (burn in SSA... both checked and unchecked). 

 

I'm out of ideas here...

Link to comment
Share on other sites

Mastrovious

Im not sure actually, how do I check that?

 

The app settings regarding subs are default at this moment. And I have set the library to use open subtitles with my account.

Link to comment
Share on other sites

Im not sure actually, how do I check that?

 

The app settings regarding subs are default at this moment. And I have set the library to use open subtitles with my account.

 

When you're trying to download the subtitles are you doing it in a web browser?

Link to comment
Share on other sites

Mastrovious

When you're trying to download the subtitles are you doing it in a web browser?

Im still not sure what you mean by downloading? All I do is start a strm file  from my library. Doing it via the web browser (chrome) gives me subs when playing the movie. I either choose subs before I start playing the movie or during playback. Both ways work. 

 

When I try this on the app, no matter if I choose the subs before starting the movie or during playback I get "Unable to load subtitle" when the movie starts.

 

I also tried to uncheck the "Allow extraction of subs during playback" (translation from Swedish) on the server. Didn't work...

Link to comment
Share on other sites

Mastrovious

Hi.  Can you please try to select these such that you get that message and then send a log from the app?

 

Thanks.

I've sent the logs by enabling the debug option in the app, not sure who they're sent to... do you need anything else?

 

This is what I've done:

Start Emby - Enter my library - selected my movie (strm file) - selected prefered subtitle before playback - upon start of the movie I get "Unable to load subtitle" - selected English sub (during playback), same error 

Link to comment
Share on other sites

When you're trying to download the subtitles are you doing it in a web browser?

 

He's not downloading subs.  He's just trying to enable them in the player.

Link to comment
Share on other sites

I've sent the logs by enabling the debug option in the app, not sure who they're sent to... do you need anything else?

 

This is what I've done:

Start Emby - Enter my library - selected my movie (strm file) - selected prefered subtitle before playback - upon start of the movie I get "Unable to load subtitle" - selected English sub (during playback), same error 

 

Hi.  Did you do all of that just before sending the log?  I don't see any playback in the log you sent.

 

Also, shouldn't really matter for this issue, but your app is not up to date.  Please update it.

Link to comment
Share on other sites

Mastrovious

Hi.  Did you do all of that just before sending the log?  I don't see any playback in the log you sent.

 

Also, shouldn't really matter for this issue, but your app is not up to date.  Please update it.

Yes, I checked the debug option. Restarted the app then did all of those steps as mentioned... I will update the app and redo the procedure. 

Link to comment
Share on other sites

Mastrovious

Hi.  Did you do all of that just before sending the log?  I don't see any playback in the log you sent.

 

Also, shouldn't really matter for this issue, but your app is not up to date.  Please update it.

Ok, so I updated the app. Enabled debug option, started the movie "438 dagar", tried to enable different subs. Then started another movie "9 lives", tried to enable subs. Then sent you the logs. 

Link to comment
Share on other sites

And now your log is empty...  That is the second person I've seen that from now.  I'm wondering if something has changed in Android 9 that is preventing us from getting the logs.

Link to comment
Share on other sites

Mastrovious

And now your log is empty...  That is the second person I've seen that from now.  I'm wondering if something has changed in Android 9 that is preventing us from getting the logs.

I've tried once more, please check. I think maybe I closed the app before sending the logs last time. 

 

Sure, which ones? ffmpeg or embyserver.txt?

Link to comment
Share on other sites

There are a lot of errors in  your server log.  Some dealing with getting out to metadata providers and others dealing with access denied to what looks like your stream target but the main issue with the subtitle is, when the app is requesting it, the server is returning "not found":

2020-02-04 13:21:01.468 Info HttpServer: HTTP Response 404 to 192.168.1.173. Time: 4ms. http://192.168.1.173:8096/emby/Videos/128531/c69d27bba1f66f040187991326fd6407/Subtitles/18/0/Stream.JSON?format=json

This error is also occurring during playback though:

2020-02-04 13:20:53.057 Info HttpClient: GET http://[redacted]:2095/movie/bFg4Z0Myzs/zR5SY8SYGU/40678.mkv
2020-02-04 13:20:53.348 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 4.3.1.0
	Command line: /data/app/com.emby.embyserver-grmi6ztZ-4F4l0bnh6w_pw==/base.apk
	Operating system: Unix 4.9.140.899
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Runtime: file:///mscorlib.dll
	Processor count: 4
	Program data path: /storage/emulated/0/Android/data/com.emby.embyserver/files
	Application directory: /data/user/0/com.emby.embyserver
	Mono: 6.6.0 (2019-08/e1ef774391d)
	Android Version: 9-REL - Base:  - SDK: 28
	Build ID: PPR1.180610.011 - Incremental: 4199437_1739.5219 Patch-Level: 2019-10-05
	Fingerprint: NVIDIA/mdarcy/mdarcy:9/PPR1.180610.011/4199437_1739.5219:user/release-keys
	Model: SHIELD Android TV - NVIDIA/NVIDIA
	Hardware: mdarcy/mdarcy/darcy/darcy
	SupportedAbis: arm64-v8a, armeabi-v7a, armeabi
	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized
	  at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.EnsureSuccessStatusCode (Emby.Server.Implementations.HttpClientManager.HttpClientInfo client, System.Net.Http.HttpResponseMessage response, MediaBrowser.Common.Net.HttpRequestOptions options, System.DateTimeOffset startDate, System.Boolean disposeResponse) [0x002ce] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal (MediaBrowser.Common.Net.HttpRequestOptions options, System.String httpMethod) [0x00697] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync (MediaBrowser.Common.Net.HttpRequestOptions options, System.String httpMethod) [0x0009a] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.Implementations.HttpServer.HttpResultFactory.GetContent (MediaBrowser.Controller.Net.StaticFileResultOptions options, System.Int64 offset, System.Int64 length, System.Threading.CancellationToken cancellationToken) [0x0018d] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.Implementations.HttpServer.FileWriter.SetContentResponseHeaders (System.Nullable`1[T] reportedTotalContentLength, System.Threading.CancellationToken cancellationToken) [0x00149] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.Implementations.HttpServer.HttpResultFactory.GetStaticResult (MediaBrowser.Model.Services.IRequest requestContext, MediaBrowser.Controller.Net.StaticResultOptions options) [0x002b8] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.MediaEncoding.Api.Progressive.BaseProgressiveStreamingService.ProcessRequest (Emby.Server.MediaEncoding.Api.StreamRequest request, System.Boolean isHeadRequest) [0x00392] in <d8df170c1ea546a09fd35e5485f67ddd>:0 
	  at Emby.Server.Implementations.Services.ServiceController.GetTaskResult (System.Threading.Tasks.Task task) [0x00081] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync (Emby.Server.Implementations.HttpServer.HttpListenerHost appHost, MediaBrowser.Model.Services.IRequest httpReq, MediaBrowser.Model.Services.IResponse httpRes, Emby.Server.Implementations.Services.RestPath restPath, System.String responseContentType, System.Threading.CancellationToken cancellationToken) [0x001da] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler (MediaBrowser.Model.Services.IRequest httpReq, System.ReadOnlyMemory`1[T] urlString, System.ReadOnlyMemory`1[T] localPath, System.Threading.CancellationToken cancellationToken) [0x00b48] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	Source: mscorlib
	TargetSite: Void Throw()
	
2020-02-04 13:20:53.353 Info HttpServer: HTTP Response 500 to 192.168.1.173. Time: 402ms. http://192.168.1.173:8096/emby/Videos/128531/stream.mkv?DeviceId=ff98fbc71ea460fa&MediaSourceId=c69d27bba1f66f040187991326fd6407&Static=true

Link to comment
Share on other sites

Also, this item has 30 subtitle tracks that we are attempting to output simultaneously when we remux it.  Not sure if that is a factor.

Link to comment
Share on other sites

Mastrovious

 

There are a lot of errors in your server log. Some dealing with getting out to metadata providers and others dealing with access denied to what looks like your stream target but the main issue with the subtitle is, when the app is requesting it, the server is returning "not found":

2020-02-04 13:21:01.468 Info HttpServer: HTTP Response 404 to 192.168.1.173. Time: 4ms. http://192.168.1.173:8096/emby/Videos/128531/c69d27bba1f66f040187991326fd6407/Subtitles/18/0/Stream.JSON?format=json

 
This error is also occurring during playback though:
2020-02-04 13:20:53.057 Info HttpClient: GET http://[redacted]:2095/movie/bFg4Z0Myzs/zR5SY8SYGU/40678.mkv
2020-02-04 13:20:53.348 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 4.3.1.0
	Command line: /data/app/com.emby.embyserver-grmi6ztZ-4F4l0bnh6w_pw==/base.apk
	Operating system: Unix 4.9.140.899
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Runtime: file:///mscorlib.dll
	Processor count: 4
	Program data path: /storage/emulated/0/Android/data/com.emby.embyserver/files
	Application directory: /data/user/0/com.emby.embyserver
	Mono: 6.6.0 (2019-08/e1ef774391d)
	Android Version: 9-REL - Base:  - SDK: 28
	Build ID: PPR1.180610.011 - Incremental: 4199437_1739.5219 Patch-Level: 2019-10-05
	Fingerprint: NVIDIA/mdarcy/mdarcy:9/PPR1.180610.011/4199437_1739.5219:user/release-keys
	Model: SHIELD Android TV - NVIDIA/NVIDIA
	Hardware: mdarcy/mdarcy/darcy/darcy
	SupportedAbis: arm64-v8a, armeabi-v7a, armeabi
	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized
	  at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.EnsureSuccessStatusCode (Emby.Server.Implementations.HttpClientManager.HttpClientInfo client, System.Net.Http.HttpResponseMessage response, MediaBrowser.Common.Net.HttpRequestOptions options, System.DateTimeOffset startDate, System.Boolean disposeResponse) [0x002ce] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal (MediaBrowser.Common.Net.HttpRequestOptions options, System.String httpMethod) [0x00697] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync (MediaBrowser.Common.Net.HttpRequestOptions options, System.String httpMethod) [0x0009a] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.Implementations.HttpServer.HttpResultFactory.GetContent (MediaBrowser.Controller.Net.StaticFileResultOptions options, System.Int64 offset, System.Int64 length, System.Threading.CancellationToken cancellationToken) [0x0018d] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.Implementations.HttpServer.FileWriter.SetContentResponseHeaders (System.Nullable`1[T] reportedTotalContentLength, System.Threading.CancellationToken cancellationToken) [0x00149] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.Implementations.HttpServer.HttpResultFactory.GetStaticResult (MediaBrowser.Model.Services.IRequest requestContext, MediaBrowser.Controller.Net.StaticResultOptions options) [0x002b8] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.MediaEncoding.Api.Progressive.BaseProgressiveStreamingService.ProcessRequest (Emby.Server.MediaEncoding.Api.StreamRequest request, System.Boolean isHeadRequest) [0x00392] in <d8df170c1ea546a09fd35e5485f67ddd>:0 
	  at Emby.Server.Implementations.Services.ServiceController.GetTaskResult (System.Threading.Tasks.Task task) [0x00081] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync (Emby.Server.Implementations.HttpServer.HttpListenerHost appHost, MediaBrowser.Model.Services.IRequest httpReq, MediaBrowser.Model.Services.IResponse httpRes, Emby.Server.Implementations.Services.RestPath restPath, System.String responseContentType, System.Threading.CancellationToken cancellationToken) [0x001da] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler (MediaBrowser.Model.Services.IRequest httpReq, System.ReadOnlyMemory`1[T] urlString, System.ReadOnlyMemory`1[T] localPath, System.Threading.CancellationToken cancellationToken) [0x00b48] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	Source: mscorlib
	TargetSite: Void Throw()
	
2020-02-04 13:20:53.353 Info HttpServer: HTTP Response 500 to 192.168.1.173. Time: 402ms. http://192.168.1.173:8096/emby/Videos/128531/stream.mkv?DeviceId=ff98fbc71ea460fa&MediaSourceId=c69d27bba1f66f040187991326fd6407&Static=true

 

Ok, I moved the strm files from my NAS directly to my Shield in an attempt to see if the communication between the server and app would improve. Perhaps that’s also part of the many errors seen. I think it was still scanning the libraries at the time when I sent you the logs.

 

But it’s strange that it works like a charm when playing any movie from a browser?

Link to comment
Share on other sites

But it’s strange that it works like a charm when playing any movie from a browser?

 

Because the browser is having to transcode probably and, thus, delivering the subtitles differently.

Link to comment
Share on other sites

Mastrovious

Because the browser is having to transcode probably and, thus, delivering the subtitles differently.

Ok, so how can I solve this issue? Is there a walkaround? Not being able to use subs in the Android app pretty much makes Emby useless as a library...

Edited by Mastrovious
Link to comment
Share on other sites

I'm not sure yet.  Didn't you say you were going to work on clearing up some of those access errors?

Link to comment
Share on other sites

Mastrovious

I'm not sure yet.  Didn't you say you were going to work on clearing up some of those access errors?

Hi, I don't think I can do anything about that, the strm files points to my IPTV provider and I guess some of the 10 000+ links are dead. But perhaps the server was not finished with scanning through the library when I sent you the logs because I had just created a new one. Now it should be finished though. I also tried to play through the iOS app but that didn't even start playing the movie... I guess that's another issue. 

 

Were there any access problems linked to the specific movies I was playing? I don't know how to address the access problem since the strm files are extracted from the IPTV providers m3u list... You mentioned that the browser was probably transcoding, thus, delivering the subs differently. Bare with me, thinking out loud here... I'm not familiar with the transcoding options in Emby, can I make some adjustments to try to achieve this through the app? 

Edited by Mastrovious
Link to comment
Share on other sites

The access error in post 18 was when trying to play the item.  I think what happened is we tried to direct play it, got that error and then fell back to remuxing but, when we then requested the subtitle stream, the server could not find it.

 

With strm files all of this delivery stuff is complicated beyond the normal situation with local files.

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