Android TV and Android Mobile will not play some shows/movies if "Limit remote stream bitrate" is enabled

Server Version#: 1.18.2.2041
Player Version#: 7.25
OS: Ubuntu 18.04 LTS

I should say. this is not a new issue to me. I’ve experienced it since I got my Philips android tv at the beginning of october.

My server is not connected to my local network. When I enable the remote stream bitrate setting to 12mbps my android tv will say “Playback has stopped because the connection to the Plex Media Server has been lost…". Only some shows will play fine.

When I disable remote bitrate limit, it will play fine.

1 Like

Cheers mate your suggestion worked brilliantly.

How can I tell if Plex is aware of this issue? My friend has a Sharp brand Android TV and he has this issue as well.

This issue is still present in Plex for Android 7.27.0

This is what happens when I try to play this file when I have limit bitrate enabled 10 mbps:
Media

Duration 1:03:06
Bitrate 1457 kbps
Width 1920
Height 1080
Aspect Ratio 1.78
Video Resolution 1080p
Container MKV
Video Frame Rate 24p
Audio Profile he-aac
Video Profile main 10

Part

Duration 1:03:06
File Watchmen.S01E01.It's.Summer.and.Were.Running.Out.of.Ice.1080p.10bit.WEBRip.6CH.x265.HEVC-PSA.mkv
Size 658.40 MB
Audio Profile he-aac
Container MKV
Video Profile main 10

Codec HEVC
Bitrate 1257 kbps
Bit Depth 10
Chroma Subsampling 4:2:0
Color Primaries bt709
Color Range tv
Color Space bt709
Color Trc bt709
Frame Rate 23.976 fps
Height 1080
Level 4.0
Profile main 10
Ref Frames 1
Width 1920
Display Title 1080p (HEVC Main 10)

Codec AAC
Channels 6
Bitrate 200 kbps
Language English
Audio Channel Layout 5.1
Profile he-aac
Sampling Rate 48000 Hz
Display Title English (HE-AAC 5.1)

Codec SRT
Language English
Display Title English (SRT)
Jan 26, 2020 15:28:40.436 [0x7fe4167fc700] WARN - Streaming Resource: Bandwidth exceeded: 18306 kbps > 10000 kbps
Jan 26, 2020 15:28:40.436 [0x7fe4167fc700] ERROR - Streaming Resource: Cannot make a decision because either the file is unplayable or the client provided bad data
Jan 26, 2020 15:28:40.921 [0x7fe414ff9700] WARN - Streaming Resource: Bandwidth exceeded: 18306 kbps > 10000 kbps
Jan 26, 2020 15:28:40.922 [0x7fe414ff9700] ERROR - Streaming Resource: Cannot make a decision because either the file is unplayable or the client provided bad data
Jan 26, 2020 15:28:42.301 [0x7fe4332fa700] WARN - Streaming Resource: Bandwidth exceeded: 18306 kbps > 10000 kbps
Jan 26, 2020 15:28:42.301 [0x7fe4332fa700] ERROR - Streaming Resource: Cannot make a decision because either the file is unplayable or the client provided bad data
Jan 26, 2020 15:28:44.697 [0x7fe4217fa700] WARN - Streaming Resource: Bandwidth exceeded: 18306 kbps > 10000 kbps
Jan 26, 2020 15:28:44.697 [0x7fe4217fa700] ERROR - Streaming Resource: Cannot make a decision because either the file is unplayable or the client provided bad data
Jan 26, 2020 15:28:45.312 [0x7fe4167fc700] ERROR - [FFMPEG] - Cannot load libcuda.so.1
Jan 26, 2020 15:28:45.312 [0x7fe4167fc700] ERROR - [FFMPEG] - Could not dynamically load CUDA
Jan 26, 2020 15:28:45.312 [0x7fe4167fc700] ERROR - [FFMPEG] - Cannot load libcuda.so.1
Jan 26, 2020 15:28:45.312 [0x7fe4167fc700] ERROR - [FFMPEG] - Could not dynamically load CUDA
Jan 26, 2020 15:28:45.313 [0x7fe4167fc700] ERROR - [FFMPEG] - Cannot load libcuda.so.1
Jan 26, 2020 15:28:45.313 [0x7fe4167fc700] ERROR - [FFMPEG] - Could not dynamically load CUDA
Jan 26, 2020 15:28:45.314 [0x7fe4167fc700] ERROR - [FFMPEG] - Cannot load libcuda.so.1
Jan 26, 2020 15:28:45.314 [0x7fe4167fc700] ERROR - [FFMPEG] - Could not dynamically load CUDA
Jan 26, 2020 15:28:46.243 [0x7fe4217fa700] ERROR - [Transcoder] [Parsed_inlineass_2 @ 0x2d31280] fontselect: Using default font family: (Arial, 400, 0) -> /usr/lib/plexmediaserver/Resources/Fonts/DejaVuSans-Regular.ttf, 0, DejaVuSans

