Page 1 of 1

External Subtitle Streaming (Generic)

Posted: Tue Nov 24, 2015 3:06 am
by xxx666yyy777
Hi,

First time post. I really like UMS and am using it as a (streaming) DLNA server. My client is Kodi (running on a PC or on a Raspberry Pi). Streaming of files in general works perfectly fine, however I cannot get external subtitles to be streamed as well.

Here is what i have done (based on various posts on streaming without transcoding and external subtitle streaming):

I am using the renderer profile listed here:

Code: Select all

RendererName=Kodi
RendererIcon=xbmc.png
UserAgentSearch=Kodi
Video=true
Audio=true
Image=true
SeekByTime=false
TranscodeVideo=MPEGPSAC3
TranscodeAudio=LPCM
DefaultVBVBufSize=true
MuxH264ToMpegTS=true
MuxDTSToMpeg=true
WrapDTSIntoPCM=false
MuxLPCMToMpeg=true
MaxVideoBitrateMbps=0
MaxVideoWidth=0
MaxVideoHeight=0
#TranscodeExtensions=
#StreamExtensions=mkv,hdmov,hdm,flac,fla,dts,ogg,asf,asx,m2v,m2ts,ts,mp3,wmv,avi,mp4,m4a,m4v,wav

SupportedExternalSubtitlesFormats = SUBRIP,ASS

MediaInfo = true
# Supported video formats:
Supported = f:.*
I have disabled ALL transcode engines in the GUI, but kept subtitles enabled (no check next to "Disable Subtitles" in Transcode Settings -> Common Transcode Settings). The subtitle language configuration is set to "*,*" to allow for all subtitles of all languages to be made available and there is also a check next to Force external subtitles.

When I scan the media library the debug log shows the following information:

Code: Select all

DEBUG 2015-11-23 10:07:38.741 [Library Scanner] Scanning Folder: test
TRACE 2015-11-23 10:07:38.845 [Library Scanner] Could not match any format to "W:\test\Test.en-forced.srt"
TRACE 2015-11-23 10:07:38.846 [Library Scanner] Could not match any format to "W:\test\Test.en-forced.srt"
TRACE 2015-11-23 10:07:38.848 [Library Scanner] Matched format JPG to "W:\test\Test.jpg"
TRACE 2015-11-23 10:07:39.106 [Library Scanner] Parsing results for file "Test.jpg": container: jpg, bitrate: 0, size: 464387, images: 1, video codec: jpg, duration: null, width: 640, height: 360, frame rate: null, mime type: image/jpeg, attached fonts: false
TRACE 2015-11-23 10:07:39.165 [Library Scanner] Adding new child "Test.jpg" with class "net.pms.dlna.RealFile"
TRACE 2015-11-23 10:07:39.166 [Library Scanner] Getting player for resource "Test.jpg"
TRACE 2015-11-23 10:07:39.166 [Library Scanner] Player "AviSynth/FFmpeg" is disabled
TRACE 2015-11-23 10:07:39.167 [Library Scanner] Player "FFmpeg Audio" is disabled
TRACE 2015-11-23 10:07:39.167 [Library Scanner] Player "MEncoder" is disabled
TRACE 2015-11-23 10:07:39.167 [Library Scanner] Player "AviSynth/MEncoder" is disabled
TRACE 2015-11-23 10:07:39.168 [Library Scanner] Player "FFmpeg" is disabled
TRACE 2015-11-23 10:07:39.168 [Library Scanner] Player "FFmpeg Web Video" is disabled
TRACE 2015-11-23 10:07:39.168 [Library Scanner] Player "MEncoder Web" is disabled
TRACE 2015-11-23 10:07:39.169 [Library Scanner] Player "tsMuxeR" is disabled
TRACE 2015-11-23 10:07:39.169 [Library Scanner] Player "Audio High Fidelity" is disabled
TRACE 2015-11-23 10:07:39.170 [Library Scanner] Player "FFmpeg DVR-MS Remux" is disabled
TRACE 2015-11-23 10:07:39.170 [Library Scanner] Player "dcraw Thumbnailer" is disabled
TRACE 2015-11-23 10:07:39.170 [Library Scanner] No player found for Test.jpg
TRACE 2015-11-23 10:07:39.171 [Library Scanner] Matched support line f:.*
TRACE 2015-11-23 10:07:39.171 [Library Scanner] File "Test.jpg" will be sent with MIME type "MIMETYPE_AUTO"
TRACE 2015-11-23 10:07:39.174 [Library Scanner] Matched format MPG to "W:\test\Test.m2ts"
DEBUG 2015-11-23 10:07:39.411 [Library Scanner] Detected encoding for W:\test\Test.en-forced.srt is ISO-8859-1.
DEBUG 2015-11-23 10:07:39.434 [Library Scanner] Detected encoding for W:\test\Test.txt is ISO-8859-1.
TRACE 2015-11-23 10:07:41.781 [Library Scanner] Could not parse bitrate from: Unknown
TRACE 2015-11-23 10:07:41.783 [Library Scanner] The full error was: java.lang.NumberFormatException: For input string: "Unknown"
TRACE 2015-11-23 10:07:41.785 [Library Scanner] Could not parse bitrate from: Unknown
TRACE 2015-11-23 10:07:41.785 [Library Scanner] The full error was: java.lang.NumberFormatException: For input string: "Unknown"
DEBUG 2015-11-23 10:07:41.790 [Library Scanner] Detected encoding for W:\test\Test.en-forced.srt is ISO-8859-1.
DEBUG 2015-11-23 10:07:41.791 [Library Scanner] Detected encoding for W:\test\Test.txt is ISO-8859-1.
TRACE 2015-11-23 10:07:41.804 [Library Scanner] Parsing results for file "Test.m2ts": container: mpegts, bitrate: 29045117, size: 26210383872, video tracks: 1, audio tracks: 2, subtitle tracks: 4, video codec: h264, duration: 02:00:19.00, width: 1920, height: 1080, frame rate: 23.976, mime type: video/mp4, attached fonts: false
	Audio track id: 4352, lang: en, audio codec: DTS, sample frequency:48000, number of channels: 8, bits per sample: 16
	Audio track id: 4353, lang: de, audio codec: DTS, sample frequency:48000, number of channels: 6, bits per sample: 16
	Subtitle track id: 4608, type: PGS, lang: en
	Subtitle track id: 4609, type: PGS, lang: de
	Subtitle track id: 102, type: SUBRIP, subtitles track title from metadata: forced, lang: en, externalFile: W:\test\Test.en-forced.srt, external file character set: ISO-8859-1
	Subtitle track id: 103, type: TEXT, lang: it, externalFile: W:\test\Test.txt, external file character set: ISO-8859-1
