Incorrect Bandwidth randomly decides its 10500Mbps

From /status/sessions i will randomly have a friend that shows 10500Mbps. This has been going on for a few months now. Its not just one person and its not consistent. Has anyone else seen this bug in the bandwidth reporting?

<Session id="lmlpx9pf00nlngpwqd1zi7y8" bandwidth="10500000" location="wan" />

@dirtycajunrice that value is bits per second :slight_smile:

10500000 bps is 10.5 Mbps

@chrisallen If it was bits per second that would be great
 but its not. I just played a movie (direct Stream) as an example with

Bitrate 28099 kbps 

And my response was:

<Session id="wv5zh9cke6mg5kt00fpholap" bandwidth="50398" location="lan" />

Which, if it was bits per second would mean im streaming at .05Mbps. Which we know is not the case. So moving the decimal over 3 to Kbps to get an accurate 50.4 Mbps on the above, that puts us at 10.5Gbps on the issue posted in the OP.

Either im missing an xml response where it does a numerical conversion of bandwidth based on a minimum # of numbers in the string or its a bug :confused:

Now that I think about it
 this probably REALLY messes up streaming brain, max upload speed, etc as well

i noticied Tautulli reporting that 10500 Mbps figure today thought it was odd. PMS 1.12.1.4871

<Session id="j986n7vekjnylkn7vxsmdc2x" bandwidth="10500000" location="lan"/>

@dan-the-man- Yeah. This is what originally tipped me off months ago and i just assumed it would be looked at. After it hadnt for a while I decided to take up the cause myself haha.

@ChuckPA Any thoughts Oh knowledgeable one? :#

Tautulli is not my area of expertise nor have I used it. I do know it is undergoing major update (I saw some mention of ‘final beta’) somewhere in the forum so it is potentially in error here.

Chris Allen is correct.

I additionally think you’re getting tripped up in some ways because internal units of measure aren’t always identified.
Add to that, average versus peak bit rate. PMS is aware of both. Streaming Brain also knows the ‘RequiredBandwidths’ for different playback resolutions

@ChuckPA So the above tags are directly from the Plex WebAPI getting those (With Tautulli/PlexPy completely out of the picture). If the units of measure are changing
 why is it literally 10500000 EXACTLY every time it happens. Not a single other call is exact with that many zeros. All the rest are down to a number eg 2543223 etc. Also, if the units are changing and are being presented with an api call for consumption
 do you not feel it would be due diligence to provide the unit that is being used with the metric if the metric is changing?

Slow down please? You’re all psyched and into this and I’m coming into it cold because you pinged me. :slight_smile:

May I have the XML for the video in question?
After that, may I have the the corresponding information you see which is causing concern?

XD i get excited.

So for the xml, i can give you any video you want but its not for a specific video or device or user. Its random (multiple times a day). What i had posted prior was the response from /status/sessions endpoint when it happened yesterday. (Only the speed. I can post the entire endpoint results if you want when it happens today). To refresh it down here in the post:

This is a normal response for a 1080p BluRay Quality video from the aforementioned endpoint:

<Session id="wv5zh9cke6mg5kt00fpholap" bandwidth="50398" location="lan" />

This is the response when any of the videos (Movie or TV, happens on both) trip the issue:

<Session id="lmlpx9pf00nlngpwqd1zi7y8" bandwidth="10500000" location="wan" />

The rounded exactness, the quantity of numbers, and the frequency in which it happens is what makes me certain it is not intentional

Hover over item -> Get Info -> View XML . Copy/paste into reply here, Highlight XML, Format with Code paragraph formatting from the comment tool bar if you please?

Here is all the xml i can give you surrounding the issue:

Stream of TV show episode when metric shows 10500000