When I set “Limit remote stream bitrate” to “Original (No limit)”, the file plays fine.

Plex Media Server Logs_2020-01-26_15-33-06.zip (577.3 KB)

This issue is also present on the Android Mobile client.

Here’s why it is related to the remote bitrate limit.

I set remote bitrate limit to original (no limit) and I played the file. I then Changed the quality to convert automatically:

the video file transcoded just fine:

When I have remote bitrate limit enabled, this is what happens when I try to play the same file: image

@anon18523487, I’ve seen you in other bug threads and I was wondering if you could get some eyes on this: Android TV will not play some shows/movies if "Limit remote stream bitrate" is enabled

Got the ping. I looked at your previous log but you don’t have debug logging enabled so only the error is logged, not what led to the error. Please enable “debug” in your PMS settings, recreate the issue, and then provide me a new log.

I enabled debug and recreated the error at 8:02am estPlex Media Server Logs_2020-01-28_08-02-15.zip (638.5 KB)

Nope it didn’t work.

Let’s check your Android logs instead. Try playing from the Android mobile app, then get me the logs from there.

okay, here are the logs from the android mobile app
plex-log-cca310(1).zip (555.8 KB)

Nope it didn’t work.

Did I do something wrong or was it not showing in the logs?
I changed debug level to enabled, recreated the issue, and downloaded the logs. Is that the correct way to do it?

You are using the Plex for Windows app. That setting you changed is for the logs for that client. Look further down.

Untitled

Okay, this is what I enabled this time “Enable Plex Media Server debug logging

Here are the logs
Plex Media Server Logs_2020-01-30_08-09-28.zip (717.3 KB)

Ok, so there seems to be something missing. With that limit in place, the app is unable to direct play a file because the bitrate of the file is higher than the limit, which is expected, so PMS should transcode the file to lower the bitrate. However, your PMS is unable to identify the Android profile to know what to transcode to, so it just sends back the file as is. The app doesn’t want that file so it fails to play. It appears that it can’t find any profiles for any of the Plex clients.

I’m not sure if there is a permission issue with the location where these profiles are kept or if it might have been a bad install that never put these files in the first place. Unfortunately, I’m not a linux person so I don’t know the location where these profile are kept. I believe they should be located near wherever the executable is. I don’t know but maybe this other thread about Linux can help. Linux Tips

I installed Plex Media Server on my Windows 10 PC because I wanted to test if it is Linux permissions are causing this.

I went to play the same Watchman S01E01 file that causes it on Linux but it is reporting 3mbps instead of 18mbps from my Linux server. I can’t get it to hit the 10mbps limit so I can test if it will transcode correctly.

Ubuntu 18.04 LTS Version 1.18.4.2171
image

Here is from my Windows 10 PC Version 1.18.5.2309
image

Why is Plex Media Server reporting different bitrates between operating systems?

Can you provide the xml from PMS for that episode?

it says I can’t upload the xml file so I will copy and paste.

