Nas Synology 918+ 4K mkv buffering cpu 100% locally

Server Version#: Version 1.18.7.2457
Player Version#:Plex for Samsung 4.21.2
Hi, i have problem during watching 4K mkv video on my Samsung TV UE55MU7002 locally. Everything is wired with 1Gbit Lan, everything up to date. I don’t have plex pass but locally on 4K TV it doesn’t require it if i am correct. Cpu reachs almost 100%, video buffer each 4 second and is unwachable.

DS918+ should stream such a movie without any problems, especially locally. Maybe i misconfigured something wrongly.

I need your log files please.

  1. Verify DEBUG logging is enabled, VERBOSE is disabled (these are the defaults)
  2. Start Playback
  3. Let play 30 seconds
  4. Stop Playback
  5. Wait 30 seconds for logs to quiesce
  6. Settings - Server - Troubleshooting - Download Logs
  7. Attach the ZIP file.

Before even looking, are you using subtitles?

Since you don’t have a Plex Pass there will be no option to hardware assisted encoding/decoding of the content and is done in software.
DEBUG logs will reveal why your box probably gives it a try (and fails). Perhaps the CLIENT does not support X or Y and therefore transcoding is needed or something.

Hi,

attached the logs Plex Media Server Logs_2020-03-03_19-24-31.zip (2.6 MB)

i am using subtitles, there are to softcoded and one external in srt file

@maros_kacur_gmail_com

Thanks for the logs.

  1. I confirm it is transcoding.
  2. It is transcoding because the application has a 20 Mbps limit applied (check that in the settings?)
  3. As stated above, without a PlexPass, the CPU will be charged to do the work.
  4. At 32 Mbps input, transcoding down to 20 Mbps, is impossible for that CPU to perform in real-time. It will surge terribly.
Mar 03, 2020 19:22:50.568 [0x7fa51310a700] DEBUG - Scaled up video bitrate to 49111Kbps based on 1.500000x fudge factor.
Mar 03, 2020 19:22:50.568 [0x7fa51310a700] DEBUG - MDE: Selected protocol dash; container: mp4
Mar 03, 2020 19:22:50.568 [0x7fa51310a700] DEBUG - MDE: analyzing media item 14
Mar 03, 2020 19:22:50.568 [0x7fa51310a700] DEBUG - MDE: Terminator: Dark Fate (2019): Direct Play is disabled
Mar 03, 2020 19:22:50.568 [0x7fa51310a700] DEBUG - MDE: Terminator: Dark Fate (2019): media must be transcoded in order to use the dash protocol
Mar 03, 2020 19:22:50.568 [0x7fa51310a700] DEBUG - MDE: Terminator: Dark Fate (2019): no direct play video profile exists for http/mkv/h264/eac3
Mar 03, 2020 19:22:50.568 [0x7fa51310a700] DEBUG - Terminator: Dark Fate - video.bitrate limitation applies: 32741 > 20000
Mar 03, 2020 19:22:50.568 [0x7fa51310a700] DEBUG - Terminator: Dark Fate - video.bitrate limitation applies: 32741 > 20000
Mar 03, 2020 19:22:50.568 [0x7fa51310a700] DEBUG - MDE: Terminator: Dark Fate (2019): no remuxable profile found, so video stream will be transcoded
Mar 03, 2020 19:22:50.569 [0x7fa51310a700] DEBUG - Terminator: Dark Fate - video.bitrate limitation applies: 32741 > 20000
Mar 03, 2020 19:22:50.569 [0x7fa51310a700] DEBUG - MDE: Cannot direct stream video stream due to profile or setting limitations
Mar 03, 2020 19:22:50.569 [0x7fa51310a700] DEBUG - Scaled up video bitrate to 49111Kbps based on 1.500000x fudge factor.
Mar 03, 2020 19:22:50.569 [0x7fa51310a700] DEBUG - MDE: Cannot direct stream audio stream due to codec eac3 when profile only allows aac
Mar 03, 2020 19:22:50.569 [0x7fa51310a700] DEBUG - MDE: Terminator: Dark Fate (2019): selected media 0 / 14
Mar 03, 2020 19:22:50.569 [0x7fa51310a700] DEBUG - Streaming Resource: Session 0x7fa4d401ba40:hf9t24dzuy3tbj4iobm1eclg changed transcode slot usage to used.  Used slots is now 1
Mar 03, 2020 19:22:50.569 [0x7fa51310a700] DEBUG - Streaming Resource: Reached Decision id=14 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=14 part=(id=790 decision=transcode container=mp4 protocol=dash streams=(Video=(id=3227 decision=transcode bitrate=20000 encoder=libx264 width=3840 height=1600) Audio=(id=3228 decision=transcode bitrate=768 encoder=aac channels=6 rate=48000))))
Mar 03, 2020 19:22:50.571 [0x7fa528f2c700] DEBUG - Completed: [192.168.0.177:47962] 200 GET /video/:/transcode/universal/decision

