Hi,
Yesterday I've encounter a problem with mkv which contains multiple subtitle tracks and also an srt file.
The problem is that, Showtime can't load that requested srt file, when i type the link into a browser I get
Failure: 500 Internal Server Error
It has been also reported on showtime tracker:
https://showtimemediacenter.com/issues/1835
I've reproduced it on a second computer with UMS.
Link to forum topic:
http://www.universalmediaserver.com/forum/viewtopic.php?f=9&t=1516&p=9055#p9055
On forum I've attached logs from showtime and ums.
I've create VM with Win7, installed only UMS with prerequisites (java and AviSynth).
Turned on Trace log on UMS and Debug all HTTP on Showtime.
Logs in attachment.
Interesting parts:
TRACE 2014-01-07 15:27:10.409 [New I/O worker #2] Request: HTTP/1.1 : HEAD : get/0$2$2/blow-jobs720.srt
and it changes to
TRACE 2014-01-07 15:27:10.670 [New I/O worker #2] HTTP: get/0$2$2/subtitle0000.srt / 0-0
TRACE 2014-01-07 15:27:10.670 [New I/O worker #2] discover 0 refresh forced: false
TRACE 2014-01-07 15:27:10.670 [New I/O worker #2] discover 0$2 refresh forced: false
TRACE 2014-01-07 15:27:10.670 [New I/O worker #2] Sent to socket: Content-Length: 0
TRACE 2014-01-07 15:27:10.670 [New I/O worker #2] Sent to socket: Content-Type: text/plain
TRACE 2014-01-07 15:27:10.670 [New I/O worker #2] Sent to socket: Expires: Sat, 03 May 2014 08:13:50 GMT
TRACE 2014-01-07 15:27:10.670 [New I/O worker #2] Sent to socket: Server: Windows_7-x86-6.1, UPnP/1.0, UMS/3.3.0
TRACE 2014-01-07 15:27:10.680 [New I/O worker #2] Opened request handler on socket /192.168.1.35:52892
from the Showtime side:
00:00:30.520: Subtitles [DEBUG]:Trying to load http://192.168.1.46:5001/get/0$2$2/subtitle0000.srt
00:00:30.520: HTTP [DEBUG]:Reusing connection to 192.168.1.46:5001 (id=13)
00:00:30.521: HTTP [DEBUG]:0x000000: 47 45 54 20 2f 67 65 74 2f 30 24 32 24 32 2f 73 GET /get/0$2$2/s
00:00:30.521: HTTP [DEBUG]:0x000010: 75 62 74 69 74 6c 65 30 30 30 30 2e 73 72 74 20 ubtitle0000.srt
00:00:30.522: HTTP [DEBUG]:0x000020: 48 54 54 50 2f 31 2e 31 0d 0a 55 73 65 72 2d 41 HTTP/1.1..User-A
00:00:30.522: HTTP [DEBUG]:0x000030: 67 65 6e 74 3a 20 53 68 6f 77 74 69 6d 65 20 50 gent: Showtime P
00:00:30.523: HTTP [DEBUG]:0x000040: 53 33 20 34 2e 33 2e 36 33 36 2e 67 64 31 66 63 S3 4.3.636.gd1fc
00:00:30.523: HTTP [DEBUG]:0x000050: 64 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 6b d..Connection: k
00:00:30.523: HTTP [DEBUG]:0x000060: 65 65 70 2d 61 6c 69 76 65 0d 0a 41 63 63 65 70 eep-alive..Accep
00:00:30.524: HTTP [DEBUG]:0x000070: 74 3a 20 2a 2f 2a 0d 0a 41 63 63 65 70 74 2d 45 t: */*..Accept-E
00:00:30.524: HTTP [DEBUG]:0x000080: 6e 63 6f 64 69 6e 67 3a 20 69 64 65 6e 74 69 74 ncoding: identit
00:00:30.524: HTTP [DEBUG]:0x000090: 79 0d 0a 48 6f 73 74 3a 20 31 39 32 2e 31 36 38 y..Host: 192.168
00:00:30.525: HTTP [DEBUG]:0x0000a0: 2e 31 2e 34 36 3a 35 30 30 31 0d 0a 0d 0a .1.46:5001....
00:00:30.525: HTTP [DEBUG]:http://192.168.1.46:5001/get/0$2$2/subtitle0000.srt: Response:
00:00:30.526: HTTP [DEBUG]: HTTP/1.1 200 OK
00:00:30.527: HTTP [DEBUG]: Content-Type: text/plain
00:00:30.527: HTTP [DEBUG]: Expires: Sat, 03 May 2014 08:13:50 GMT
00:00:30.527: HTTP [DEBUG]: Server: Windows_7-x86-6.1, UPnP/1.0, UMS/3.3.0
00:00:30.527: HTTP [DEBUG]: Content-Length: 0
00:00:30.528: HTTP [DEBUG]:
00:00:30.528: HTTP [DEBUG]:Reading 0 bytes
00:00:30.528: HTTP [DEBUG]:Parking connection to 192.168.1.46:5001 (id=13)
00:00:30.528: Subtitles [ERROR]:Unable to load http://192.168.1.46:5001/get/0$2$2/subtitle0000.srt -- Unknown format (0 bytes), dump of first 64 bytes follows
Topcis and bugs update also on:
http://www.universalmediaserver.com/forum/posting.php?mode=edit&f=9&p=9065
and
Another thing:
When i enter in browser
http://192.168.1.46:5001/get/0$2$2/subtitle0000.srt
I get a blank page
After that when i enter into browser
http://192.168.1.46:5001/get/0$2$2/jobs720.srt
Browser wants to download an srt file, i discard it.
Then i go back to
http://192.168.1.46:5001/get/0$2$2/subtitle0000.srt
And now i see subtitles in plain text.
When the link on the forum cannot be access anymore that could mean that this issue can be closed ?
@Sami32 I can't access anything at the forum atm, so I'm not sure that's a valid proof that the issue is gone..
Edit: Now the forum link works for me.
@Nadahar Thanks for your attention :-) Yes for me too now, but yesterday all the issues links was not accessible so i wrongly though they was deleted...my bad 8-/
I did reproduce this issue with the latest UMS version on an a Panasonic Viera renderer.
debug.log_EXTERNALSUBTITLES.txt
debug.log_EXTERNAL_SUBTITLES_scan.txt
It's working fine with MKV file and any external subtitle when one subtitle is embedded, but not when 3 subtitles are embedded, certainly with anything superior to one embedded subtitle.
So it's a UMS issue, as far as i saw in my log external subtitles are not recognized at the parsing time, so maybe it come from _DLNAMediaSubtitle.java_
TRACE 2016-07-24 15:14:04.171 [Library Scanner] Forcing short path name on C:\Documents and Settings\Philippe\Mes documents\Téléchargements\Star.Trek.Horizon.2016.720p.WEBDL.H264.AAC.srt
TRACE 2016-07-24 15:14:04.171 [Library Scanner] Could not match any format to "C:\Documents and Settings\Philippe\Mes documents\Téléchargements\Star.Trek.Horizon.2016.720p.WEBDL.H264.AAC.srt"
TRACE 2016-07-24 15:14:04.171 [Library Scanner] Forcing short path name on C:\Documents and Settings\Philippe\Mes documents\Téléchargements\Star.Trek.Horizon.2016.720p.WEBDL.H264.AAC.srt
TRACE 2016-07-24 15:14:04.171 [Library Scanner] Could not match any format to "C:\DOCUME~1\Philippe\MESDOC~1\TÉLÉCH~1\STARTR~1.SRT"
TRACE 2016-07-24 15:14:04.171 [Library Scanner] Forcing short path name on C:\Documents and Settings\Philippe\Mes documents\Téléchargements\Star.Trek.Horizon.2016.720p.WEBDL-H264.AAC.mkv
TRACE 2016-07-24 15:14:04.171 [Library Scanner] Matched format MKV to "C:\Documents and Settings\Philippe\Mes documents\Téléchargements\Star.Trek.Horizon.2016.720p.WEBDL-H264.AAC.mkv"
TRACE 2016-07-24 15:14:04.203 [Library Scanner] Parsing results for file "Star.Trek.Horizon.2016.720p.WEBDL-H264.AAC.mkv": container: mkv, bitrate: 1385912, size: 1066319416, video tracks: 1, audio tracks: 1, subtitle tracks: 3, video codec: h264, duration: 01:42:35.00, width: 1280, height: 720, frame rate: 23.976, mime type: video/x-matroska Audio track id: 0, lang: en, audio codec: AAC, sample frequency:44100, number of channels: 2, bits per sample: 16 Subtitle track id: 0, type: SUBRIP, lang: it Subtitle track id: 1, type: SUBRIP, lang: en Subtitle track id: 2, type: SUBRIP, lang: de
TRACE 2016-07-24 15:14:04.218 [Library Scanner] Adding new child "Star.Trek.Horizon.2016.720p.WEBDL-H264.AAC.mkv" with class "net.pms.dlna.RealFile"
TRACE 2016-07-24 15:14:04.218 [Library Scanner] Forcing short path name on C:\Documents and Settings\Philippe\Mes documents\Téléchargements\Star.Trek.Horizon.2016.720p.WEBDL-H264.AAC.mkv
TRACE 2016-07-24 15:14:04.218 [Library Scanner] Getting player for resource "Star.Trek.Horizon.2016.720p.WEBDL-H264.AAC.mkv"
TRACE 2016-07-24 15:14:04.218 [Library Scanner] Returning compatible player "FFmpeg"
TRACE 2016-07-24 15:14:04.218 [Library Scanner] Forcing short path name on C:\Documents and Settings\Philippe\Mes documents\Téléchargements\Star.Trek.Horizon.2016.720p.WEBDL-H264.AAC.mkv
TRACE 2016-07-24 15:14:04.218 [Library Scanner] Looking for an audio track with lang: fr
TRACE 2016-07-24 15:14:04.218 [Library Scanner] Looking for an audio track with lang: fra
TRACE 2016-07-24 15:14:04.218 [Library Scanner] Looking for an audio track with lang: fre
TRACE 2016-07-24 15:14:04.218 [Library Scanner] Looking for an audio track with lang: eng
TRACE 2016-07-24 15:14:04.218 [Library Scanner] Matched audio track: id: 0, lang: en, audio codec: AAC, sample frequency:44100, number of channels: 2, bits per sample: 16
TRACE 2016-07-24 15:14:04.234 [Library Scanner] Searching for a match for: en with fr and off
TRACE 2016-07-24 15:14:04.234 [Library Scanner] Searching for a match for: en with fra and off
TRACE 2016-07-24 15:14:04.234 [Library Scanner] Searching for a match for: en with fre and off
TRACE 2016-07-24 15:14:04.234 [Library Scanner] Searching for a match for: en with * and fr
TRACE 2016-07-24 15:14:04.234 [Library Scanner] Searching for a match for: en with * and eng
TRACE 2016-07-24 15:14:04.234 [Library Scanner] Matched internal subtitles track: id: 1, type: SUBRIP, lang: en
TRACE 2016-07-24 15:14:04.234 [Library Scanner] Searching for a match for: en with * and und
TRACE 2016-07-24 15:14:04.234 [Library Scanner] This video has embedded subtitles that should be streamed
And this is when it's working as expected
TRACE 2016-07-24 15:14:15.500 [Library Scanner] Matched format MKV to "C:\Documents and Settings\Philippe\Mes documents\Téléchargements\UMS Video Testing Suite (20150121)\MKV-H264-AACHE-2ch.mkv"
DEBUG 2016-07-24 15:14:15.515 [Library Scanner] Set detected charset "ISO-8859-1" and language "fr" for C:\Documents and Settings\Philippe\Mes documents\Téléchargements\UMS Video Testing Suite (20150121)\MKV-H264-AACHE-2ch.srt
DEBUG 2016-07-24 15:14:15.515 [Library Scanner] Set detected charset "ISO-8859-1" and language "fr" for C:\Documents and Settings\Philippe\Mes documents\Téléchargements\UMS Video Testing Suite (20150121)\MKV-H264-AACHE-2ch.sub
DEBUG 2016-07-24 15:14:15.609 [Library Scanner] Set detected charset "ISO-8859-1" and language "fr" for C:\Documents and Settings\Philippe\Mes documents\Téléchargements\UMS Video Testing Suite (20150121)\MKV-H264-AACHE-2ch.srt
DEBUG 2016-07-24 15:14:15.609 [Library Scanner] Set detected charset "ISO-8859-1" and language "fr" for C:\Documents and Settings\Philippe\Mes documents\Téléchargements\UMS Video Testing Suite (20150121)\MKV-H264-AACHE-2ch.sub
TRACE 2016-07-24 15:14:15.609 [Library Scanner] Parsing results for file "MKV-H264-AACHE-2ch.mkv": container: mkv, bitrate: 3202116, size: 4589433, video tracks: 1, audio tracks: 1, subtitle tracks: 2, video codec: h264, duration: 00:00:11.00, width: 1920, height: 816, frame rate: 23.976, mime type: video/x-matroska, matrix coefficients: BT.709 Audio track id: 0, lang: und, audio codec: aac-he, sample frequency:48000, number of channels: 2, bits per sample: 16 Subtitle track id: 100, type: SUBRIP, lang: fr, externalFile: C:\Documents and Settings\Philippe\Mes documents\Téléchargements\UMS Video Testing Suite (20150121)\MKV-H264-AACHE-2ch.srt, external file character set: ISO-8859-1Subtitle track id: 101, type: MICRODVD, lang: fr, externalFile: C:\Documents and Settings\Philippe\Mes documents\Téléchargements\UMS Video Testing Suite (20150121)\MKV-H264-AACHE-2ch.sub, external file character set: ISO-8859-1
It's look like externalFile value is not set correctly, or overrided.
Actually it didn't even detect the charset of the subtitle file.
N.B. It is the same external subtitle, i just renamed it.
@wesyr @SubJunk "(on Showtime)" could be deleted from the title of this issue, since it's not specific to a renderer, as well as ".srt" as it also affect the others kind of external subtitles. Thanks.
Changed title to correct one :)
@wesyr Thanks :+1:
@wesyr is this issue still valid with the latest UMS version? Since 2014 I made a lot of changes. For me it works well.
@wesyr Don't be surprise, it's the "subtitles" guy, so better to answer him if you need this issue solved ;-)
@valib, @Sami32 sorry about this delay, i wasn't home for a week and didn't had chance to check this topic :) right now it's "night-night" time here where i am ;) , so i can check it tomorrow in the evening and of course will answer you is is still valid :)
@wesyr Can you give us some feedback, please ?
@SubJunk This should be closed as @valib confirmed that this works.