<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="1">
<Video addedAt="1520532631" art="/library/metadata/23324/art/1520533637" contentRating="TV-Y7" duration="1389759" grandparentArt="/library/metadata/23324/art/1520533637" grandparentKey="/library/metadata/23324" grandparentRatingKey="23324" grandparentTheme="/library/metadata/23324/theme/1520533637" grandparentThumb="/library/metadata/23324/thumb/1520533637" grandparentTitle="SpongeBob SquarePants" guid="com.plexapp.agents.thetvdb://75886/10/29?lang=en" index="29" key="/library/metadata/23504" librarySectionID="3" librarySectionKey="/library/sections/3" librarySectionTitle="TV Shows" originallyAvailableAt="2015-09-07" parentIndex="10" parentKey="/library/metadata/23325" parentRatingKey="23325" parentThumb="/library/metadata/23325/thumb/1520533637" parentTitle="Season 10" ratingKey="23504" sessionKey="33" summary="While trying to order a special sandwich, Patrick gets swept up in the fast-paced world of business." thumb="/library/metadata/23504/thumb/1520533629" title="The Executive Treatment" titleSort="Executive Treatment" type="episode" updatedAt="1520533629" viewOffset="599000" year="2015">
<Media audioProfile="lc" id="20026" videoProfile="main" audioChannels="2" audioCodec="aac" bitrate="2124" container="mp4" duration="1389759" height="720" optimizedForStreaming="1" protocol="dash" videoCodec="h264" videoFrameRate="24p" videoResolution="720p" width="1280" selected="1">
<Part audioProfile="lc" id="20029" videoProfile="main" bitrate="2124" container="mp4" duration="1389759" height="720" optimizedForStreaming="1" protocol="dash" width="1280" decision="transcode" selected="1">
<Stream bitrate="2124" codec="h264" colorPrimaries="bt709" colorTrc="bt709" default="1" frameRate="23.975999999999999" height="720" id="65131" streamType="1" width="1280" decision="transcode" location="segments-video" />
<Stream bitrateMode="cbr" channels="2" codec="aac" default="1" id="65132" language="English" languageCode="eng" selected="1" streamType="2" decision="copy" location="segments-audio" />
</Part>
</Media>
<User id="14854592" thumb="https://plex.tv/users/redacted" title="redacted" />
<Player address="redacted" device="OSX" machineIdentifier="55p4pycyeluq6sa5ynayx8og" model="" platform="Safari" platformVersion="11.0" product="Plex Web" profile="Web" remotePublicAddress="redacted" state="playing" title="Safari" vendor="" version="3.41.1" local="0" userID="14854592" />
<Session id="lmlpx9pf00nlngpwqd1zi7y8" bandwidth="10500000" location="wan" />
<TranscodeSession key="/transcode/sessions/eh2q1ss5vdpoui1jr50dnzlg" throttled="1" complete="0" progress="53.299999237060547" speed="0" duration="1389759" remaining="4483" context="streaming" sourceVideoCodec="hevc" sourceAudioCodec="aac" videoDecision="transcode" audioDecision="copy" protocol="dash" container="mp4" videoCodec="h264" audioCodec="aac" audioChannels="2" transcodeHwRequested="0" timeStamp="1521059509.9721768" maxOffsetAvailable="738.02969636302805" minOffsetAvailable="1" />

Regular XML of the exact same episode pulled.

<?xml version="1.0" encoding="UTF-8"?>

-<MediaContainer mediaTagVersion="1520962781" mediaTagPrefix="/system/bundle/media/flags/" librarySectionUUID="e2f34eca-1d83-4992-82ba-a22a83158fd5" librarySectionTitle="TV Shows" librarySectionID="3" identifier="com.plexapp.plugins.library" allowSync="1" size="1">


-<Video title="The Executive Treatment" librarySectionTitle="TV Shows" librarySectionID="3" updatedAt="1520533629" addedAt="1520532631" originallyAvailableAt="2015-09-07" duration="1389759" grandparentTheme="/library/metadata/23324/theme/1520533637" grandparentArt="/library/metadata/23324/art/1520533637" grandparentThumb="/library/metadata/23324/thumb/1520533637" parentThumb="/library/metadata/23325/thumb/1520533637" art="/library/metadata/23324/art/1520533637" thumb="/library/metadata/23504/thumb/1520533629" year="2015" lastViewedAt="1520661890" viewCount="1" parentIndex="10" index="29" summary="While trying to order a special sandwich, Patrick gets swept up in the fast-paced world of business." contentRating="TV-Y7" parentTitle="Season 10" grandparentTitle="SpongeBob SquarePants" parentKey="/library/metadata/23325" grandparentKey="/library/metadata/23324" titleSort="Executive Treatment" type="episode" librarySectionKey="/library/sections/3" guid="com.plexapp.agents.thetvdb://75886/10/29?lang=en" grandparentRatingKey="23324" parentRatingKey="23325" key="/library/metadata/23504" ratingKey="23504">


