Manually trigger "Deep Analysis" & MDE Bandwidth Inaccurate

Is it possible to manually trigger Deep Analysis?
https://support.plex.tv/articles/227715247-server-settings-bandwidth-and-transcoding-limits/

I’m trying to figure out why Plex would be stating the following while attempting to fit within a 4Mbps client profile for a file that is only 1990Kbps according to MediaInfo…

General
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 1.54 GiB
Duration                                 : 1 h 50 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 1 990 kb/s

PMS Media Decision Engine (MDE) Logs state:
Streaming Resource: Calculated bandwidth of 4179kbps exceeds bandwidth limit. Changing decision parameters provided by client to fit bandwidth limit of 4000kbps

I understand without PMS Deep Analysis ran yet that the Calculated bandwidth should be 2x Overall bit rate, but wouldn’t that only be 3980Kbps in this case?

Server Version#: 1.31.1.6733
Player Version#: 8.15 (5092) AVPlayer

A complete video file does not only have a video stream, but also an audio stream.
You have to add the bandwidth for the audio stream.

Is it possible to manually trigger Deep Analysis?
https://support.plex.tv/articles/227715247-server-settings-bandwidth-and-transcoding-limits/

@OttoKerner I was accounting for the full bandwidth based on what both Plex and MediaInfo agree on for the Overall Bitrate of Audio, Video, Subtitles, Chapters, and Container as you can see from the MediaInfo output in my OP.

Does Plex’s XML info agree with MediaInfo on the total bandwidth required by all tracks? Can you post the XML info here?

You can. There’s a pretty good description of it here:

It’s Windows-centric, but the principal applies to Linux as well. The caveat is that under Linux, you must run the command with an environment variable specifying your Plex Media Server data directory. On my own system, I use this (for example):

PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application\ Support/ /usr/lib/plexmediaserver/Plex\ Media\ Scanner --analyze-deeply --item 279 --force
1 Like

@pshanew Yes, MediaInfo and Plex’s XML output agree. Here you go:

<Media id="55107" duration="6640128" bitrate="1990" width="1280" height="720" aspectRatio="1.78" audioChannels="2" audioCodec="aac" videoCodec="h264" videoResolution="720" container="mp4" videoFrameRate="24p" optimizedForStreaming="0" audioProfile="he-aac" has64bitOffsets="0" videoProfile="high">
<Part accessible="1" exists="1" id="56109" key="/library/parts/56109/1678227090/file.mp4" duration="6640128" file="file.mp4" size="1651649244" audioProfile="he-aac" container="mp4" deepAnalysisVersion="6" has64bitOffsets="0" indexes="sd" optimizedForStreaming="0" requiredBandwidths="6673,4954,3074,3074,3074,3074,3074,3074" videoProfile="high">
<Stream id="166998" streamType="1" default="1" codec="h264" index="0" bitrate="1919" language="English" languageTag="en" languageCode="eng" anamorphic="0" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codedHeight="720" codedWidth="1280" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="23.976" hasScalingMatrix="0" height="720" level="40" pixelAspectRatio="1233:1232" profile="high" refFrames="8" requiredBandwidths="6602,4887,3011,3011,3011,3011,3011,3011" scanType="progressive" streamIdentifier="1" width="1280" displayTitle="720p (H.264)" extendedDisplayTitle="720p (H.264)">
</Stream>
<Stream id="166999" streamType="2" selected="1" default="1" codec="aac" index="1" channels="2" bitrate="66" language="English" languageTag="en" languageCode="eng" audioChannelLayout="stereo" profile="he-aac" requiredBandwidths="67,67,67,67,67,67,67,67" samplingRate="48000" streamIdentifier="2" displayTitle="English (HE-AAC Stereo)" extendedDisplayTitle="English (HE-AAC Stereo)">
</Stream>
<Stream id="167000" streamType="3" default="1" codec="mov_text" index="2" bitrate="0" language="English" languageTag="en" languageCode="eng" captions="1" hearingImpaired="1" requiredBandwidths="1,1,1,1,1,1,1,1" streamIdentifier="3" displayTitle="English SDH (MOV_TEXT)" extendedDisplayTitle="English SDH (MOV_TEXT)">
</Stream>
<Stream id="167001" streamType="3" codec="mov_text" index="3" bitrate="0" language="English" languageTag="en" languageCode="eng" requiredBandwidths="1,1,1,1,1,1,1,1" streamIdentifier="4" displayTitle="English (MOV_TEXT)" extendedDisplayTitle="English (MOV_TEXT)">
</Stream>
</Part>
</Media>

Thanks for the details on forcing Deep Analysis!

Weird. Since you posted originally and now, this file has had deep analysis run:

So, depending on the buffer size on the client device (can’t help you there) it could require as much as 6673 kbps (just for the video stream).

@OttoKerner can likely speak more to the buffer sizes and how they correlate to the values presented above.

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