Samsung J doesn't show subtitles

Issue #885 resolved
Petr Nejedly repo owner created an issue

http://forum.serviio.org/viewtopic.php?p=105009#p105009

UMS working profile: http://www.universalmediaserver.com/forum/viewtopic.php?f=5&t=4075&sid=a72238104ec206d714f1d187666ab092

An example of UMS browse response:

<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
<Result>&lt;DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"&gt;&lt;item id="46" parentID="40" restricted="true"&gt;&lt;dc:title&gt;Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv {StreamTitulky:SubRip/Czech}&lt;/dc:title&gt;&lt;res xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" protocolInfo="http-get:*:video/x-matroska:DLNA.ORG_OP=01" size="9351845301" duration="02:25:15.00" resolution="1280x534" bitrate="1073034" nrAudioChannels="6" sampleFrequency="48000"&gt;http://192.168.111.212:5001/get/46/Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv&lt;/res&gt;&lt;sec:CaptionInfoEx sec:type="srt"&gt;http://192.168.111.212:5001/get/46/subtitle0000Minority.Report.2002.Bluray.720p.DTS.x264-CHD.srt&lt;/sec:CaptionInfoEx&gt;&lt;res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN"&gt;http://192.168.111.212:5001/get/46/thumbnail0000Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv&lt;/res&gt;&lt;res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM"&gt;http://192.168.111.212:5001/get/46/thumbnail0000Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv&lt;/res&gt;&lt;dc:date&gt;2013-09-07T10:06:10&lt;/dc:date&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;</Result>
<NumberReturned>1</NumberReturned>
<TotalMatches>1</TotalMatches>
<UpdateID>2</UpdateID>
</u:BrowseResponse>
</s:Body>
</s:Envelope>

which includes

<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/">
   <item id="46" parentID="40" restricted="true">
      <dc:title>Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv {StreamTitulky:SubRip/Czech}</dc:title>
      <res xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" protocolInfo="http-get:*:video/x-matroska:DLNA.ORG_OP=01" size="9351845301" duration="02:25:15.00" resolution="1280x534" bitrate="1073034" nrAudioChannels="6" sampleFrequency="48000">http://192.168.111.212:5001/get/46/Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv</res>
      <sec:CaptionInfoEx sec:type="srt">http://192.168.111.212:5001/get/46/subtitle0000Minority.Report.2002.Bluray.720p.DTS.x264-CHD.srt</sec:CaptionInfoEx>
      <res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN">http://192.168.111.212:5001/get/46/thumbnail0000Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv</res>
      <res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM">http://192.168.111.212:5001/get/46/thumbnail0000Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv</res>
      <dc:date>2013-09-07T10:06:10</dc:date>
      <upnp:class>object.item.videoItem</upnp:class>
   </item>
</DIDL-Lite>

and then just GET for the subs:

GET /get/46/subtitle0000Minority.Report.2002.Bluray.720p.DTS.x264-CHD.srt HTTP/1.1
Accept: */*
Accept-Language: en-us
Connection: close
Host: 192.168.111.212
User-Agent: DLNA-Host

Looks like no headers are involved.

Comments (5)

  1. Petr Nejedly reporter

    Serviio response for the same file:

    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
       <SOAP-ENV:Body>
          <u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
             <Result>&lt;DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" xmlns:sec="http://www.sec.co.kr/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"&gt;&lt;item id="V_F^FOL_R1$F161$F174$MI165" parentID="V_F^FOL_R1$F161$F174" restricted="1"&gt;&lt;dc:title&gt;Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;upnp:albumArtURI dlna:profileID="JPEG_TN"&gt;http://192.168.111.212:8895/resource/165/COVER_IMAGE&lt;/upnp:albumArtURI&gt;&lt;upnp:icon&gt;http://192.168.111.212:8895/resource/165/COVER_IMAGE&lt;/upnp:icon&gt;&lt;dc:date&gt;2002-06-20&lt;/dc:date&gt;&lt;upnp:genre&gt;Action&lt;/upnp:genre&gt;&lt;dc:description&gt;John Anderton is a top "Precrime" cop in the late-21st century, when technology can predict crimes before they're committed. But Anderton becomes the quarry when another investigator targets him for a murder charge. Can Anderton find a glitch in the system and prove his innocence before it's too late?&lt;/dc:description&gt;&lt;upnp:rating&gt;PG-13&lt;/upnp:rating&gt;&lt;res bitrate="1073000" duration="2:25:15.000" protocolInfo="http-get:*:video/x-matroska:DLNA.ORG_PN=MATROSKA;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000" resolution="1280x534" size="9351845301"&gt;http://192.168.111.212:8895/resource/165/MEDIA_ITEM/MATROSKA-0/ORIGINAL&lt;/res&gt;&lt;res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00D00000000000000000000000000000" resolution="106x160"&gt;http://192.168.111.212:8895/resource/165/COVER_IMAGE&lt;/res&gt;&lt;res protocolInfo="http-get:*:smi/caption:*"&gt;http://192.168.111.212:8895/resource/165/SUBTITLE.srt&lt;/res&gt;&lt;sec:CaptionInfoEx sec:type="srt"&gt;http://192.168.111.212:8895/resource/165/SUBTITLE.srt&lt;/sec:CaptionInfoEx&gt;&lt;res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00D00000000000000000000000000000" resolution="106x160"&gt;http://192.168.111.212:8895/resource/165/COVER_IMAGE&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;</Result>
             <NumberReturned>1</NumberReturned>
             <TotalMatches>1</TotalMatches>
             <UpdateID>2</UpdateID>
          </u:BrowseResponse>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    

    which includes

    <?xml version="1.0" encoding="UTF-8"?>
    <DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" xmlns:sec="http://www.sec.co.kr/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/">
       <item id="V_F^FOL_R1$F161$F174$MI165" parentID="V_F^FOL_R1$F161$F174" restricted="1">
          <dc:title>Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv</dc:title>
          <upnp:class>object.item.videoItem</upnp:class>
          <upnp:albumArtURI dlna:profileID="JPEG_TN">http://192.168.111.212:8895/resource/165/COVER_IMAGE</upnp:albumArtURI>
          <upnp:icon>http://192.168.111.212:8895/resource/165/COVER_IMAGE</upnp:icon>
          <dc:date>2002-06-20</dc:date>
          <upnp:genre>Action</upnp:genre>
          <dc:description>John Anderton is a top "Precrime" cop in the late-21st century, when technology can predict crimes before they're committed. But Anderton becomes the quarry when another investigator targets him for a murder charge. Can Anderton find a glitch in the system and prove his innocence before it's too late?</dc:description>
          <upnp:rating>PG-13</upnp:rating>
          <res bitrate="1073000" duration="2:25:15.000" protocolInfo="http-get:*:video/x-matroska:DLNA.ORG_PN=MATROSKA;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000" resolution="1280x534" size="9351845301">http://192.168.111.212:8895/resource/165/MEDIA_ITEM/MATROSKA-0/ORIGINAL</res>
          <res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00D00000000000000000000000000000" resolution="106x160">http://192.168.111.212:8895/resource/165/COVER_IMAGE</res>
          <res protocolInfo="http-get:*:smi/caption:*">http://192.168.111.212:8895/resource/165/SUBTITLE.srt</res>
          <sec:CaptionInfoEx sec:type="srt">http://192.168.111.212:8895/resource/165/SUBTITLE.srt</sec:CaptionInfoEx>
          <res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00D00000000000000000000000000000" resolution="106x160">http://192.168.111.212:8895/resource/165/COVER_IMAGE</res>
       </item>
    </DIDL-Lite>
    
  2. Petr Nejedly reporter

    One difference is UMS doesn't have the smi/caption resource

          <res protocolInfo="http-get:*:smi/caption:*">http://192.168.111.212:8895/resource/165/SUBTITLE.srt</res>
    
  3. Petr Nejedly reporter

    Implemented a experimental message biulder. need to add this to a profile:

    <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.SamsungJDLNAMessageBuilder</ContentDirectoryMessageBuilder>
    
  4. Log in to comment