[SOLVED] Samsung C/D Series - Subtitle issue (0.6.2)
I am having an issue right now with the subtitle fix that you have brought into the 0.6.2 . For starters subtitles never really seemed to work for my C series tv, but was very excited once I saw your notes saying it was setup for this one. I have files the same way that you have stated in your notes:
Subtitles support
For Serviio to recognize the subtitle file it must be named with the same name as the video file, except the extension, e.g.:
my_movie.avi
my_movie.srt
Though I have not tried to convert it it doesn't seem that srt subtitles are within the profile for C series...
Seeing it here:
- Code:
<Profile id="7" name="Samsung TV / player (C/D-series)" 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>
<sec:ProductCap>smi,DCM10,getMediaInfo.sec,getCaptionInfo.sec</sec:ProductCap>
<sec:X_ProductCap>smi,DCM10,getMediaInfo.sec,getCaptionInfo.sec</sec:X_ProductCap>
</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>smi/caption</SubtitlesMimeType>
</Profile>
I was trying to place in this line which is suppose to be there I thought to make sure that srt will work for the C series. I tried to append this under the smi/caption
But when doing this it gave me an issue within my log, so I took it out. Here is the log issue:
2012-02-09 01:20:26,033 ERROR [XmlUtils] XML Profiles.xsd didn't pass validation, reason: cvc-complex-type.2.4.a: Invalid content was found starting with element 'SubtitlesMimeType'. One of '{ProtocolInfo}' is expected.
2012-02-09 01:20:26,034 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: org.serviio.profile.ProfilesDefinitionException: Profiles XML file is not valid (according to the schema). Check the log.
java.lang.RuntimeException: org.serviio.profile.ProfilesDefinitionException: Profiles XML file is not valid (according to the schema). Check the log.
at org.serviio.profile.ProfileManager.loadProfiles(ProfileManager.java:158)
at org.serviio.MediaServer.main(MediaServer.java:105)
Caused by: org.serviio.profile.ProfilesDefinitionException: Profiles XML file is not valid (according to the schema). Check the log.
at org.serviio.profile.ProfilesDefinitionParser.validateXML(ProfilesDefinitionParser.java:763)
at org.serviio.profile.ProfilesDefinitionParser.parseDefinition(ProfilesDefinitionParser.java:129)
at org.serviio.profile.ProfileManager.loadProfiles(ProfileManager.java:156)
... 1 more
Zip can you please help me with this? I love the application