EDIT: This is the xml for my windows 10 installation of pms that reports 3mbps

<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="4" librarySectionTitle="TV Shows" librarySectionUUID="cc70190c-9afa-4d70-a432-55eee386184b" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1579812562">
<Video ratingKey="930" key="/library/metadata/930" parentRatingKey="929" grandparentRatingKey="928" guid="com.plexapp.agents.thetvdb://360733/1/1?lang=en" parentGuid="com.plexapp.agents.thetvdb://360733/1?lang=en" grandparentGuid="com.plexapp.agents.thetvdb://360733?lang=en" type="episode" title="It&#39;s Summer and We&#39;re Running Out of Ice" grandparentKey="/library/metadata/928" parentKey="/library/metadata/929" librarySectionTitle="TV Shows" librarySectionID="4" librarySectionKey="/library/sections/4" grandparentTitle="Watchmen" parentTitle="Season 1" contentRating="TV-MA" summary="In an alternate America where police conceal their identities behind masks to protect themselves from a terrorist organization, Detective Angela Abar investigates the attempted murder of a fellow officer under the guidance of her friend and Chief, Judd Crawford. The Lord of a Country Estate receives an anniversary gift from his loyal servants." index="1" parentIndex="1" year="2019" thumb="/library/metadata/930/thumb/1580417439" art="/library/metadata/928/art/1580417439" parentThumb="/library/metadata/929/thumb/1580417439" grandparentThumb="/library/metadata/928/thumb/1580417439" grandparentArt="/library/metadata/928/art/1580417439" duration="3786450" originallyAvailableAt="2019-10-20" addedAt="1580086691" updatedAt="1580417439">
<Media id="2312" duration="3786450" bitrate="1459" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="aac" videoCodec="hevc" videoResolution="1080" container="mkv" videoFrameRate="24p" audioProfile="he-aac" videoProfile="main 10">
<Part accessible="1" exists="1" id="2312" key="/library/parts/2312/1580086691/file.mkv" duration="3786450" file="D:\Storage\Media\Plex\TV Shows\Watchmen\Season 01\Watchmen.S01E01.It&#39;s.Summer.and.Were.Running.Out.of.Ice.1080p.10bit.WEBRip.6CH.x265.HEVC-PSA.mkv" size="690379944" audioProfile="he-aac" container="mkv" videoProfile="main 10">
<Stream id="4935" streamType="1" default="1" codec="hevc" index="0" bitrate="1459" bitDepth="10" chromaSubsampling="4:2:0" codedHeight="1080" codedWidth="1920" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="23.976" height="1080" level="120" profile="main 10" refFrames="1" width="1920" displayTitle="1080p (HEVC Main 10)" />
<Stream id="4936" streamType="2" selected="1" default="1" codec="aac" index="1" channels="6" language="English" languageCode="eng" audioChannelLayout="5.1" profile="he-aac" samplingRate="48000" displayTitle="English (HE-AAC 5.1)" />
<Stream id="4937" streamType="3" selected="1" default="1" codec="srt" index="2" language="English" languageCode="eng" displayTitle="English (SRT)" />
</Part>
</Media>
<Writer id="3776" filter="writer=3776" tag="Damon Lindelof" />
<Extras size="0">
</Extras>
</Video>
</MediaContainer>

I made a mistake, the previous reply was from my new install on windows 10. I’m not sure if they will be different but here’s the one from my linux server that was reporting 18mbps

