content not direct playing to capable hardware

Hi All,

I have recently purchased a new 4K TV (Hisense 65n7), which is capable of HDR 4K HEVC playback, the Plex app on the TV comes via the VEWD (Opera TV) store. My Plex server (latest version) runs on a Synology DS918+.

I have about 10 movies which are at least 4K HEVC (some are also HDR) which, when loaded onto a USB and plugged in directly, play just fine on the TV.

The problem comes when I try and play the same content via Plex. On all except one video, the server decides to transcode and the Synology hardware is not up to the task. I would have thought that, given the TV can play these files), they would Direct Play on the TV. I have made sure that the TV app has Direct Play checked but this doesn’t seem to make a difference.

I can optimise each video on the Plex server, but this is slow and makes the files MUCH larger.

I’m not really sure how to troubleshoot any further so any suggestions would be welcome!

There is nothing to troubleshoot. 4K HEVC UHD requires more GPU speed and sophistication than the Intel Celeron J3455 GPU can provide. 4K HEVC UHD decoding requires a KabyLake or higher class GPU for proper hardware decoding.

One thing you might do is

ffmpeg -i filename -c:v copy -c:a aac -ac 2 outputfilename.mp4 which will copy the video stream and minimize the audio to 2 channel stereo. This should DirectPlay. Your goal is to not give PMS any reason to decode the file for audio or video. “Read and send” is all you want

Thanks Chuck,

I think I may have been unclear. I am trying to stop Plex transcoding and get it to Direct Play instead as a I know that the TV is unto playing the content. Is there a way to see what is causing the Plex Server to choose transcode rather than direct play?

Will you grab the XML for what you’re trying to play? Also, can you get the specs for what the TV can accept natively?

If your media, including container (important with HEVC), is supported natively by the tv, PMS won’t need to touch it. Any time it needs remux (e.g. MKV -> MP4) things get dicey with 4K

How do I get the xml you are after?

Hover over the item.
Click “Get Info”
Click “View XML”
A new tab will open.
The top portion of that gob of test, before it gets to the descriptive parts (actors, synopsis, etc) is what I would like.

When you copy/ paste it here, before clicking ‘post comment’, you need to highlight all of it, go the the Paragraph Formatting (backwards P) and select Code formatting.

You’ll see the text indent.
Clicking ‘Preview’ will allow you to confirm it’s correct.

Code formatting prevents the forum from interpreting the XML as formatting commands (dumb forum)

Here is the xml for one movie:

<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="4" librarySectionTitle="Movies" librarySectionUUID="3867728a-4e81-428a-9609-ca764a30dc5a" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1510653690">
<Video ratingKey="8536" key="/library/metadata/8536" guid="com.plexapp.agents.imdb://tt0451279?lang=en" librarySectionID="4" librarySectionKey="/library/sections/4" studio="Dune Entertainment" type="movie" title="Wonder Woman" contentRating="PG-13" summary="An Amazon princess comes to the world of Man to become the greatest of the female superheroes." rating="7.2" audienceRating="7.8" year="2017" tagline="Power. Grace. Wisdom. Wonder." thumb="/library/metadata/8536/thumb/1511160767" art="/library/metadata/8536/art/1511160767" duration="8476224" originallyAvailableAt="2017-05-30" addedAt="1504524425" updatedAt="1511160767" chapterSource="mixed">
<Media videoResolution="4k" id="19937" duration="8476224" bitrate="55312" width="3840" height="2160" aspectRatio="1.78" audioChannels="8" audioCodec="truehd" videoCodec="hevc" container="mkv" videoFrameRate="24p" videoProfile="main 10">
<Part accessible="1" exists="1" id="19943" key="/library/parts/19943/1509598362/file.mkv" duration="8476224" file="/volume3/movies/MEDIA/Movies/Wonder Woman (2017)/Wonder Woman (2017) 2160p.mkv" size="58604706558" container="mkv" videoProfile="main 10">
<Stream id="44631" streamType="1" default="1" codec="hevc" index="0" bitrate="54864" language="English" languageCode="eng" bitDepth="10" chromaSubsampling="4:2:0" colorRange="tv" colorSpace="bt2020nc" frameRate="23.976" height="2160" level="153" profile="main 10" refFrames="1" title="MPEG-H HEVC Video / 49979 kbps / 2160p / 23.976 fps / 16:9 / Main 10 Profile 5.1 High / 4:2:0 / 10 bits / HDR / BT.2020" width="3840" />
<Stream id="44632" streamType="2" default="1" codec="truehd" index="1" channels="8" bitrate="4279" language="English" languageCode="eng" audioChannelLayout="7.1" bitDepth="24" samplingRate="48000" title="Dolby Atmos/TrueHD Audio / 7.1-Atmos / 48 kHz / 4727 kbps / 24-bit" />
<Stream id="44633" streamType="2" selected="1" codec="ac3" index="2" channels="6" bitrate="448" language="English" languageCode="eng" audioChannelLayout="5.1(side)" samplingRate="48000" title="Compatibility Track / Dolby Digital 5.1-EX / 48 kHz / 448 kbps" />
<Stream id="44634" streamType="3" selected="1" codec="pgs" index="3" bitrate="30" language="English" languageCode="eng" title="SDH" />
<Stream id="44635" streamType="3" codec="pgs" index="4" bitrate="13" language="العربية" languageCode="ara" />
<Stream id="44636" streamType="3" codec="pgs" index="5" bitrate="25" language="中文" languageCode="chi" title="Traditional" />
<Stream id="44637" streamType="3" codec="pgs" index="6" bitrate="22" language="中文" languageCode="chi" title="Cantonese" />
<Stream id="44638" streamType="3" codec="pgs" index="7" bitrate="24" language="hrvatski" languageCode="hrv" />
<Stream id="44639" streamType="3" codec="pgs" index="8" bitrate="23" language="Česky" languageCode="cze" />
<Stream id="44640" streamType="3" codec="pgs" index="9" bitrate="23" language="Dansk" languageCode="dan" />
<Stream id="44641" streamType="3" codec="pgs" index="10" bitrate="22" language="Nederlands" languageCode="dut" />
<Stream id="44642" streamType="3" codec="pgs" index="11" bitrate="23" language="Suomi" languageCode="fin" />
<Stream id="44643" streamType="3" codec="pgs" index="12" bitrate="21" language="Français" languageCode="fre" />
<Stream id="44644" streamType="3" codec="pgs" index="13" bitrate="34" language="Deutsch" languageCode="ger" />
<Stream id="44645" streamType="3" codec="pgs" index="14" bitrate="28" language="Ελληνικά" languageCode="gre" />
<Stream id="44646" streamType="3" codec="pgs" index="15" bitrate="24" language="Magyar" languageCode="hun" />
<Stream id="44647" streamType="3" codec="pgs" index="16" bitrate="28" language="Italiano" languageCode="ita" />
<Stream id="44648" streamType="3" codec="pgs" index="17" bitrate="18" language="日本語" languageCode="jpn" />
<Stream id="44649" streamType="3" codec="pgs" index="18" bitrate="16" language="한국어" languageCode="kor" />
<Stream id="44650" streamType="3" codec="pgs" index="19" bitrate="22" language="Norsk" languageCode="nor" />
<Stream id="44651" streamType="3" codec="pgs" index="20" bitrate="21" language="polski" languageCode="pol" />
<Stream id="44652" streamType="3" codec="pgs" index="21" bitrate="25" language="Português" languageCode="por" />
<Stream id="44653" streamType="3" codec="pgs" index="22" bitrate="23" language="Română" languageCode="rum" />
<Stream id="44654" streamType="3" codec="pgs" index="23" bitrate="25" language="Español" languageCode="spa" />
<Stream id="44655" streamType="3" codec="pgs" index="24" bitrate="23" language="Svenska" languageCode="swe" />
<Stream id="44656" streamType="3" codec="pgs" index="25" bitrate="25" language="ไทย" languageCode="tha" />
</Part>

and another:

<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="4" librarySectionTitle="Movies" librarySectionUUID="3867728a-4e81-428a-9609-ca764a30dc5a" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1510653690">
<Video ratingKey="12171" key="/library/metadata/12171" guid="com.plexapp.agents.imdb://tt0119116?lang=en" librarySectionID="4" librarySectionKey="/library/sections/4" studio="Columbia Pictures" type="movie" title="The Fifth Element" titleSort="Fifth Element" contentRating="PG-13" summary="In 2257, a taxi driver is unintentionally given the task of saving a young girl who is part of the key that will ensure the survival of humanity." rating="7.2" audienceRating="8.6" year="1997" tagline="There is no future without it." thumb="/library/metadata/12171/thumb/1509613631" art="/library/metadata/12171/art/1509613631" duration="7553568" originallyAvailableAt="1997-05-07" addedAt="1509613588" updatedAt="1509613631" audienceRatingImage="rottentomatoes://image.rating.upright" chapterSource="mixed" primaryExtraKey="/library/metadata/12172" ratingImage="rottentomatoes://image.rating.ripe">
<Media videoResolution="4k" id="19345" duration="7553568" bitrate="37204" width="3840" height="1606" aspectRatio="2.35" audioChannels="8" audioCodec="truehd" videoCodec="hevc" container="mkv" videoFrameRate="24p" videoProfile="main 10">
<Part accessible="1" exists="1" id="19351" key="/library/parts/19351/1509436503/file.mkv" duration="7553568" file="/volume3/movies/MEDIA/Movies/Fifth Element, The (1997)/The Fifth Element (1997).mkv" size="35127800843" container="mkv" videoProfile="main 10">
<Stream id="43240" streamType="1" default="1" codec="hevc" index="0" bitrate="36564" bitDepth="10" chromaSubsampling="4:2:0" colorRange="tv" colorSpace="bt2020nc" frameRate="23.976" height="1606" level="153" profile="main 10" refFrames="1" width="3840" />
<Stream id="43241" streamType="2" selected="1" default="1" codec="truehd" index="1" channels="8" bitrate="5666" language="English" languageCode="eng" audioChannelLayout="7.1" bitDepth="24" samplingRate="48000" />
<Stream id="43242" streamType="2" codec="ac3" index="2" channels="6" bitrate="640" language="English" languageCode="eng" audioChannelLayout="5.1(side)" samplingRate="48000" />
<Stream id="43243" streamType="3" codec="pgs" index="3" bitrate="32" language="English" languageCode="eng" headerCompression="1" />
<Stream id="43244" streamType="3" codec="pgs" index="4" bitrate="36" language="English" languageCode="eng" headerCompression="1" title="SDH" />
<Stream id="43245" streamType="3" codec="pgs" index="5" bitrate="21" language="Français" languageCode="fre" headerCompression="1" />
<Stream id="43246" streamType="3" codec="pgs" index="6" bitrate="29" language="Español" languageCode="spa" headerCompression="1" />
</Part>
</Media>

