Samsung TV: seeking doesn't always work

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
abcd
Posts: 19
Joined: Mon Jan 22, 2018 5:53 am

Samsung TV: seeking doesn't always work

Post by abcd »

Hi,

I'm using UMS with a Samsung UE40MU6120. When I watch some files, I cannot seek/rewind/fast-forward. This really annoys me, because I use that quite a lot. Other files, there doesn't seem to be a video. Of the last two files I checked, the one with subtitles did not work, while the one without subs did. So maybe it's an issue with transcoded videos. I've attached the debug file of trying to seek in the video file with subs, which didn't work.
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Samsung TV: seeking doesn't always work

Post by Nadahar »

You can't seek/jump normally when transcoding because the file that is being streamed is generated on the fly. Some renderers will still allow you to do it to some extent, but it's very slow because what happens in reality is that the current transcoding process must be stopped and a new started in a new position for ever "jump". Other renderers doen't send the correct position information, so it doesn't work at all.
abcd
Posts: 19
Joined: Mon Jan 22, 2018 5:53 am

Re: Samsung TV: seeking doesn't always work

Post by abcd »

OK, that sucks. Is there any way of knowing beforehand if a video needs to be transcoded?
abcd
Posts: 19
Joined: Mon Jan 22, 2018 5:53 am

Re: Samsung TV: seeking doesn't always work

Post by abcd »

Got it to work properly using the following renderer configuration:

Code: Select all

#----------------------------------------------------------------------------
# Profile for Samsung E+ series TVs and Blu-ray players with AllShare DLNA.
# See DefaultRenderer.conf for descriptions of all the available options.
# http://ps3mediaserver.org/forum/viewtopic.php?f=15&t=8889
# Version: 1.4.4 (modified)
#

RendererName = Samsung E+ Series
RendererIcon = samsung-tv.png

# ============================================================================
# This renderer has sent the following string/s:
#
# TV:            User-Agent:
# --------------------------
# UE46ES8000     SEC_HHP_[TV]UE46ES8000/1.0 DLNADOC/1.50
# UE40H 5500AW   SEC_HHP_[TV]Samsung LED40/1.0 DLNADOC/1.50
#                SEC_HHP_[TV] Samsung/1.0 DLNADOC/1.50
# UN55ES6100     SEC_HHP_[TV]UN55ES6100/1.0 DLNADOC/1.50
# UE37ES5500     SEC_HHP_[TV]UE37ES5500/1.0 DLNADOC/1.50
#
# Note: for maximum compatibility the regex is defined negatively as anything
# not matching a C/D series UA (see SamsungAllShare-CD.conf). The positive
# definition would be:
# UserAgentSearch = SEC_HHP.*(TV|HT|BD).*([E-Z]S?\d{4}|Samsung.*\d{2})/
# ============================================================================
#

UserAgentSearch = SEC_HHP(?!.*[CD]S?\d{3}\d?/)
UpnpDetailsSearch = (?!.*[CD]S?\d{3}\d?) , (Samsung|AllShare)

DefaultVBVBufSize = true
MuxDTSToMpeg = true
MaxVideoBitrateMbps = 80
TranscodedVideoFileSize = 1000000
ChunkedTransfer = true
SubtitleHttpHeader = CaptionInfo.sec
PrependTrackNumbers = true
CharMap = / :
MediaInfo = true

# Supported video formats:
Supported = f:avi|mkv             m:video/avi
Supported = f:flv                 m:video/mp4
Supported = f:mov                 m:video/quicktime
Supported = f:mp4|mpegps|mpegts   m:video/mpeg

# Supported audio formats:
Supported = f:mp3   m:audio/mpeg
Supported = f:wav   m:audio/L16

# Supported subtitles formats:
SupportedExternalSubtitlesFormats = SUBRIP,ASS,TEXT,MICRODVD,WEBVTT,SAMI
SupportedInternalSubtitlesFormats = SUBRIP,ASS,TEXT,MICRODVD,WEBVTT,SAMI

TranscodeVideo = MPEGTS-H264-AC3
SeekByTime = exclusive
MaxVideoWidth = 3840
MaxVideoHeight = 2160
SupportedVideoBitDepths = 8,10
H264Level41Limited = false
StreamSubsForTranscodedVideo = false
The things I added to the default Samsung-NotCD.conf file are at the bottom (and I changed the max bitrate to 80). Most of it is aimed at preventing any unnecessary transcoding, but setting SeekByTime to exclusive did the trick to allow seeking in transcoded video. I'd prefer to set StreamSubsForTranscodedVideo to true, but when I seek in a transcoded video the subtitles disappear. Is there any way to fix this?

PS: So far, I love UMS. No unnecessary shiny features, but advanced settings to get it to work exactly how I want.
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Samsung TV: seeking doesn't always work

Post by Nadahar »

Are you sure that the subtitles disappear and that they are not just very much out of sync after the seeking? I'm not sure what could be causing this, but I have made a fix in a branch that might solve it.

You don't say what platform you are one, and I don't know how experienced you are with building Java programs. Either you could build and try this branch, or you'd have to tell me what platform you use and I could build and upload it.
abcd
Posts: 19
Joined: Mon Jan 22, 2018 5:53 am

Re: Samsung TV: seeking doesn't always work

Post by abcd »

I'm on Windows 7 x64 with Java 8 (Java is also x64). I don't know if the subs are very much out of sync or disappeared. I probably checked for 10-20 seconds after seeking and no subs showed up. But if you send me a test build, I'm definitely willing to test it.
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Samsung TV: seeking doesn't always work

Post by Nadahar »

You'll have to wait 15 minutes for my upload to complete before downloading (or you will just get a partial/corrupt file): http://superbum.org/downloads/UMS-setup-subs.exe
abcd
Posts: 19
Joined: Mon Jan 22, 2018 5:53 am

Re: Samsung TV: seeking doesn't always work

Post by abcd »

I'll try it later today, thanks.
abcd
Posts: 19
Joined: Mon Jan 22, 2018 5:53 am

Re: Samsung TV: seeking doesn't always work

Post by abcd »

I have tested it, the problem still persists. After seeking it takes quite some time for the subs to show, and then once it shows, it's completely out of sync. So you're right about the problem, you just haven't quite got the fix yet :P. If you want me to run a trace or try another version, just ask.
User avatar
Sami32
Posts: 851
Joined: Mon Apr 11, 2016 5:09 am

Re: Samsung TV: seeking doesn't always work

Post by Sami32 »

@abcd Hi,
I've attached the debug file of trying to seek in the video file with subs, which didn't work.
Where ?
Post Reply