Your choices are:

  1. Check the app setting - See if you can remove the video bitrate limit. It will buy you SOME headroom
  2. Consider a PlexPass. It will enable the hardware capability in the CPU’s video processor and offload everything the CPU itself is currently unable to perform.

If you were to use a PlexPass to play this:

  1. It would transcode the audio – trivial
  2. You would see somewhere around 15% CPU utilization during playback.
1 Like

Hi,

I did not find any limits set. Where it should be ?.A streng for me is that when i play another mkv video below, it has no limit and use direct play. Both formats according to docu Samsung TV are supported.

That display tells me, whatever you’re playing on, it can accept DTS-HD MA 7.1, and the MKV file format directly – This is DirectPlay.

We’re now at the point where screenshots are not enough.

  1. Hover over each media item you played
  2. Expose the ellipsis (as you did) -> Get Info
  3. Now View XML
  4. Using this format, Copy & paste from the top down through the </Media> marker

``` (backwards tick mark)
Paste XML here
</Media>
```

I would also like to see the logs from the other playback.

Are they playing to the same device?

Hi,

Yes, everything is played on Samsung TV UE55MU7002
Movie log & xml info played directly without problem

Plex Media Server Logs_2020-03-03_22-25-41.zip (3.0 MB)

<Media id="3" duration="10871552" bitrate="48483" width="3840" height="2160" aspectRatio="1.78" audioChannels="8" audioCodec="truehd" videoCodec="hevc" videoResolution="4k" container="mkv" videoFrameRate="24p" videoProfile="main 10">
<Part accessible="1" exists="1" id="784" key="/library/parts/784/1579651770/file.mkv" duration="10871552" file="/volume1/video/Filmy 4K/Avengers Endgame 2019 2160p/Avengers Endgame 2019 2160p.cz.mkv" size="65904060488" container="mkv" deepAnalysisVersion="4" hasThumbnail="1" requiredBandwidths="2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,2147483647" videoProfile="main 10">
<Stream id="3156" streamType="1" codec="hevc" index="0" bitrate="36000" language="English" languageCode="eng" bitDepth="10" chromaSubsampling="4:2:0" codedHeight="2160" codedWidth="3840" colorPrimaries="bt2020" colorRange="tv" colorSpace="bt2020nc" colorTrc="smpte2084" frameRate="23.976" height="2160" level="153" profile="main 10" refFrames="1" requiredBandwidths="96209,92403,86809,77743,68693,59664,47169,44448" title="Avengers.Endgame.2019.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT" width="3840" displayTitle="4K (HEVC Main 10 HDR)"/>
<Stream id="3157" streamType="2" default="1" codec="truehd" index="1" channels="8" bitrate="4777" language="English" languageCode="eng" audioChannelLayout="7.1" bitDepth="24" requiredBandwidths="6571,6295,5757,5546,5379,5226,4809,4782" samplingRate="48000" title="Avengers.Endgame.2019.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT" displayTitle="English (TRUEHD 7.1)"/>
<Stream id="3158" streamType="2" selected="1" codec="dca" index="2" channels="8" bitrate="4416" language="English" languageCode="eng" audioChannelLayout="7.1" bitDepth="24" profile="ma" requiredBandwidths="5092,4854,4684,4584,4526,4468,4416,4416" samplingRate="48000" title="Avengers.Endgame.2019.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT" displayTitle="English (DTS-HD MA 7.1)"/>
<Stream id="3159" streamType="2" codec="ac3" index="3" channels="6" bitrate="640" language="English" languageCode="eng" audioChannelLayout="5.1(side)" requiredBandwidths="640,640,640,640,640,640,640,640" samplingRate="48000" title="Avengers.Endgame.2019.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT" displayTitle="English (AC3 5.1)"/>
<Stream id="3160" streamType="2" codec="ac3" index="4" channels="2" bitrate="320" language="English" languageCode="eng" audioChannelLayout="stereo" requiredBandwidths="320,320,320,320,320,320,320,320" samplingRate="48000" title="Avengers.Endgame.2019.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT" displayTitle="English (AC3 Stereo)"/>
<Stream id="3161" streamType="2" codec="ac3" index="5" channels="6" bitrate="640" language="Français" languageCode="fre" audioChannelLayout="5.1(side)" requiredBandwidths="640,640,640,640,640,640,640,640" samplingRate="48000" title="Avengers.Endgame.2019.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT" displayTitle="Français (AC3 5.1)"/>
<Stream id="3162" streamType="2" codec="eac3" index="6" channels="6" bitrate="1024" language="Español" languageCode="spa" audioChannelLayout="5.1(side)" requiredBandwidths="1024,1024,1024,1024,1024,1024,1024,1024" samplingRate="48000" title="Avengers.Endgame.2019.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT" displayTitle="Español (EAC3 5.1)"/>
<Stream id="3163" streamType="2" codec="ac3" index="7" channels="6" bitrate="576" language="Español" languageCode="spa" audioChannelLayout="5.1(side)" requiredBandwidths="576,576,576,576,576,576,576,576" samplingRate="48000" title="Avengers.Endgame.2019.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT" displayTitle="Español (AC3 5.1)"/>
<Stream id="3164" streamType="3" default="1" codec="srt" index="8" bitrate="0" language="English" languageCode="eng" requiredBandwidths="1,1,1,1,1,1,1,1" title="English-SRT" displayTitle="English (SRT)"/>
<Stream id="3165" streamType="3" codec="srt" index="9" bitrate="0" language="English" languageCode="eng" requiredBandwidths="1,1,1,1,1,1,1,1" title="English-SDH-SRT" displayTitle="English (SRT)"/>
<Stream id="3166" streamType="3" codec="pgs" index="10" bitrate="34" language="English" languageCode="eng" headerCompression="1" requiredBandwidths="64,64,64,64,64,64,64,64" title="English-PGS" displayTitle="English (PGS)"/>
<Stream id="3167" streamType="3" codec="pgs" index="11" bitrate="27" language="Français" languageCode="fre" headerCompression="1" requiredBandwidths="51,51,51,51,51,51,51,51" title="French-PGS" displayTitle="Français (PGS)"/>
<Stream id="3168" streamType="3" codec="pgs" index="12" bitrate="29" language="Español" languageCode="spa" headerCompression="1" requiredBandwidths="60,60,60,60,60,60,60,60" title="Spanish-PGS" displayTitle="Español (PGS)"/>
<Stream id="3169" streamType="3" codec="pgs" index="13" bitrate="1" language="Français" languageCode="fre" headerCompression="1" requiredBandwidths="28,28,28,28,28,28,28,28" title="French-FORCED-PGS" displayTitle="Français (PGS)"/>
<Stream id="3170" streamType="3" codec="pgs" index="14" bitrate="0" language="Español" languageCode="spa" headerCompression="1" requiredBandwidths="21,21,21,21,21,21,21,21" title="Spanish-FORCED-PGS" displayTitle="Español (PGS)"/>
<Stream id="6273" key="/library/streams/6273" streamType="3" codec="srt" format="srt" displayTitle="Unknown (SRT External)"/>
</Part>
</Media>