Turn on debug logging, start a session where Plex decides to transcode, search for “MDE” in the server log and copy the corresponding text (that correlates to the session you just tried with). Chuck will probably need that too.

Thanks Peter_W, here it is:

Nov 20, 2017 18:40:28.954 [0x7f624a0d7700] DEBUG - MDE: The Fifth Element (1997): Direct Play is disabled
Nov 20, 2017 18:40:28.954 [0x7f624a0d7700] DEBUG - MDE: The Fifth Element (1997): media must be transcoded in order to use the hls protocol
Nov 20, 2017 18:40:28.954 [0x7f624a0d7700] DEBUG - MDE: The Fifth Element (1997): no direct play video profile exists for http/mkv/hevc
Nov 20, 2017 18:40:28.954 [0x7f624a0d7700] DEBUG - MDE: The Fifth Element (1997): no direct play video profile exists for http/mkv/hevc/truehd
Nov 20, 2017 18:40:28.954 [0x7f624a0d7700] DEBUG - MDE: The Fifth Element (1997): no direct play video profile exists for http/mkv/hevc/ac3
Nov 20, 2017 18:40:28.955 [0x7f624a0d7700] DEBUG - The Fifth Element - video.width limitation applies: 3840 > 1920
Nov 20, 2017 18:40:28.955 [0x7f624a0d7700] DEBUG - MDE: The Fifth Element (1997): no remuxable profile found, so video stream will be transcoded
Nov 20, 2017 18:40:28.955 [0x7f624a0d7700] DEBUG - Codecs: testing h264_qsv (encoder)
Nov 20, 2017 18:40:28.956 [0x7f624a0d7700] DEBUG - Codecs: hardware transcoding: testing API qsv
Nov 20, 2017 18:40:28.961 [0x7f624a0d7700] DEBUG - [FFMPEG] - Format 0x32315659 -> yuv420p.
Nov 20, 2017 18:40:28.961 [0x7f624a0d7700] DEBUG - [FFMPEG] - Format 0x30323449 -> unknown.
Nov 20, 2017 18:40:28.961 [0x7f624a0d7700] DEBUG - [FFMPEG] - Format 0x3231564e -> nv12.
Nov 20, 2017 18:40:28.961 [0x7f624a0d7700] DEBUG - [FFMPEG] - Format 0x32595559 -> yuyv422.
Nov 20, 2017 18:40:28.961 [0x7f624a0d7700] DEBUG - [FFMPEG] - Format 0x59565955 -> uyvy422.
Nov 20, 2017 18:40:28.961 [0x7f624a0d7700] DEBUG - [FFMPEG] - Format 0x48323234 -> yuv422p.
Nov 20, 2017 18:40:28.961 [0x7f624a0d7700] DEBUG - [FFMPEG] - Format 0x58424752 -> rgb0.
Nov 20, 2017 18:40:28.961 [0x7f624a0d7700] DEBUG - [FFMPEG] - Format 0x58524742 -> bgr0.
Nov 20, 2017 18:40:28.962 [0x7f624a0d7700] DEBUG - [FFMPEG] - Format 0x30313050 -> p010le.
Nov 20, 2017 18:40:28.964 [0x7f624a0d7700] ERROR - [FFMPEG] - Error initializing an MFX session (error

Thanks for your help Peter.

@“smeg head”

Notice: 3840 > 1920

The television player app is not signalling it’s 4K capable. This is why it’s transcoding.

That’s strange, it can definitely play 4K video, in fact if I Optimise the file using Original Quality (on the Plex server), the resulting 4K file will play fine, unfortunately it has lost HDR information and is over 100GB.

Is there a way to manually specify the capabilities of my TV?

If the TV’s API isn’t telling the app it’s 4K capable, there’s nothing which can be done.

Chuck, thanks for helping me get to the bottom of this.

Disappointing that my TV manufacturer cannot properly report their own equipments capabilities… but may be an excuse to buy an Xbox One or PS4 Pro 4 :slight_smile: