Server Version#: 1.15.3.835 and 1.15.3.858
Player Version#: Web 3.93.1
I’m seeing weird CPU usage on the server when playing videos from the web client. the “Plex Media Server” process will peg at 100% (seems to be using a single core always) when streaming, both when it uses Direct Stream and Transcoding, although the Server process only peaks out when it is throttling the transcode.
Downgrading to 1.15.2 mitigates the problem, which I find weird. Trying out other clients, like plex media player (both direct play, direct stream and transcode) does not give the same behavior, which makes me believe this is a 1.15.3 bug. The web client doesn’t seem to be updated in between these.
In general it seems like the Plex Media Server process is using less CPU while streaming in 1.15.2 than 1.15.3, even during direct play, but it’s a bit hard to tell.
I turned on debug logging, and looked what was logged during playback, but neither the logging frequency or the content stood out.
Some of the corrections recently fixed errors in analysis. Your full ZIP file logs (DEBUG, not VERBOSE) would be needed to see if it’s catching up on that work.
I checked the scanner logs and they showed no activity either. This also correlate 1:1 with playback, if I stop playback, the cpu usage drops to nothing.
It’s also weird that it only seem to affect the web player, any other device doesn’t seem to cause that kind of cpu usage.
Hi, I’m encountering the same error here. Can’t figure out why. I just installed the update, which doesn’t seem to improve anything.
Here is a htop of my server when I’m watching a video from the Web Client (1080p, 15Mbps) : CPU usage around 250/350%, video buffering every 20 seconds.
EDIT : Precision, changing the subtitles burning/disabling the subtitles doesnt improve anything
Hardware cannot process subtitles and subtitles are single-threaded operation.
Merging an image-based (PGS / VOBSUB / etc) subtitle into a stream will consume an entire CPU thread.
Get the XML (Hover over item - Get Info - View XML)
Not sure what you mean by this. You want the XML from the Plex Transcoder Statistics.log? As I’ve said, it’s not the Plex Transcoder executable using CPU, it’s the Plex Media Server executable.
This definitely has to do with subtitles conversion. Tautulli says “Transcode (SRT -> ASS)” but the plex dashboard says nothing about it. But that makes the Media Server executable eat a full core it looks like.
Even weirder, it’s enough if I collapse the video window in plex desktop, after a few seconds it settles down, until I open up the video again, even though tautulli still says it’s converting the subtitles.
Haven’t found that thread before, but I do have the same problem, and it only happen when I’m using subs, I’ll grab those logs in a sec, 100% (aka 1 full core) for just subtitle transcoding (not burning) is just too much.
EDIT: Just did exactly what ChuckPA said, but the forum only allow up to 40.000 characters, since it was more than it, I simply uploaded to pastebin.
EDIT: I think that I did it correctly now. Note: I’m using the lastest Plex Pass version available (docker), this bugs occur no matter if I use my own web player or app.plex.tv.
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="3" librarySectionTitle="Séries" librarySectionUUID="c848dfa9-4f1e-4eb5-857a-d4a5b6f5f453" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1554360427">
<Video ratingKey="15910" key="/library/metadata/15910" parentRatingKey="15906" grandparentRatingKey="15851" guid="com.plexapp.agents.thetvdb://79169/2/4?lang=en" librarySectionTitle="Séries" librarySectionID="3" librarySectionKey="/library/sections/3" type="episode" title="The Phone Message" titleSort="Phone Message" grandparentKey="/library/metadata/15851" parentKey="/library/metadata/15906" grandparentTitle="Seinfeld" parentTitle="Season 2" contentRating="TV-PG" summary="George blows an invitation upstairs with his latest girlfriend and then when he tries to make restitution he leaves progressively nastier messages on her answering machine. He gets the chance to prevent her from hearing her messages by having Jerry switch the tape out of her machine, while he distracts her. Jerry and his girlfriend have a disagreement about a TV commercial for Dockers, and his telling his friends about their conflict." index="4" parentIndex="2" rating="7.3" viewOffset="584000" lastViewedAt="1554687551" year="1991" thumb="/library/metadata/15910/thumb/1554125774" art="/library/metadata/15851/art/1554125787" parentThumb="/library/metadata/15906/thumb/1554125787" grandparentThumb="/library/metadata/15851/thumb/1554125787" grandparentArt="/library/metadata/15851/art/1554125787" grandparentTheme="/library/metadata/15851/theme/1554125787" duration="1377501" originallyAvailableAt="1991-02-13" addedAt="1554120518" updatedAt="1554125774" chapterSource="media">
<Media id="30956" duration="1377501" bitrate="14693" width="1920" height="1080" aspectRatio="1.78" audioChannels="2" audioCodec="eac3" videoCodec="h264" videoResolution="1080" container="mkv" videoFrameRate="24p" videoProfile="high">
<Part accessible="1" exists="1" id="33950" key="/library/parts/33950/1497989863/file.mkv" duration="1377501" file="/data/TV/Seinfeld/Season 02/Seinfeld.S02E04.The.Phone.Message.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTb.mkv" size="2530005771" container="mkv" videoProfile="high">
<Stream id="109037" streamType="1" default="1" codec="h264" index="0" bitrate="14469" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="23.976" hasScalingMatrix="0" height="1080" level="40" profile="high" refFrames="4" scanType="progressive" width="1920" displayTitle="1080p (H.264)" />
<Stream id="109038" streamType="2" selected="1" default="1" codec="eac3" index="1" channels="2" bitrate="224" language="English" languageCode="eng" audioChannelLayout="stereo" samplingRate="48000" displayTitle="English (EAC3 Stereo)" />
<Stream id="110318" key="/library/streams/110318" streamType="3" selected="1" codec="srt" language="Português" languageCode="por" format="srt" displayTitle="Português (SRT External)" />
</Part>
</Media>
<Director id="55825" filter="director=55825" tag="Tom Cherones" />
<Writer id="55823" filter="writer=55823" tag="Larry David" />
<Writer id="55822" filter="writer=55822" tag="Jerry Seinfeld" />
<Extras size="0">
</Extras>
</Video>
</MediaContainer>
Moderator Edit
Log files removed
EDIT: Can you please tell me once you download the logs? I don’t feel confortable letting it widely available online.
It’s Docker. I do not know docker well. Docker hides the real host resources.
FFMPEG is not seeing any hardware acceleration which it won’t unless correctly done and supported by the CPU
Also, I see SRT subtitles in the stream. Are the subtitles being used? If so, SRT are text. If the player is set to ALWAYS BURN, the CPU will burn them in using a single thread at 100% to burn those subtitles.