Most of us know the DTS 5.1 Playback Issue for Video Files on Samsung Tizen. It's a shame really, as the older SmartHub based Samsung TV's don't suffer this issue and work perfectly fine. While the issue exists in Tizen based TVs, there is a workaround by disabling subtitles (i.e. enabling subtitles will only allow playback on Direct Stream), and Direct Playing the file, so that DTS track is unaffected and plays fine. Now, all this applies only for Video files. For Music files, the situation is worse.
I noticed on my UN70KU6300 Tizen based TV, whenever I play a music file with DTS / DCA Audio, it always gets Transcoded to MP3. (MP3!! - how pathetic is that!), upon investigation of the Plex Media Server.log, I found its been triggered by the Samsung Tizen.xml profile.
The Music file I'm trying to play has the following XML:
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="32" librarySectionTitle="English DTS" librarySectionUUID="67c4e5ee-6a3b-43a4-be8a-b1ca1a731e49" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1507236901">
<Track ratingKey="1706" key="/library/metadata/1706" parentRatingKey="1702" grandparentRatingKey="1701" guid="com.plexapp.agents.none://1702/3?lang=xn" librarySectionID="32" librarySectionKey="/library/sections/32" type="track" title="Paparazzi" grandparentKey="/library/metadata/1701" parentKey="/library/metadata/1702" grandparentTitle="Lady Gaga" parentTitle="The Fame (2008)" summary="" index="3" parentIndex="1" viewCount="3" lastViewedAt="1509106675" year="2000" art="/library/metadata/1701/art/1508730536" grandparentThumb="/library/metadata/1701/thumb/1508730536" grandparentArt="/library/metadata/1701/art/1508730536" duration="208240" originallyAvailableAt="2000-01-01" addedAt="1508729932" updatedAt="1508729935" createdAtAccuracy="epoch" createdAtTZOffset="21600">
<Media id="1865" duration="208240" bitrate="1411" audioChannels="6" audioCodec="dca" container="wav" audioProfile="dts">
<Part accessible="1" exists="1" id="1896" key="/library/parts/1896/946656045/file.wav" duration="208240" file="/media/Entertainment/Music/English DTS/Lady Gaga - The Fame (2008)/03-Paparazzi.wav" size="36733580" audioProfile="dts" container="wav">
<Stream id="4326" streamType="2" selected="1" codec="dca" index="0" channels="6" bitrate="1411" audioChannelLayout="5.1(side)" profile="dts" samplingRate="44100"/>
</Part>
</Media>
<Extras size="0"></Extras>
</Track>
</MediaContainer>
And, Below is a snippet of the system profile xml file:
<TranscodeTargets>
<VideoProfile protocol="hls" container="mpegts" codec="h264" audioCodec="aac,mp2,mp3,ac3,eac3" context="streaming">
<Setting name="BreakNonKeyframes" value="true" />
</VideoProfile>
<MusicProfile container="mp3" codec="mp3"/>
<PhotoProfile container="jpeg"/>
</TranscodeTargets>
<DirectPlayProfiles>
<VideoProfile container="mp4" codec="h264,mpeg4" audioCodec="aac,ac3,mp3,pcm" subtitleFormat="srt,smi"/>
<VideoProfile container="asf" codec="wmv3,wmv3,vc1" audioCodec="wmav2,wmav2,wmapro,wmavoice,pcm" subtitleFormat="srt,smi"/>
<VideoProfile container="avi" codec="h264,mpeg4,mjpeg" audioCodec="mp3,ac3,dca,pcm" subtitleFormat="srt,smi"/>
<VideoProfile container="mkv" codec="h264,mpeg4,mjpeg,mpeg2video,vc1" audioCodec="mp2,mp3,ac3,dca,aac,pcm,vorbis" subtitleFormat="srt,smi"/>
<VideoProfile container="mpeg" codec="h264,mpeg1video,mpeg2video" audioCodec="mp2,mp3,ac3,aac,pcm" subtitleFormat="srt,smi"/>
<VideoProfile container="flv" codec="h264" audioCodec="aac,ac3,mp3,pcm" subtitleFormat="srt,smi"/>
<VideoProfile container="mpegts" codec="h264,mpeg2video,vc1" audioCodec="mp2,mp3,ac3,dca,pcm" subtitleFormat="srt,smi"/>
<VideoProfile container="3gpp" codec="h264,mpeg4" audioCodec="aac"/>
<MusicProfile container="mp4" codec="aac"/>
<MusicProfile container="mp3" codec="mp3"/>
<PhotoProfile container="jpeg,gif,bmp,png"/>
</DirectPlayProfiles>
So there is no DirectPlayProfile for wav container, dca codec, and that's why it's transcoding it to MP3. Simple enough, if I add the proper DirectPlayProfile for MusicProfile, everything should be fine right? - No. Wrong. Let me explain.
I copied the Samsung Tizen.xml to the user profile path and made the necessary modifications. I verified that the PMS is loading the user profile and not the system profile - and indeed it did. (I also temporarily moved the system profile away just to be sure).
On the modified Tizen Profile, this is what I have added under DirectPlayProfiles.
<MusicProfile container="wav" codec="dca"/>
and when I play for file, the Plex Media Server.log shows the following. (Full debug log attached to this thread).
Oct 30, 2017 12:29:56.693 [0xf13ff400] DEBUG - TranscodeUniversalRequest: using profile Samsung Tizen
Oct 30, 2017 12:29:56.694 [0xf13ff400] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/1706?includeBandwidths=1&X-Plex-Session-Identifier=zipo8nxsrps8xaqyulzste1t
Oct 30, 2017 12:29:56.696 [0xf13ff400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
Oct 30, 2017 12:29:56.696 [0xf13ff400] DEBUG - Auth: authenticated user 1 as shafraz@gmail.com
Oct 30, 2017 12:29:56.696 [0xf13ff400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
Oct 30, 2017 12:29:56.726 [0xf13ff400] DEBUG - MDE: analyzing media item 1865
Oct 30, 2017 12:29:56.727 [0xf13ff400] DEBUG - MDE: Paparazzi: Direct Play is disabled
Oct 30, 2017 12:29:56.727 [0xf13ff400] DEBUG - MDE: Paparazzi: selected media 0 / 1865
Oct 30, 2017 12:29:56.728 [0xf13ff400] DEBUG - Streaming Resource: Added session 0xe8d1a4c0:zipo8nxsrps8xaqyulzste1t
Oct 30, 2017 12:29:56.728 [0xf13ff400] DEBUG - Streaming Resource: Reached Decision id=1706 codes=(General=1001,Direct play not available; Conversion OK. Direct Play=3000,App cannot direct play this item. Direct play is disabled. Transcode=1001,Direct play not available; Conversion OK.) media=(id=1865 part=(id=1896 decision=transcode protocol=http streams=(Audio=(id=4326 decision=transcode bitrate=320 encoder=libmp3lame channels=2 rate=44100))))
It says Direct Play Disabled, and ends up direct streaming on MP3 with 2 channels stereo!
But I have Direct Play enabled on the Tizen Plex App. I also have no issues Direct Playing video files. So I wonder why it says Direct Play is disabled, and wonder why its down mixing a 5.1 track to 2 channels.
Could someone please help me with this one? I don't remember having such problems when running Plex on my pre Tizen Smart Hub based Samsung. The version provided by @Orca. That was just solid and amazing. I just don't want to end up replacing the new TV just because of smaller annoyances like this. So please help me in the right direction to have this issue solved. @sa2000
Thanks!