# Manually trigger "Deep Analysis" & MDE Bandwidth Inaccurate

**URL:** <https://forums.plex.tv/t/manually-trigger-deep-analysis-mde-bandwidth-inaccurate/833743>\
**Category:** Metadata & Adding Files\
**Tags:** server-linux, apple-tv, media-optimizer\
**Created:** [March 7, 2023, 10:46pm UTC](https://forums.plex.tv/t/manually-trigger-deep-analysis-mde-bandwidth-inaccurate/833743 "2023-03-07T22:46:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![speeddemon](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/speeddemon/32/158554_2.png) [@speeddemon](https://forums.plex.tv/u/speeddemon)\
**Post date:** [March 7, 2023, 10:46pm UTC](https://forums.plex.tv/t/manually-trigger-deep-analysis-mde-bandwidth-inaccurate/833743/1 "2023-03-07T22:46:29Z")

</div>

Is it possible to manually trigger `Deep Analysis`?  
[https://support.plex.tv/articles/227715247-server-settings-bandwidth-and-transcoding-limits/](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…

```auto
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

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [March 8, 2023, 7:28am UTC](https://forums.plex.tv/t/manually-trigger-deep-analysis-mde-bandwidth-inaccurate/833743/2 "2023-03-08T07:28:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![speeddemon](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/speeddemon/32/158554_2.png) [@speeddemon](https://forums.plex.tv/u/speeddemon)\
**Post date:** [March 8, 2023, 9:33am UTC](https://forums.plex.tv/t/manually-trigger-deep-analysis-mde-bandwidth-inaccurate/833743/3 "2023-03-08T09:33:19Z")

</div>

Is it possible to manually trigger `Deep Analysis`?  
[https://support.plex.tv/articles/227715247-server-settings-bandwidth-and-transcoding-limits/](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.

---

<div class="post-metadata">

**Author:** ![pshanew](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/pshanew/32/160555_2.png) [@pshanew](https://forums.plex.tv/u/pshanew)\
**Post date:** [March 8, 2023, 11:12pm UTC](https://forums.plex.tv/t/manually-trigger-deep-analysis-mde-bandwidth-inaccurate/833743/4 "2023-03-08T23:12:07Z")

</div>

Does Plex’s [XML info](https://support.plex.tv/hc/en-us/articles/201998867-Investigate-Media-Information-and-Formats) agree with MediaInfo on the total bandwidth required by all tracks? Can you post the [XML info](https://support.plex.tv/hc/en-us/articles/201998867-Investigate-Media-Information-and-Formats) here?

> [@speeddemon](#):
>
> Is it possible to manually trigger `Deep Analysis`?

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

> [@Can i force deep scan?](https://forums.plex.tv/t/can-i-force-deep-scan/833598/6):
>
> You can initiate a deep scan via command line like this, however do bear in mind this is for Windows… Mac’s and Linux might be different… Deep Analysis: "C:\Program Files\Plex\Plex Media Server\Plex Media Scanner.exe" --analyze-deeply --item RatingKeys --log-file-suffix " Manual Deep Analysis" Credit Detection: "C:\Program Files\Plex\Plex Media Server\Plex Media Scanner.exe" --analyze --server-action credits --item RatingKeys --log-file-suffix " Manual Credits Analysis" Chapter Generation: …

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):

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

```

---

<div class="post-metadata">

**Author:** ![speeddemon](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/speeddemon/32/158554_2.png) [@speeddemon](https://forums.plex.tv/u/speeddemon)\
**Post date:** [March 8, 2023, 11:15pm UTC](https://forums.plex.tv/t/manually-trigger-deep-analysis-mde-bandwidth-inaccurate/833743/5 "2023-03-08T23:15:12Z")

</div>

> [@pshanew](#):
>
> Does Plex’s [XML info](https://support.plex.tv/hc/en-us/articles/201998867-Investigate-Media-Information-and-Formats) agree with MediaInfo on the total bandwidth required by all tracks? Can you post the [XML info](https://support.plex.tv/hc/en-us/articles/201998867-Investigate-Media-Information-and-Formats) here?

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

```auto
<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!

---

<div class="post-metadata">

**Author:** ![pshanew](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/pshanew/32/160555_2.png) [@pshanew](https://forums.plex.tv/u/pshanew)\
**Post date:** [March 8, 2023, 11:28pm UTC](https://forums.plex.tv/t/manually-trigger-deep-analysis-mde-bandwidth-inaccurate/833743/6 "2023-03-08T23:28:46Z")

</div>

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

> [@speeddemon](#):
>
> `deepAnalysisVersion="6"`

> [@speeddemon](#):
>
> `requiredBandwidths="6673,4954,3074,3074,3074,3074,3074,3074"`

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.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [June 6, 2023, 11:29pm UTC](https://forums.plex.tv/t/manually-trigger-deep-analysis-mde-bandwidth-inaccurate/833743/7 "2023-06-06T23:29:33Z")

</div>

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