Jump to content

Subtitles not showing on Android App


Go to solution Solved by ebr,

Recommended Posts

Posted

Hello,

I have a mi box 3 with the embyapp installed, however some movies are not showing subtitles. As far as im enable to see most movies that have embedded subs run and display just fine but if i have an external sub (SRT) the app does not show the subtitle. I have bazarr downloading the subs and chmod to 777, it should not be a problem with permissions.

I did a test with the movie Jungle Cruise on the emby web and the sub is loaded correctly i then open the same movie on the android app and there is no subtitles. i am attaching the logs from the emby server and my library config. Any help would be appreciated.

 

Thank you. 

library config.png

ffmpeg-directstream-a326cf77-8a1e-4731-9532-274f2355ce2f_1.txt embyserver.txt

Posted

Hi.  Exactly what do you mean by "not showing subtitles"?  They aren't available to select or they don't display when you select them?

Posted

Hello ebr,

Sorry i should have posted a picture, they are available to select and are selected but are not displaying.

Posted

The app is requesting but the server is not sending it.  It should be muxed in as a VTT stream I would think...

SubtitleStreamIndex=2
...
{"Codec":"srt","Language":"eng","DisplayTitle":"English (SRT)","DisplayLanguage":"English","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":2,"IsExternal":true,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"/mnt/4d8ae5df-d274-443a-bb5c-5abd73eef649/movies/Jungle Cruise (2021)/Jungle Cruise (2021) [imdb-tt0870154][WEBRip-1080p][AAC 5.1][x264]-RARBG.en.srt","Protocol":"File"}
...
16:41:52.482 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/4d8ae5df-d274-443a-bb5c-5abd73eef649/movies/Jungle Cruise (2021)/Jungle Cruise (2021) [imdb-tt0870154][WEBRip-1080p][AAC 5.1][x264]-RARBG.mp4':
16:41:52.482   Metadata:
16:41:52.482     major_brand     : isom
16:41:52.482     minor_version   : 512
16:41:52.482     compatible_brands: isomiso2avc1mp41
16:41:52.482     creation_time   : 2021-07-30T08:36:13.000000Z
16:41:52.482     title           : Jungle.Cruise.2021.1080p.WEBRip.x264-RARBG
16:41:52.482     encoder         : Lavf58.20.100
16:41:52.482     comment         : Jungle.Cruise.2021.1080p.WEBRip.x264-RARBG
16:41:52.482   Duration: 02:07:18.83, start: 0.000000, bitrate: 2728 kb/s
16:41:52.483     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x804 [SAR 1:1 DAR 160:67], 2498 kb/s, Level 41, 23.98 fps, 23.98 tbr, 11988 tbn, 47.95 tbc (default)
16:41:52.483     Metadata:
16:41:52.483       creation_time   : 2021-07-30T08:36:13.000000Z
16:41:52.483       handler_name    : L-SMASH Video Media Handler
16:41:52.483     Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 224 kb/s (default)
16:41:52.483     Metadata:
16:41:52.483       creation_time   : 2021-07-30T08:36:13.000000Z
16:41:52.483       handler_name    : SoundHandler
16:41:52.484 Output #0, segment, to '/mnt/4d8ae5df-d274-443a-bb5c-5abd73eef649/dietpi_userdata/emby/transcoding-temp/8AA1EB_%d.ts':
16:41:52.484   Metadata:
16:41:52.484     encoder         : Lavf58.35.100
16:41:52.484     Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x804 [SAR 1:1 DAR 160:67], q=2-31, 2498 kb/s, Level 41, 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc (default)
16:41:52.484     Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 224 kb/s (default)
16:41:52.484 Stream mapping:
16:41:52.484   Stream #0:0 -> #0:0 (copy)
16:41:52.484   Stream #0:1 -> #0:1 (copy)

 

Posted

In that ffmpeg log, subtitles were not requested.

Posted
43 minutes ago, ebr said:

In that ffmpeg log, subtitles were not requested.

I did a little more test and its really hit and miss... sometimes i have subs other i don't. i can see the SRT being requested but nothing is shown. Is there any way to enable a log on the android TV App? maybe it can show some light to this.