TRACE 2015-11-23 10:07:41.882 [Library Scanner] Adding new child "Test.m2ts" with class "net.pms.dlna.RealFile"
TRACE 2015-11-23 10:07:41.883 [Library Scanner] Getting player for resource "Test.m2ts"
TRACE 2015-11-23 10:07:41.883 [Library Scanner] Player "AviSynth/FFmpeg" is disabled
TRACE 2015-11-23 10:07:41.883 [Library Scanner] Player "FFmpeg Audio" is disabled
TRACE 2015-11-23 10:07:41.883 [Library Scanner] Player "MEncoder" is disabled
TRACE 2015-11-23 10:07:41.883 [Library Scanner] Player "AviSynth/MEncoder" is disabled
TRACE 2015-11-23 10:07:41.884 [Library Scanner] Player "FFmpeg" is disabled
TRACE 2015-11-23 10:07:41.884 [Library Scanner] Player "FFmpeg Web Video" is disabled
TRACE 2015-11-23 10:07:41.884 [Library Scanner] Player "MEncoder Web" is disabled
TRACE 2015-11-23 10:07:41.884 [Library Scanner] Player "tsMuxeR" is disabled
TRACE 2015-11-23 10:07:41.884 [Library Scanner] Player "Audio High Fidelity" is disabled
TRACE 2015-11-23 10:07:41.884 [Library Scanner] Player "FFmpeg DVR-MS Remux" is disabled
TRACE 2015-11-23 10:07:41.884 [Library Scanner] Player "dcraw Thumbnailer" is disabled
TRACE 2015-11-23 10:07:41.884 [Library Scanner] No player found for Test.m2ts
TRACE 2015-11-23 10:07:41.885 [Library Scanner] Matched support line f:.*
TRACE 2015-11-23 10:07:41.885 [Library Scanner] Matched support line f:.*
TRACE 2015-11-23 10:07:41.885 [Library Scanner] File "Test.m2ts" will be sent with MIME type "MIMETYPE_AUTO"
TRACE 2015-11-23 10:07:41.887 [Library Scanner] Could not match any format to "W:\test\Test.txt"
TRACE 2015-11-23 10:07:41.887 [Library Scanner] Could not match any format to "W:\test\Test.txt"
DEBUG 2015-11-23 10:07:41.888 [Library Scanner] GlobalIdRepo: removing id 23 - Test.jpg
DEBUG 2015-11-23 10:07:41.888 [Library Scanner] GlobalIdRepo: removing id 24 - Test.m2ts
The library consists of the files test.m2ts, test.en-forced.srt, test.jpg and test.txt. When playing the file via Kodi, I can only select the 2 embedded subtitle tracks although the file is listed in the GUI as Test {External Subtitles}.

Any ideas what I am missing - I am afraid its something very small that i just cannot pinpoint...

Thanks!