<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="3" librarySectionTitle=" TV Shows" librarySectionUUID="008503a2-6952-4482-9224-f2386b9436b6" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1576869286">
<Video ratingKey="5234" key="/library/metadata/5234" parentRatingKey="5233" grandparentRatingKey="5232" guid="com.plexapp.agents.thetvdb://360733/1/1?lang=en" parentGuid="com.plexapp.agents.thetvdb://360733/1?lang=en" grandparentGuid="com.plexapp.agents.thetvdb://360733?lang=en" type="episode" title="It&#39;s Summer and We&#39;re Running Out of Ice" grandparentKey="/library/metadata/5232" parentKey="/library/metadata/5233" librarySectionTitle=" TV Shows" librarySectionID="3" librarySectionKey="/library/sections/3" grandparentTitle="Watchmen" parentTitle="Season 1" contentRating="TV-MA" summary="In an alternate America where police conceal their identities behind masks to protect themselves from a terrorist organization, Detective Angela Abar investigates the attempted murder of a fellow officer under the guidance of her friend and Chief, Judd Crawford. The Lord of a Country Estate receives an anniversary gift from his loyal servants." index="1" parentIndex="1" viewCount="2" lastViewedAt="1580389692" year="2019" thumb="/library/metadata/5234/thumb/1580087408" art="/library/metadata/5232/art/1576468152" parentThumb="/library/metadata/5233/thumb/1576468152" grandparentThumb="/library/metadata/5232/thumb/1576468152" grandparentArt="/library/metadata/5232/art/1576468152" duration="3786449" originallyAvailableAt="2019-10-20" addedAt="1574545832" updatedAt="1580087408">
<Media id="11851" duration="3786449" bitrate="1457" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="aac" videoCodec="hevc" videoResolution="1080" container="mkv" videoFrameRate="24p" audioProfile="he-aac" videoProfile="main 10">
<Part accessible="1" exists="1" id="12421" key="/library/parts/12421/1571669333/file.mkv" duration="3786449" file="/mnt/Media Storage/Media/Plex/TV Shows/TV Shows/Watchmen/Season 01/Watchmen.S01E01.It&#39;s.Summer.and.Were.Running.Out.of.Ice.1080p.10bit.WEBRip.6CH.x265.HEVC-PSA.mkv" size="690379944" audioProfile="he-aac" container="mkv" deepAnalysisVersion="4" requiredBandwidths="17434,2550,2294,2294,2294,2294,2294,2294" videoProfile="main 10">
<Stream id="27980" streamType="1" default="1" codec="hevc" index="0" bitrate="1257" bitDepth="10" chromaSubsampling="4:2:0" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="23.976" height="1080" level="120" profile="main 10" refFrames="1" requiredBandwidths="17211,2384,2110,2110,2110,2110,2110,2110" width="1920" displayTitle="1080p (HEVC Main 10)" />
<Stream id="27981" streamType="2" selected="1" default="1" codec="aac" index="1" channels="6" bitrate="200" language="English" languageCode="eng" audioChannelLayout="5.1" profile="he-aac" requiredBandwidths="206,206,206,206,206,206,206,206" samplingRate="48000" displayTitle="English (HE-AAC 5.1)" />
<Stream id="27982" streamType="3" selected="1" default="1" codec="srt" index="2" bitrate="0" language="English" languageCode="eng" requiredBandwidths="1,1,1,1,1,1,1,1" displayTitle="English (SRT)" />
</Part>
</Media>
<Writer id="10344" filter="writer=10344" tag="Damon Lindelof" />
<Extras size="0">
</Extras>
</Video>
</MediaContainer>

Ah yes. That does make a difference. PMS runs what we call a deep analysis on your files. This checks what the actual bandwidth needed to playback the file instead of relying on the average bitrate reported by the file, since that can often be misleading.

From the XML in Linux:

requiredBandwidths=“17211,2384,2110,2110,2110,2110,2110,2110”

Those represent the bitrate required (in kbps) depending on the player’s memory available in the clients. The Philips TV’s have crappy memory so from your previous log it appears it was using the first number of 17.2 Mbps. The playback info rounds up so it shows 18.

Your Windows server hasn’t gone through this analysis which you see from the XML is missing the information that Linux had. In this case, PMS assumes x2 the average bitrate. Your file has an average of 1.4 Mbps, so it will show 3. Give your new PMS 24 hours to perform that analysis and you should see that number also change to 18.

Okay, I will let it analyze over night.

For what it’s worth, another user that is having this issue says that they are using Windows 10.