Post Wed Jul 11, 2012 9:42 am

Synology with Samsung TV and SRT files working!

Hi all!

First of all I want to say english is not my native language so sorry about that ;)

I have a 212+ and the mediasever built in the NAS had troubles with indexing the mediafiles.
So ik installed Serviio instead, the only problem was that SRT files with MKV's didnt work.

This is what i did to make it work.

First of all i opened the SSH connection to my NAS and connecting to it with Putty.
Login with Root and your password.

Then i copied the profiles.xml file to a shared folder so you can acces it.

  Code:
cp /volume1/@appstore/Serviio/config/profiles.xml  /volume1/downloads


I opened it with a XML editor and copied the Samsung profile ( maybe you can edit the Samsung profile instead, but i wanted to make an extra profile just to be sure.)
I put the copied Samsung profile at the end of the last profile and before the </profiles>
I also renamed the profile to number 22 and added SRT at the name.

Here is what it looks like:

  Code:
<Profile id="22" name="Samsung TV / player SRT" extendsProfileId="1">
      <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.SamsungDLNAMessageBuilder</ContentDirectoryMessageBuilder>
        <ResourceTransportProtocolHandler>org.serviio.upnp.protocol.http.transport.SamsungWiseLinkProtocolHandler</ResourceTransportProtocolHandler>
        <Detection>
         <UPnPSearch>
            <FriendlyName>(^TV-\d{2}C\d{3}.*)|(^\[TV\][A-Z]{2}\d{2}D\d{3}.*)</FriendlyName>            
            <ModelNumber>(1\.0)|(AllShare1\.0)</ModelNumber>
         </UPnPSearch>   
         <HttpHeaders>
            <!-- for BD players -->
            <User-Agent>(.*SEC_HHP_BD-[CD].*)|(.*SEC_HHP_\[(HT|BD)\][CD].*)</User-Agent>
         </HttpHeaders>
      </Detection>
      <DeviceDescription>
           <ExtraElements>
              &lt;sec:ProductCap&gt;smi,DCM10,getMediaInfo.sec,getCaptionInfo.sec&lt;/sec:ProductCap&gt;
            &lt;sec:X_ProductCap&gt;smi,DCM10,getMediaInfo.sec,getCaptionInfo.sec&lt;/sec:X_ProductCap&gt;
           </ExtraElements>
        </DeviceDescription>
        <MediaFormatProfiles>
            <MediaFormatProfile mime-type="video/x-mkv">MATROSKA</MediaFormatProfile>
            <MediaFormatProfile mime-type="video/x-msvideo" name="">AVI</MediaFormatProfile>
        </MediaFormatProfiles>
      <ContentDirectoryDefinitionFilter>org.serviio.upnp.service.contentdirectory.definition.SamsungContentDirectoryDefinitionFilter</ContentDirectoryDefinitionFilter>   
      <Transcoding>
         <!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192" maxVBitrate="20000">
            <Matches container="avi" vCodec="h264" profile="high" levelGreaterThan="4.2" />
            <Matches container="avi" vCodec="h264" profile="main" levelGreaterThan="4.2" />
            <Matches container="matroska" vCodec="h264" profile="high" levelGreaterThan="4.2" />
            <Matches container="matroska" vCodec="h264" profile="main" levelGreaterThan="4.2" />
            <Matches container="mp4" vCodec="h264" profile="high" levelGreaterThan="4.2" />
            <Matches container="mp4" vCodec="h264" profile="main" levelGreaterThan="4.2" />
            <Matches container="mpegts" vCodec="h264" profile="high" levelGreaterThan="4.2" />
               <Matches container="mpegts" vCodec="h264" profile="main" levelGreaterThan="4.2" />
                <Matches container="mp4" vCodec="mpeg4" aCodec="lpcm" />
         </Video>
         <!-- transcode H264 MP4 files with LPCM audio -->
         <Video targetContainer="mpegts" targetACodec="ac3">
            <Matches container="mpegts" aCodec="mp2" />
            <Matches container="mp4" aCodec="lpcm" />
            <Matches container="flv" vCodec="h264" /> <!-- looks like some (D?) devices play FLV@H264 natively so this could be removed -->
            <Matches container="matroska" vCodec="h264" aCodec="flac" />
            <Matches container="matroska" vCodec="h264" aCodec="vorbis" />
            <Matches container="matroska" vCodec="h264" aCodec="truehd" />
            <Matches container="matroska" vCodec="vc1" />
            <Matches container="ogg" vCodec="mpeg4" />
            <Matches container="3gp" aCodec="amrnb" /> 
         </Video>   
         <!-- transcode MKV with MPEG2 video, remux into mpeg2ts -->
         <!-- transcode AVI with AVC video -->
         <Video targetContainer="mpegts" targetACodec="ac3" targetVCodec="mpeg2video" maxVBitrate="20000">
            <Matches container="matroska" vCodec="mpeg2video" />
            <Matches container="matroska" vCodec="vp8" />
            <Matches container="avi" vCodec="h264" />
            <Matches container="avi" vCodec="mjpeg" />
            <Matches container="avi" vCodec="dvvideo" />
            <Matches container="flv" />
            <Matches container="ogg" />
         </Video>
         <!-- For dvr-ms files force mpeg2video transcoding to fix monotone timestamps problems-->
         <Video targetContainer="mpegts" targetACodec="ac3" forceVTranscoding="true" maxVBitrate="20000">
            <Matches container="asf" vCodec="mpeg2video" />
         </Video>
         <Video targetContainer="mpegts">
            <Matches container="wtv" />
         </Video>
         <!-- transcode audio only for wmv with wmapro -->
         <Video targetContainer="asf" targetACodec="ac3" aBitrate="256">
            <Matches container="asf" aCodec="wmapro" />
         </Video>
         <Audio targetContainer="lpcm">
            <Matches container="mp4" />
            <Matches container="flac" />
            <Matches container="ogg" />
            <Matches container="adts" />
         </Audio>
      </Transcoding>
      <OnlineTranscoding>
         <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
            <Matches container="mp4" vCodec="h264" />      
             <Matches container="applehttp" vCodec="h264"/>
         </Video>      
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384" maxVBitrate="20000">
            <Matches container="mp4" />
            <Matches container="asf" /> <!-- mms -->
         </Video>
      </OnlineTranscoding>
      <AutomaticImageRotation>true</AutomaticImageRotation>
        <LimitImageResolution>false</LimitImageResolution>
        <SubtitlesMimeType>text/srt</SubtitlesMimeType>      
   </Profile>


Okay and look at the last line thats what i changed:

Instead of smi/caption I wrote text/srt then saved the profiles.xml file and copied back with putty.

  Code:
cp /volume1/downloads/profiles.xml /volume1/@appstore/Serviio/config/


Stop Serviio in the Package centre and restart it, choose the newly made profile and there you go SRT files with MKV! :)
I am happy with it!!

If this was already known sorry for my post ;)