[Solved] No subtitles on Samsung UE40J5515 (J5500/Tizen)

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
User avatar
squadjot
Moderator
Posts: 652
Joined: Fri Jun 01, 2012 4:24 am

[Solved] No subtitles on Samsung UE40J5515 (J5500/Tizen)

Post by squadjot »

Subtitles are not displayed, i desperately want them. Please help

Samsung UE 40 J5515
UMS 5.2.2
Win7 64bit
Java 32Bit v8 51 (build 1.8.0_51-b16)
Trying to load .SRT subtitle with the same name as the file.
ums_dbg.zip
(51.42 KiB) Downloaded 935 times
In the debug log you should be able to see that i'm trying to play the default file, then going into the transcode folder to try some of the other available options.. none of it works.

On my old Sony TV i rely on using mencoder.. but mencoder cant even play the file to this TV

Let me know if you want me to test anything.
Last edited by squadjot on Tue Aug 25, 2015 6:32 am, edited 3 times in total.
User avatar
squadjot
Moderator
Posts: 652
Joined: Fri Jun 01, 2012 4:24 am

Re: No subtitles on Samsung UE40J5515

Post by squadjot »

Ok, so this is a 2015 model from the 5 series (J5500) running Tizen
Regarding model name. The TV was bought as a J5515, the label on the package also says UE40J5515AK.
However, i can see from the debug.log that it registers as aUE40J5510, not sure why.
Anyways, J5510 and J5515 are white versions of the J5500 series


When i copy the movie to USB it reads the external SRT
ExSport
Posts: 595
Joined: Wed Oct 10, 2012 1:57 am

Re: No subtitles on Samsung UE40J5515 (J5500/Tizen)

Post by ExSport »

It seems your TV doesn't support external subs sent via DLNA. Does it work when subs are embedded as in MKV container?

Code: Select all

TRACE 17:15:36.707 [New I/O worker #4] Parsing results for file "TheWorldMadeStraight2015720pBluRayx264YIFY.mp4": container: mp4, bitrate: 1015920, size: 909408458, video tracks: 1, audio tracks: 1, subtitle tracks: 1, video codec: h264, duration: 01:59:21.00, width: 1280, height: 536, frame rate: 23.976, mime type: video/mp4, matrix coefficients: BT.709, attached fonts: false
	Audio track id: 0, lang: en, audio codec: AAC, sample frequency:48000, number of channels: 2, bits per sample: 16
	Subtitle track id: 100, type: SUBRIP, subtitles track title from metadata: mp4, lang: da, externalFile: D:\CWG\The World Made Straight (2015)\TheWorldMadeStraight2015720pBluRayx264YIFY.mp4.srt, external file character set: ISO-8859-1
TRACE 17:15:36.723 [New I/O worker #4] Looking for an audio track with lang: eng
TRACE 17:15:36.723 [New I/O worker #4] Matched audio track: id: 0, lang: en, audio codec: AAC, sample frequency:48000, number of channels: 2, bits per sample: 16
TRACE 17:15:36.723 [New I/O worker #4] Searching for a match for: en with * and eng
TRACE 17:15:36.723 [New I/O worker #4] Searching for a match for: en with * and und,*,dan
TRACE 17:15:36.723 [New I/O worker #4] Matched external subtitles track that did not match language preferences: id: 100, type: SUBRIP, subtitles track title from metadata: mp4, lang: da, externalFile: D:\CWG\The World Made Straight (2015)\TheWorldMadeStraight2015720pBluRayx264YIFY.mp4.srt, external file character set: ISO-8859-1
DEBUG 17:15:36.723 [New I/O worker #4] Reading SupportedExternalSubtitlesFormats: "SUBRIP,ASS,TEXT,MICRODVD,WEBTT,SAMI" (default: "")
TRACE 17:15:36.723 [New I/O worker #4] This video has external subtitles that should be streamed
TRACE 17:15:36.723 [New I/O worker #4] Setting subsAreValidForStreaming to true for TheWorldMadeStraight2015720pBluRayx264YIFY.mp4.srt
TRACE 17:15:36.738 [New I/O worker #4] Network debugger: "TheWorldMadeStraight2015720pBluRayx264YIFY" http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=01 pv:subtitleFileType=SRT pv:subtitleFileUri=http://192.168.1.33:5001/get/93/subtitle0000TheWorldMadeStraight2015720pBluRayx264YIFY.mp4.srt size=909408458 duration=01:59:21.00 http://192.168.1.33:5001/get/93/TheWorldMadeStraight2015720pBluRayx264YIFY.mp4
TRACE 17:15:36.738 [New I/O worker #4] Network debugger: http-get:*:text/srt:*http://192.168.1.33:5001/get/93/subtitle0000TheWorldMadeStraight2015720pBluRayx264YIFY.mp4.srt
[/size]
Or you can try experimenting with commenting/uncommenting SubtitleHttpHeader & changing UseClosedCaption to TRUE/FALSE
Definitely subtitle stream is sent to the TV (have you try SUBTITLE button on your TV?) as log shows.
Btw. for MKV embedded subs (if TV supports MKV natively) - RendererConf used by your TV changes mime type fom MKV video to AVI so I am not sure if embedded subs will be detected when mime is changed. It is worth a try to replace video/avi to video/x-matroska for MKV files in rendererconf file.
User avatar
squadjot
Moderator
Posts: 652
Joined: Fri Jun 01, 2012 4:24 am

Re: No subtitles on Samsung UE40J5515 (J5500/Tizen)

Post by squadjot »

Thanks for your time ExSport, i'll test with your suggestions.
And, yes i tried the subtitle button on my remote, no luck.

Edit: I can get FFMPEG to show subtitles, but the sound is not synced, and i cant "seek" the movie.
User avatar
squadjot
Moderator
Posts: 652
Joined: Fri Jun 01, 2012 4:24 am

Re: No subtitles on Samsung UE40J5515 (J5500/Tizen) [Solved]

Post by squadjot »

Image

It works now! Thank you ExSport. I followed you suggestions and made the following changes to Samsung-NotCD.conf

1. Added
UseClosedCaption = true

2. Changed to MKV
Supported = f:avi|mkv m:video/x-matroska

I guess more conf tweaks could be done, but it all seems to work very well now.

Let me know if you want me to test anything else.
ExSport
Posts: 595
Joined: Wed Oct 10, 2012 1:57 am

Re: No subtitles on Samsung UE40J5515 (J5500/Tizen) [Solved]

Post by ExSport »

Great it works and thanks for your tests.
So to make UMS better, can you test if both changes are required or only one change is enough?
Then developers can update Samsung conf file with only needed changes 8-)
Thx
Btw. you can also test final working state with commenting [#] this line:

Code: Select all

#SubtitleHttpHeader = CaptionInfo.sec
It will help to see also if it is still required or using UseClosedCaption is enough.
User avatar
squadjot
Moderator
Posts: 652
Joined: Fri Jun 01, 2012 4:24 am

Re: No subtitles on Samsung UE40J5515 (J5500/Tizen) [Solved]

Post by squadjot »

Both are necesary:
UseClosedCaption = true
Supported = f:avi|mkv m:video/x-matroska

I can comment out
SubtitleHttpHeader = CaptionInfo.sec

What does not work is mencoder :/
How does one find out which formats are supported?

I think we need a seperate Samsung profile for Samsungs running TizenOS (SDK available)

If you need me to test things, just bring it =)
ExSport
Posts: 595
Joined: Wed Oct 10, 2012 1:57 am

Re: No subtitles on Samsung UE40J5515 (J5500/Tizen) [Solved]

Post by ExSport »

So subs still works by commenting "SubtitleHttpHeader = CaptionInfo.sec"?
What exactly means: "What does not work is mencoder"
Btw. thanks for tests 8-)
User avatar
squadjot
Moderator
Posts: 652
Joined: Fri Jun 01, 2012 4:24 am

Re: No subtitles on Samsung UE40J5515 (J5500/Tizen) [Solved]

Post by squadjot »

Yes subtitles work without SubtitleHttpHeader = CaptionInfo.sec, as long i have UseClosedCaption = true, and Supported = f:avi|mkv m:video/x-matroska

Until now it works really well with muxed mkv (i guess this is what happens to make it work?)
But I wonder if the SubtitleHttpHeader header should just be something else?

Maybe some info can be found here?
http://developer.samsung.com/gear
https://www.samsungdforum.com/Devtools/SdkDownload

File compability: I tried turning off all transcoding engines, and the TV can still read almost all files! Everything from flash on2vp6, to xvid, to mov, wmv etc etc.

So transcoding is really only necesary on very few files, but transcoding fails..
If i try to transcode with mencoder, i get a "Check your connection" message on my TV
With FFMPEG the file is out of sync and i cannot seek. (May only be issue on files w/subs)

About new .conf file.. i expect that a conf working for my TV would work for all 2015 models, but i could be wrong.

I will be testing some more.
Post Reply