embyserver (1).txt ffmpeg-directstream-37420f85-1cb6-4097-9337-52bb1a709d62_1.txt ffmpeg-directstream-c5a83bad-6514-4ec2-b72c-43941c8cc90f_1.txt ffmpeg-directstream-192668bf-cf23-4f0c-b68e-af594168dcae_1.txt ffmpeg-directstream-e6601ece-1967-4ac2-9e94-623617f51636_1.txt

Posted

Hi, Have you checked to make sure the SRT files have content in them and not zero size files?

Posted

Hi @cayars,

Just did that. The strange thing is if i cast the same movie with the same SRT from my phone i don't have this problem.

SRT_1.png

SRT_2.png

Posted

Hi, so what happens if you playback in the web app and show stats for nerds?

What is shown?

Posted
18 hours ago, gulyfmg said:

Is there any way to enable a log on the android TV App?

Yes, but all of the logs you provided just then are from playback in a Chrome browser...  Were the subs working then?

Posted (edited)

Hello again sorry for the late reply...

@cayars I did a couple more test always the same behaviour. If I play directly from the box the subtitles are not displayed. I then use the emby app to cast to the mi box and the subs were shown as expected.

This was my stats for nerds.

@ebr the subs were not working... Those logs were from the browser because it was showing the same behaviour, and it was easy to respond and extract the logs.

The new logs I'm attaching are fresh I reboot the server play a movie and no subs were displayed... I then used the emby app on the box to download and still no subs. I then used my phone to cast to the box and the subs were displayed correctly.

PXL_20210811_214048209.jpg

embyserver.txt

Edited by gulyfmg
Typos
Posted

Hello ,

Android TV app. Yes the user has all the permissions. The sub is downloaded next to the folder and is visible on the subs menu.

Still a no go

GrimReaper
Posted (edited)
10 minutes ago, gulyfmg said:

Hello ,

Android TV app. Yes the user has all the permissions. The sub is downloaded next to the folder and is visible on the subs menu.

Still a no go

Hey up. My bad, I should have quoted @hjason7812 as that was related to his post, directly above. What might help in your case is play the item for which you know subs are present, try listing/selecting them, after that submit logs directly from within the Android TV app, either from OSD or Home Screen (need to have Debug options enabled in Settings>General Display). 

Edit: Upon submitting, post approximate time of the occurence and User logged at the time. 

Edited by GrimReaper76
Append
  • Like 1
Posted

Hello again,

I have turn on the debug log and have sent the logs from inside the emby app on Android TV.

I have played two movies rurouni kenshi with embedded subs and suicide squad with external subs. The first movie I had no problems with the subs the second movie again did not show the subs.

Any help from the Devs would be helpful, if you need something else please don't hesitate.

Thank you.

GrimReaper
Posted
Just now, gulyfmg said:

if you need something else please don't hesitate.

 

9 hours ago, GrimReaper76 said:

Upon submitting, post approximate time of the occurence and User logged at the time. 

 

Posted

Sorry my bad... 

Couple minutes before I submitted the log - 23.19 +- ended the test on 23.24.

User connected - Bruno

TY

  • Solution
Posted

Hi.  Something with how the system is setup in regard to paths (possibly the optional network path) is a problem.  The subtitle stream is attempting to load on the app using what is probably the server's file reference:

Caused by: java.io.FileNotFoundException: /mnt/4d8ae5df-d274-443a-bb5c-5abd73eef649/movies/Suicide Squad (2016)/Suicide Squad (2016) [imdb-tt1386697][Bluray-1080p][AAC 2.0][x264].en.srt: open failed: ENOENT (No such file or directory)

 

Posted

Hello @ebr

It makes sense, since its on linux system the spaces are messing with the path... im gonna do some more tests and remove the optional path and see if i have better results...My other ideia its to rename all the paths and remove the extra info like dates, IMDB tag etc.

Thank you.

 

Posted
12 hours ago, gulyfmg said:

Hello @ebr

It makes sense, since its on linux system the spaces are messing with the path... im gonna do some more tests and remove the optional path and see if i have better results...My other ideia its to rename all the paths and remove the extra info like dates, IMDB tag etc.

Thank you.

 

Let us k now how you get on. Thanks.

Posted

Hello guys,

As @ebr sugested i deleted the optional network path and that did the trick. I was using NFS to share the folder. I tested several movies and shows and all showed the subs. Thanks for all the help.

  • Like 3
Posted

Excellent.  Glad you worked it out.

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