Samsung PS-51D6900 transcoding
i was playing with Serviio for the last week (or so) with regards to find the most suitable transcoding profiles for this model. I already discovered that D6900 is capable to play a lot of various video containers/codecs without transcoding. Also, I found that if you use standard "Samsung C/D Series" profile in Serviio some files do not play at all. Thus, the first thing I've done - created a profile to match only this model.
If you open profiles.xml and look for profile 7 "Samsung TV / player (C/D-series)" you'll find it extends profile 2 "Samsung TV (B-series)". This is actually not right and this part causes issues with playing some files (in my case it was!). I created new profile
- Code:
<Profile id="21" name="Samsung PS-51D6900" extendsProfileId="1">
<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\][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>
<ContentDirectoryDefinitionFilter>org.serviio.upnp.service.contentdirectory.definition.SamsungContentDirectoryDefinitionFilter</ContentDirectoryDefinitionFilter>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/x-mkv">MATROSKA</MediaFormatProfile>
<MediaFormatProfile mime-type="video/x-msvideo" name="">AVI</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
</Transcoding>
<AutomaticImageRotation>true</AutomaticImageRotation>
<LimitImageResolution>false</LimitImageResolution>
<SubtitlesMimeType>smi/caption</SubtitlesMimeType>
</Profile>
Haven't changed Detection preferences as it is the same as for C/D series profile. So, you will have to manually assign it to your detected TV. Please notice that Transcoding preferences field is empty. With this profile my TV plays almost all files I have (flv, mp4, mkv, avi, mpg) coded using h264 (those detected as up to HIGH/MAIN 4.1), mp42, xvid, divx 3/4/5, mpeg 1 (no fw/rw), mp2, mp3, ac3 and so on...
I found though that there are files which were not played stating "Unsupported Videocodec". Serviio's debug output shown that my TV rejected connection for those files. I checked media info and found that one of those files was coded by mp42 (msmpeg4) inside the avi container. I have added the following transcoding rule:
... with no luck. Debug output shows that file matches the transcoding profile, transcoding starts but my TV still rejected the connection and said it is an unsupported videocodec. I was playing with various of options until ended with mandatory Max Bitrate settings. For MPEGTS container and MPEG-2 video codec our TV supports up to 30Mbps bitrate. I've changed transcoding profile to
...and guess what? This particular file started to play just fine (unfortunately with no FW/RW features, but I think this is because of transcoding?). Next, adding the following lines
- Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="30000">
<Matches container="avi" vCodec="msmpeg4" />
<Matches container="matroska" vCodec="h264" profile="high" levelGreaterThan="4.1" />
<Matches container="matroska" vCodec="h264" profile="main" levelGreaterThan="4.1" />
</Video>
ensures your mkv files with HIGH/MAIN profile higher than 4.1 will be transcoded and played. It's actually almost the same as in the standard config but.. remember to add maxVBitrate! That file was not played on my TV with standard C/D profile because it lack maxVBitrate (max 30Mbps for our TV). Again, no FW/RW for the transcoded files unfortunately. That's it for the moment. I will be looking for other files which do not play and will add new transconding settings to this topic.
Also, just in case, I am attaching text file with media types accepted by our TV (collected with the help of Device Spy part of Developer Tools for UPnP).
I personally found transcoding not that useful as you can't FW/RW the movie (if stopped you have to watch from the beginning) and you can't select Audio track - it transcodes with the default one. This is how Serviio works, PS3MS allows you to select Audio track before playing the movie/transcoding (through #TRANSCODING# folder).
I will post my findings here.
Please let me know if there are files you can't play with this profile.