-<Media duration="1389759" videoProfile="main" audioProfile="lc" displayOffset="50" videoFrameRate="24p" container="mkv" videoCodec="hevc" audioCodec="aac" audioChannels="2" aspectRatio="1.78" height="720" width="1280" bitrate="472" id="20026" videoResolution="720">


-<Part size="81969798" duration="1389759" key="/library/parts/20029/1520532042/file.mkv" videoProfile="main" audioProfile="lc" container="mkv" id="20029" file="/tv/SpongeBob.SquarePants/Season.10/SpongeBob.SquarePants.S10E28E29.Squid.Plus.One.+.The.Executive.Treatment.HDTV-720p.mkv" exists="1" accessible="1">

<Stream index="0" height="720" width="1280" bitrate="472" id="65131" refFrames="1" profile="main" level="93" frameRate="23.976" colorTrc="bt709" colorSpace="bt709" colorRange="tv" colorPrimaries="bt709" chromaSubsampling="4:2:0" bitDepth="8" codec="hevc" default="1" streamType="1"/>

<Stream title="Stereo" language="English" index="1" id="65132" profile="lc" codec="aac" default="1" streamType="2" samplingRate="48000" audioChannelLayout="stereo" languageCode="eng" channels="2" selected="1"/>

</Part>

</Media>

<Extras size="0"> </Extras>

</Video>

</MediaContainer>

The above (I believe) gives all the regular xml information plus the stream information. As a side note, looks like as of 12.1 I cannot see xml on firefox
 but could on IE. Odd.

Please,

I don’t want a comparison of broken vs good. Too vague.

  1. Displayed data/information captured which you say is incorrect when playing item “X”
  2. XML of item X.

This is an Apples → Apples comparison. Please leave the oranges in the basket for a few minutes longer :slight_smile:

Roger that. I edited the above comment to only contain the episode both the XML by itself and the same episode’s XML when streaming.

If the 10500000 is coming from Tautulli, it’s wrong.

Respectfully:

<Media duration="1389759" videoProfile="main" audioProfile="lc" displayOffset="50" videoFrameRate="24p" container="mkv" videoCodec="hevc" audioCodec="aac" audioChannels="2" aspectRatio="1.78" height="720" width="1280" bitrate="472" id="20026" videoResolution="720">

HEVC 720p ? Huh?

You left out the Plex XML (“Regular XML” ?) for the video component showing me its source encoding.
The only information provided is:

-<Media duration="1389759" videoProfile="main" audioProfile="lc" displayOffset="50" videoFrameRate="24p" container="mkv" videoCodec="hevc" audioCodec="aac" audioChannels="2" aspectRatio="1.78" height="720" width="1280" bitrate="472" id="20026" videoResolution="720">

which is incomplete.

Please go back to the item, do the "View XML’ , copying all the media parts. You can leave off all the superfluous metadata stuff at the bottom which references cast and/or extras.

This all having been said and based on the data I see here, which is incomplete, Tautulli is broken.

@ChuckPA Respectfully, Tautulli is not broken. Tautulli is just retrieving the bandwidth value in the <Session> key at the /status/sessions endpoint.

Please tell me what units this bandwidth is reported in (kbps? Mbps?):

<Session id="lmlpx9pf00nlngpwqd1zi7y8" bandwidth="10500000" location="wan" />

Please tell me what units this bandwidth is reported in (kbps? Mbps?)

<Session id="wv5zh9cke6mg5kt00fpholap" bandwidth="50398" location="lan" />

None of this is from Tautulli. This is all directly from plex.


This is literally all the output it gave, copied word for word. (for both parts)

So Jonny worked with me on the side, he had me put includeBandwidths=1 to the XML request, and the XML data does not show deepAnalysisVersion or requiredBandwidths. He had me try analyzing in the UI and also removing/re-adding the file.

after all of that it still isnt showing bandwidth info. So the thought is that plex defaults to 10500000 when it doesnt have a streaming brain analysis. also
 odd that it cant analyze some files with no debug log issues about it.

Just in case you guys missed it, the 1050000 number shows WAN whereas the standard numbers are showing LAN. Just pointing that out.