Transcoded movie xml

<Media id="14" duration="7686208" bitrate="33381" width="3840" height="1600" aspectRatio="2.35" audioChannels="6" audioCodec="eac3" videoCodec="h264" videoResolution="4k" container="mkv" videoFrameRate="24p" videoProfile="high">
<Part accessible="1" exists="1" id="790" key="/library/parts/790/1579644573/file.mkv" duration="7686208" file="/volume1/video/Filmy 4K/Terminator Dark Fate 2019 2160p/Terminator Dark Fate 2019 2160p.mkv" size="32073967827" container="mkv" deepAnalysisVersion="4" requiredBandwidths="89669,83008,69157,51518,50100,50100,50100,50100" videoProfile="high">
<Stream id="3227" streamType="1" default="1" codec="h264" index="0" bitrate="32741" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codedHeight="1600" codedWidth="3840" frameRate="23.976" hasScalingMatrix="0" height="1600" level="51" profile="high" refFrames="7" requiredBandwidths="89027,82369,68516,50878,49494,49494,49494,49494" scanType="progressive" width="3840" displayTitle="4K (H.264)"/>
<Stream id="3228" streamType="2" selected="1" default="1" codec="eac3" index="1" channels="6" bitrate="640" language="English" languageCode="eng" audioChannelLayout="5.1(side)" requiredBandwidths="640,640,640,640,640,640,640,640" samplingRate="48000" displayTitle="English (EAC3 5.1)"/>
<Stream id="3229" streamType="3" codec="srt" index="2" bitrate="0" language="English" languageCode="eng" requiredBandwidths="1,1,1,1,1,1,1,1" displayTitle="English (SRT)"/>
<Stream id="3230" streamType="3" codec="srt" index="3" bitrate="0" language="English" languageCode="eng" requiredBandwidths="1,1,1,1,1,1,1,1" title="SDH" displayTitle="English (SRT)"/>
<Stream id="4965" key="/library/streams/4965" streamType="3" codec="srt" format="srt" displayTitle="Unknown (SRT External)"/>
</Part>
</Media>

Thank you.

As I suspected, the H.264 title is not encoded correctly.

  1. Reference Frames > 5 (it has 7)
  2. Video Profile = “High” ( Profile 4.0 = 20 Mbps maximum)

PMS is seeing the excessive reference frames and transcoding. It’s using the given Video Profile (“High”) to encode to 20 Mbps.

The DirectPlay video is “main 10” (which is video profile 5.1 or 5.2 at up to 150 Mbps) but does not have more than 5 reference frame encoding and can therefore DirectPlay.

There’s a current bug on Samsung clients with the 20 Mbps limit which may be forcing the transcode here.

See Transcoding problem

Hi ,

Thanks for info. Hopefully it will be fix soon

well yes – assuming your issues are caused by the current 20Mbps Samsung transcoding problem and not because of bad encoding of your mkv.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.