Jump to content

All working, but no subtitles


leme
Go to solution Solved by cmcg,

Recommended Posts

I installed the app my Samsung ES8000 and everything is working great and fast. Only one problem: subtitles don't show. I can select them, but they just aren't visible. :blink:

 

Here are pictures of all my settings and logs:

http://imgur.com/a/oKwjP

As you see, I have two subtitles. One is Dutch and one English. It should select and show the English one by default (and it does, it says 'currently showing'). The log looks fine I think, but it just isn't showing anything.
 

This is my ffmpeg-sub-extract log, everything seems OK here too as far as I can tell:

ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 5.1.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-shared --enable-version3 --enable-x11grab --host-cflags='"-fPIC"'
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, matroska,webm, from 'file:/srv/sabnzbd/complete/Series/Banshee/3x07 - You Cant Hide From the Dead/Banshee.S03E07.720p.HDTV.DD5.1.x264-DON.mkv':
  Metadata:
    encoder         : libebml v1.3.0 + libmatroska v1.4.1
    creation_time   : 2015-02-23 07:19:57
  Duration: 00:56:47.53, start: 0.000000, bitrate: 5386 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Stream #0:2(eng): Subtitle: subrip
    Stream #0:3(eng): Subtitle: subrip
    Metadata:
      title           : SDH
Output #0, srt, to '/var/lib/emby-server/cache/subtitles/d/dc03e57c-3903-1ec1-c5e5-f110ac15e050.srt':
  Metadata:
    encoder         : Lavf56.36.100
    Stream #0:0(eng): Subtitle: subrip
    Metadata:
      title           : SDH
Stream mapping:
  Stream #0:3 -> #0:0 (copy)
Press [q] to stop, [?] for help
size=       1kB time=00:04:02.67 bitrate=   0.0kbits/s    
[...]
size=      33kB time=00:56:32.43 bitrate=   0.1kbits/s    
video:0kB audio:0kB subtitle:15kB other streams:0kB global headers:0kB muxing overhead: 114.940178%

I'm loving this app, but without subtitles it's useless to me. 

 

Does anyone see the problem or tell me how I can figure out what's wrong? :mellow:

Edited by leme
Link to comment
Share on other sites

chessdragon136

Can you post my app log please :) In the settings menu - You may do best to clear it (in settings menu i think) then play the file and seleect subs, then go back to the log and post the images here. 

Link to comment
Share on other sites

CBers

I installed the app my Samsung ES8000 and everything is working great and fast. Only one problem: subtitles don't show. I can select them, but they just aren't visible. :blink:

 

Does anyone see the problem or tell me how I can figure out what's wrong? :mellow:

If they don't appear the first time, try turning them off an on again, they might then appear.

 

That's what I've done previously.

 

Never thought to post about it, as don't use them that often.

Link to comment
Share on other sites

@chessdragon:

 

Logs are in the third and fourth picture. See

http://imgur.com/a/oKwjP

(this forum puts it in this nice view, but it's a little bit unclear there is more than one pic ;) )

 

@cbers: I have selected all of the subtitles multiple times, they still don't show...

Edited by leme
Link to comment
Share on other sites

I just found out that if I select another subtitle, like 'unknown language', it doesn't do anything. It doesn't change to that one 'currently showing'. It still selects the original English one.

 

Thats not too big of a problem because English is fine as well, but it might help in solving the issue.

 

Thanks for your help. :)

 

 

 

Edit:

 

 

I'm trying to download an old version to see if it's working there.

Can you give me the link to v581? I guessed http://173.230.139.54/Widget/MediaBrowser3_0.581_Europe_20150326.zip but it doesn't exist.

Edited by leme
Link to comment
Share on other sites

I got it finally fixed.

 

The problem was in GuiPlayer.setCurrentTime. The subtitle's startposition and endposition was in microseconds, but the currenttime in miliseconds. So it didn't show at the right time

 

Solution (at line 6 and 7 dividing by 10000):

GuiPlayer.setCurrentTime = function(time) {
	if (this.Status == "PLAYING") {
		this.currentTime = parseInt(time);
		//Subtitle Update
		if (this.playingSubtitleIndex != null && this.PlayerDataSubtitle != null && this.subtitleSeeking == false) {
			startpos = this.PlayerDataSubtitle.TrackEvents[this.subtitleShowingIndex].StartPositionTicks / 10000;
			endpos = this.PlayerDataSubtitle.TrackEvents[this.subtitleShowingIndex].EndPositionTicks / 10000;

			if (this.currentTime + this.offsetSeconds >= endpos) {
				document.getElementById("guiPlayer_Subtitles").innerHTML = "";
				//document.getElementById("guiPlayer_Subtitles").style.visibility = "hidden";
				this.subtitleShowingIndex++;
			}

			if (this.currentTime + this.offsetSeconds >= startpos && this.currentTime < endpos && document.getElementById("guiPlayer_Subtitles").innerHTML != this.PlayerDataSubtitle.text) {
				subtitletext = this.PlayerDataSubtitle.TrackEvents[this.subtitleShowingIndex].Text;
				subtitletext = subtitletext.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1<br />$2'); //support two line subtitles
				document.getElementById("guiPlayer_Subtitles").innerHTML = subtitletext;
				document.getElementById("guiPlayer_Subtitles").style.visibility = "visible";
			}
		}
		
		this.updateTimeCount++;
		if (time > 0 && this.setThreeD == false) {
			//Check 3D & Audio
		    //Set Samsung Audio Output between DTS or PCM
		    this.setupAudioConfiguration();
		    this.setupThreeDConfiguration();			
		    this.setThreeD = true;
		}
		
		//Update GUIs
		percentage = (100 * (this.currentTime + this.offsetSeconds) / (this.PlayerData.RunTimeTicks / 10000));

		document.getElementById("guiPlayer_Info_ProgressBar_Current").style.width = percentage + "%";	
		document.getElementById("guiPlayer_Info_Time").innerHTML = Support.convertTicksToTime(this.currentTime+ this.offsetSeconds, (this.PlayerData.RunTimeTicks / 10000));
	
		//Update Server every 8 ticks (Don't want to spam!
		if (this.updateTimeCount == 8) {
			this.updateTimeCount = 0;

			//Update Server
			Server.videoTime(this.PlayerData.Id,this.playingMediaSource.Id,this.currentTime,this.PlayMethod);
		}
	}
}

I suggest you change this in the app as well @chessdragon.

 

 

 

edit: forgot ;

Edited by leme
  • Like 2
Link to comment
Share on other sites

chessdragon136

That must be an old version as its changed since then and those lines do not exist...

Edited by chessdragon136
Link to comment
Share on other sites

chessdragon136

Hmm i cant get any subtitles working, i'm getting a JSON.parse error which i havent before (same test clip, no code chenges, only the server has updated)

FFS

  • Like 1
Link to comment
Share on other sites

The version on your site seems to differs from the version on Github. In the version on your site you're using StartTime and EndTime, but they aren't in the subtitle json data... they come from srtparser, but you don't use that in the version thats downloadable.

 

Take a look at the pull request I sent you on GitHub. It fixes the subtitle problem on Samsung ES8000 direct play, I couldn't test it for others but it should work on theirs as well. Notice, I'm not using srtparser as that wasn't in the zip file on your website. But it works, so you may want to implement it. (did some other fixes as well, see the pull request)

 

https://github.com/ChessDragon136/MediaBrowser.SamsungUnofficial/pull/9

  • Like 1
Link to comment
Share on other sites

chessdragon136

Hmm yeah forgot that - my new version abandoned the srtparser as an implementation of it was made server side - however it now seems broken so i may go back to the old system but thats going to be a pain!

Link to comment
Share on other sites

chessdragon136

Ok the text changes need to be reverted please - Sadly they are incompatible with older models. Everything looks fuzzy :(

I have also re-introduced srtParser from an earlier phase - No doubt itl be a mess but at least for me my subs are now back :) 

 

Update to latest master and play. 

 

All work is appreciated!

  • Like 3
Link to comment
Share on other sites

chessdragon136

It's not a new version yet, need to play once the text issue is sorted tbefore pushing it out. 

I may also remove some server checks as im pulling the SRT directly which should make more subs available

  • Like 2
Link to comment
Share on other sites

FrostByte

If you could go back to checking IsTextSubtitleStream like it was pre version 585 that would be cool.  I have not been able to play subtitles since though they work in others apps

Link to comment
Share on other sites

OK Chess, too bad it isn't working with older models. I couldn't test them without the sdk. Great things are working again!

 

Do you plan on keeping the subtitle sync feature? I think it's a great tool for people who use subtitles often. Subtitles are always a little off and it's nice to be able to correct them.

Link to comment
Share on other sites

chessdragon136

I oculdn't test it as the text was a mas :P But yeah if if works I;ll def keep it.

Link to comment
Share on other sites

shorty1483

Have some weird problems after pulling latest version with reintroduced srt Parser on my 55H6270. 

 

When try to watch a movie, I just get the white "Loading" on right top corner of screen, but the video never gets started. Let it work for minutes...after that I need to exit the app and restart.

When using regular 0.590 pulled from server or a Github version before the change, everything's working. As additional info, I have disabled Subs completely in server menu due to persisiting problems with Chromecast. But even when subs are enabled in server, I have no Subtitle Menu during playback. In server and GitHub version. Screen just shows Chapters-Audio-Position  :(.

 

This is the log from TV. Additionally there is nothing in server log I could present related to this failure.:

55cb168a0bb62_IMAG0165.jpg

 

PS: Donated a small amount of bucks for this priceless effort and work @@chessdragon136

Edited by shorty1483
Link to comment
Share on other sites

chessdragon136

It needs cchanging - the server team introduced a metadata field to check to see if text subs were available and i think this does not work as well as it should 

  • Like 2
Link to comment
Share on other sites

shorty1483

It needs cchanging - the server team introduced a metadata field to check to see if text subs were available and i think this does not work as well as it should 

 

Are you in touch with them or is a new thread somewhere else needed?

Link to comment
Share on other sites

I'm really looking forward this issue to be fixed since subs are a must for me.

 

@chessdragon136: BTW chess will this other problem get fixed too as part of the work you are doing on subs processing?

 

Keep up with the hard work!

 

Thanks

Edited by fc7
Link to comment
Share on other sites

GabrielRR

I also use subtitles... It appears on all my devices (NAS, android and PC) except on my smart Tv....

 

Keep up the good work!

 

Thanks

Link to comment
Share on other sites

gallegoza

I have the same problem: I can´t see subtitles in samsung smart tv serie 5 5303. With a previus version I saw the subtitles! How can I fix this problem? sorry for my  english my, I speak spanish! thanks

Link to comment
Share on other sites

  • 2 weeks later...

I also use subtitles... It appears on all my devices (NAS, android and PC) except on my smart Tv....

 

Keep up the good work!

 

Thanks

 

I have exactly the same problem, tv is a HU8505. For some reason the emby Samsung smart TV app I installed about 4 months ago stopped working (with working subtitles) so i installed the latest version and now subs dont work (for mkv files with forced eng subtitles) I've tried all settings about what subtitles to be displayed (default, all, only forced) but they don´t show. Thanks for any help! :-)

Link to comment
Share on other sites

  • 2 weeks later...

I would like to try the fix but I cant figure out what do do, 

 

Cant find a file do download, do i manually need to edit the files and in such case, what does the red and the green color mean? Do i need som program to edit the files?

 

I would be really great if someone could take the time to explain what to do and how to do it :-)

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