Remote streams max out at 2mbps

Server Version#: 1.15.5.994
Player Version#: Current iOS version

All remote streams max out at 2mbps. I’ve tried manually changing the quality and get nothing. This is both the local and shared users. CPU usage is at 20ish percent with two streams going and there’s more than enough bandwidth. The server shows the Green Lock indicating a successful remote connection from the remote devices.

1 Like

Until full remote access is established (ports are open from your firewall and forwarded to your server - inbound service requests), Plex Relay is used. Plex Relay is limited to 2 Mbps.

Please review here
https://support.plex.tv/articles/200289506-remote-access/

Yeah, I said that it’s set up correctly. The server indicates “Fully accessible outside your network” and the clients show the green lock that indicates they have a good connection.

Apologies. I misread.

Please check Settings - Server - Network - Show Advanced.
Make certain there are no streaming restrictions.

From the remote IP in question, can you confirm it can directly open http://WAN.IP.of.host:32400/web ?

If they can, and you have no restrictions, please check their playback quality settings next.
If they ask / limit to 2 Mbps, that’s what they’ll get.

Did all that. No streaming restrictions at all.
I can hit it via the IP with port from my phone on LTE and it loads Plex.
On the phone I can go in and tell it to play back in original quality 10mbps, and Plex sends it out at exactly 2mbps.

Please do this:

  1. Verify DEBUG logging is enabled, VERBOSE is disabled.
  2. Start a playback session
  3. Let it play for 30 seconds.
  4. Stop it
  5. Wait 30 seconds for logs to flush to disk
  6. Collect the logs (Settings - Server - Troubleshooting - Download Logs)
  7. Attach the ZIP file here.

I will look at what transpired

Alright, I’m attaching the logs from both he client and the server. I couldn’t actually find the “Debug” option in the server menu anywhere. There’s Debug for the web client but that’s for playback. PlexDebugInfo-acer589-5.13-17018 (2019-05-04 14.22.22 -0500).zip (898.4 KB)

Plex Media Server Logs_2019-05-04_12-21-15.zip (3.2 MB)

My fault. **Settings - Server - General - (SHOW ADVANCED) ** will make it appear

Thanks for the logs.

  1. You can turn off IPv6. (Settings - Server - Network) Your LAN is IPv4.
  2. This log excerpt shows it’d downscaling to 720p display width and exactly 2000Kbps. Is this the playback type setting or the device physical display limit? Which iPhone model?
May 04, 2019 12:19:56.388 [0x14c80e9f4700] DEBUG - Audio Stream: 20999, Subtitle Stream: 21000
May 04, 2019 12:19:56.390 [0x14c80e9f4700] DEBUG - Scaled up video bitrate to 13575Kbps based on 1.500000x fudge factor.
May 04, 2019 12:19:56.390 [0x14c80e9f4700] DEBUG - MDE: Selected protocol hls; container: mpegts
May 04, 2019 12:19:56.390 [0x14c80e9f4700] DEBUG - MDE: analyzing media item 9151
May 04, 2019 12:19:56.390 [0x14c80e9f4700] DEBUG - MDE: E13 - Funhouse: Direct Play is disabled
May 04, 2019 12:19:56.390 [0x14c80e9f4700] DEBUG - MDE: E13 - Funhouse: media must be transcoded in order to use the hls protocol
May 04, 2019 12:19:56.390 [0x14c80e9f4700] DEBUG - MDE: E13 - Funhouse: no direct play video profile exists for http/mkv/h264
May 04, 2019 12:19:56.390 [0x14c80e9f4700] DEBUG - MDE: E13 - Funhouse: no direct play video profile exists for http/mkv/h264/dca
May 04, 2019 12:19:56.390 [0x14c80e9f4700] DEBUG - MDE: Cannot direct stream audio stream due to codec dca when profile only allows aac
May 04, 2019 12:19:56.391 [0x14c80e9f4700] DEBUG - MDE: The Sopranos - S2 E13 - Funhouse: selected media 0 / 9151
May 04, 2019 12:19:56.391 [0x14c80e9f4700] DEBUG - Streaming Resource: Calculated bandwidth of 21084kbps exceeds bandwidth limit. Changing decision parameters provided by client to fit bandwidth limit of 2000kbps
May 04, 2019 12:19:56.391 [0x14c80e9f4700] DEBUG - Streaming Resource: Determining preferred transcode encoders through transcode only decision.
May 04, 2019 12:19:56.391 [0x14c80e9f4700] DEBUG - Scaled up video bitrate to 13575Kbps based on 1.500000x fudge factor.
May 04, 2019 12:19:56.391 [0x14c80e9f4700] DEBUG - Scaled up video bitrate to 13575Kbps based on 1.500000x fudge factor.
May 04, 2019 12:19:56.392 [0x14c80e9f4700] DEBUG - Scaled up video bitrate to 13575Kbps based on 1.500000x fudge factor.
May 04, 2019 12:19:56.392 [0x14c80e9f4700] DEBUG - Streaming Resource: Reducing playback quality for 1904kbps stream bitrate: video resolution to 720x406, audio channels to 2, quality to 41, disable video DS as 25985kbps is > the 1724kbps available
May 04, 2019 12:19:56.392 [0x14c80e9f4700] DEBUG - Scaled up video bitrate to 13575Kbps based on 1.500000x fudge factor.
May 04, 2019 12:19:56.392 [0x14c80e9f4700] DEBUG - Scaled maximum bitrate for resolution reduction to 1913Kbps.
May 04, 2019 12:19:56.392 [0x14c80e9f4700] DEBUG - Scaled up video bitrate to 13575Kbps based on 1.500000x fudge factor.
May 04, 2019 12:19:56.392 [0x14c80e9f4700] DEBUG - Scaled maximum bitrate for resolution reduction to 1913Kbps.
May 04, 2019 12:19:56.393 [0x14c80e9f4700] DEBUG - MDE: Selected protocol hls; container: mpegts
May 04, 2019 12:19:56.393 [0x14c80e9f4700] DEBUG - MDE: analyzing media item 9151
May 04, 2019 12:19:56.393 [0x14c80e9f4700] DEBUG - MDE: E13 - Funhouse: Direct Play is disabled
May 04, 2019 12:19:56.393 [0x14c80e9f4700] DEBUG - MDE: E13 - Funhouse: media must be transcoded in order to use the hls protocol
May 04, 2019 12:19:56.393 [0x14c80e9f4700] DEBUG - MDE: E13 - Funhouse: no direct play video profile exists for http/mkv/h264
May 04, 2019 12:19:56.393 [0x14c80e9f4700] DEBUG - MDE: E13 - Funhouse: no direct play video profile exists for http/mkv/h264/dca
May 04, 2019 12:19:56.393 [0x14c80e9f4700] DEBUG - Funhouse - video.width limitation applies: 1920 > 720
May 04, 2019 12:19:56.393 [0x14c80e9f4700] DEBUG - Funhouse - audio.channels limitation applies: 6 > 2
May 04, 2019 12:19:56.393 [0x14c80e9f4700] DEBUG - MDE: E13 - Funhouse: Direct Streaming is disabled, so video stream will be transcoded
May 04, 2019 12:19:56.393 [0x14c80e9f4700] DEBUG - MDE: E13 - Funhouse: no remuxable profile found, so video stream will be transcoded
May 04, 2019 12:19:56.393 [0x14c80e9f4700] DEBUG - MDE: Cannot direct stream video stream due to profile or setting limitations
May 04, 2019 12:19:56.393 [0x14c80e9f4700] DEBUG - Scaled up video bitrate to 13575Kbps based on 1.500000x fudge factor.
May 04, 2019 12:19:56.393 [0x14c80e9f4700] DEBUG - Scaled maximum bitrate for resolution reduction to 1913Kbps.
May 04, 2019 12:19:56.393 [0x14c80e9f4700] DEBUG - Funhouse - audio.channels limitation applies: 6 > 2
May 04, 2019 12:19:56.393 [0x14c80e9f4700] DEBUG - MDE: Cannot direct stream audio stream due to profile or setting limitations
May 04, 2019 12:19:56.394 [0x14c80e9f4700] DEBUG - MDE: The Sopranos - S2 E13 - Funhouse: selected media 0 / 9151
May 04, 2019 12:19:56.394 [0x14c80e9f4700] DEBUG - Streaming Resource: Reached Decision id=8398 codes=(General=1001,Direct play not available; Conversion OK. Direct Play=3000,App cannot direct play this item. Direct play is disabled. Transcode=1001,Direct play not available; Conversion OK.) media=(id=9151 part=(id=9268 decision=transcode container=mpegts protocol=hls streams=(Video=(id=20998 decision=transcode bitrate=1724 encoder=libx264 width=720 height=406) Audio=(id=20999 decision=transcode bitrate=162 encoder=aac channels=2 rate=48000) Subtitle=(id=21000 decision=transcode bitrate=2147483647 encoder=webvtt languageCode=eng location=segmented))))
May 04, 2019 12:19:56.396 [0x14c888239700] DEBUG - Completed: [::ffff:166.173.63.5:55786] 200 GET /video/:/transcode/universal/decision?audioBoost=100&autoAdjustQuality=0&directPlay=0&directStream=1&directStreamAudio=1&location=cellular&maxVideoBitrate=2000&mediaBufferSize=40000&partIndex=0&path=%2Flibrary%2Fmetadata%2F8398&peakBitrate=20000&protocol=hls&subtitleSize=100&subtitles=auto&videoBitrate=2000&videoQuality=100&videoResolution=3840x2160 (19 live) TLS GZIP 15ms 1755 bytes (pipelined: 5)

Player logs:

<AVURLAsset: 0x283e71380, URL = https://24-27-64-197.7f90b719b4174ffea3380c4fd7d95abe.plex.direct:54345/video/:/transcode/universal/start.m3u8?audioBoost=100&autoAdjustQuality=0&directPlay=1&directStream=1&directStreamAudio=1&fastSeek=1&includeCodecs=1&location=cellular&maxVideoBitrate=2000&mediaBufferSize=40000&offset=5&partIndex=0&path=%2Flibrary%2Fmetadata%2F8398&peakBitrate=20000&protocol=hls&session=0EAE26B2-1F48-45B0-82B9-A79FB290C452&subtitleSize=100&videoBitrate=2000&videoQuality=100&videoResolution=3840x2160&X-Plex-Client-Identifier=B796C6DA-55A1-475A-8BDB-365F1AE68536&X-Plex-Client-Platform=iOS&X-Plex-Device=iPhone&X-Plex-Device-Screen-Density=3&X-Plex-Device-Screen-Resolution=1125x2436&X-Plex-Device-Vendor=Apple&X-Plex-Http-Pipeline=infinite&X-Plex-Model=10%2C6&X-Plex-Platform=iOS&X-Plex-Platform-Version=12.2&X-Plex-Product=Plex%20for%20iOS&X-Plex-Provides=client%2Ccontroller%2Csync-target%2Cplayer%2Cpubsub-player&X-Plex-Supported-Commands=abort%2CchangeQuality&X-Plex-Sync-Version=2&X-Plex-Token=rk8szxxxxxxxxxxxxxxx&X-Plex-Username=acer589&X-Plex-Version=5.13&X-Plex-Device-Name=Richard%20U%E2%80%99s%20iPhone>> ((

notice this in the player request:

&location=cellular&maxVideoBitrate=2000&mediaBufferSize=40000

Please note, by default, this is how it’s setup. What is yours set as?

1 Like

Huh, that phone setting SEEMS to be it. Weird. You’d think specifying in the video player would override that. That doesn’t explain why it’s happening on other devices :confused:

Sadly I don’t have physical access to those other devices.

You showed me one player’s session.
Each player (device) will have its own settings.

There is no “master setting” in PMS because all the possible playback devices+situations.

Just pass the word to those others to make similar settings changes.

Awesome! Thanks a bunch! I wouldn’t have thought the Apple TV version would have shipped with defaults that low.

altough acer had some wrong settings.
i had that situation now multiple times. everything’s fine. accessable via direct host IP and plex.tv
but still, sometimes there is a bug, where it is definetely maxed out at 2mbps … always double checked via settings. i now have set ssl connections to “forced”. hope that helps. but still, there is something strange going on. plus i think it’s only happening on plex/web (although i think it happened on pht/web aswell)

Lol you revived this thread 3 days before it would have been closed. The problem was that manually changing quality on the client is ignored if the clients settings for the whole app are lower than the selected quality.

In other words: manually selecting a quality in a stream will not override defaults if it would increase quality.

The 2 Mbps limit is when Remote Access is not working and the data stream must be carried by Plex.tv

Plex Pass users are allowed 2 Mbps.
Free users are allowed 1 Mbps.

Please review your Remote Access settings and verify it is reachable (green)

Yes. I understood. But Remote Access is marked as fully working



plexlogs.tar.gz (14.0 MB)

I think i never had this issue until you introducued this feature :slight_smile:
Plus i think it only happens on Plex/Web
In the exact same moment i can play 4K on Shield O_o

Thank you for the logs.

Looking at the transcoder invocation line, I see where the video bitrate is being limited.

Aug 03, 2019 15:34:07.778 [0x7f725ffff700] DEBUG - Job running: EAE_ROOT='/tmp/pms-113e42ce-32c1-4040-86b9-f259c6db2992/EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/2144ff1-2376-linux-x86_64/' XDG_CACHE_HOME='/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache' XDG_DATA_HOME='/usr/lib/plexmediaserver/Resources' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' '/usr/lib/plexmediaserver/Plex Transcoder' '-codec:0' 'h264' '-codec:1' 'ac3' '-ss' '5384' '-analyzeduration' '20000000' '-probesize' '20000000' '-i' 'http://127.0.0.1:32400/library/parts/1307604/1508354886/file.mkv?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx' '-filter_complex' '[0:0]scale=w=720:h=406[0];[0]format=pix_fmts=yuv420p|nv12[1]' '-filter_complex' '[0:1] aresample=async=1:ocl='\''stereo'\'':osr=48000[2]' '-map' '[1]' '-codec:0' 'libx264' '-crf:0' '21' '-maxrate:0' '1070k' '-bufsize:0' '2140k' '-r:0' '23.975999999999999' '-preset:0' 'veryfast' '-level:0' '5.1' '-x264opts:0' 'subme=6:me_range=4:rc_lookahead=10:me=hex:8x8dct=1' '-force_key_frames:0' 'expr:gte(t,5384+n_forced*8)' '-map' '[2]' '-metadata:s:1' 'language=ger' '-codec:1' 'aac' '-b:1' '162k' '-segment_format' 'mpegts' '-f' 'ssegment' '-individual_header_trailer' '0' '-segment_time' '8' '-segment_start_number' '673' '-segment_copyts' '1' '-segment_time_delta' '0.0625' '-segment_list' 'http://127.0.0.1:32400/video/:/transcode/session/7508e2a6d73c3e9c-com-plexapp-android/989e9080-9e4c-45b6-9fde-8bcdadf86cf5/seglist' '-segment_list_type' 'csv' '-segment_list_size' '2147483647' '-segment_list_separate_stream_times' '1' '-max_delay' '5000000' '-avoid_negative_ts' 'disabled' '-map_metadata' '-1' '-map_chapters' '-1' 'media-%05d.ts' '-start_at_zero' '-copyts' '-y' '-nostats' '-loglevel' 'quiet' '-loglevel_plex' 'error' '-progressurl' 'http://127.0.0.1:32400/video/:/transcode/session/7508e2a6d73c3e9c-com-plexapp-android/989e9080-9e4c-45b6-9fde-8bcdadf86cf5/progress'

resulting in: ‘-codec:0’ ‘libx264’ ‘-crf:0’ ‘21’ ‘-maxrate:0’ '1070k’

This matches with what you show in the screenshot.

What is the quality of the video itself? (Hover over the item - Get info - View XML ) ?

4K 30mbps or so

Medien

Dauer 2:01:23
Bitrate 55376 kbps
Width 3840
Height 2160
Aspect Ratio 1.78
Video Resolution 4K
Container MKV
Video Frame Rate 24p
Video Profile main 10

Teil

Dauer 2:01:23
Size 46.96 GB
Container MKV
Indexes sd
Video Profile main 10

Codec HEVC
Bitrate 54096 kbps
Bit Depth 10
Chroma Subsampling 4:2:0
Color Primaries bt2020
Color Range tv
Color Space bt2020nc
Color Trc smpte2084
Frame Rate 23.976 fps
Height 2160
Level 5.1
Profile main 10
Ref Frames 1
Width 3840
Display Title 4K (HEVC Main 10 HDR)

Codec AC3
Kanäle 6
Bitrate 640 kbps
Sprache Deutsch
Audio Channel Layout 5.1(side)
Sampling Rate 48000 Hz
Display Title Deutsch (AC3 5.1)

Codec TRUEHD
Kanäle 8
Bitrate 4684 kbps
Sprache English
Audio Channel Layout 7.1
Bit Depth 24
Sampling Rate 48000 Hz
Display Title English (TRUEHD 7.1)

Codec AC3
Kanäle 6
Bitrate 640 kbps
Sprache English
Audio Channel Layout 5.1(side)
Sampling Rate 48000 Hz
Display Title English (AC3 5.1)

Codec SRT
Sprache Deutsch
Titel ger-forced
Display Title Deutsch (SRT)

Codec SRT
Sprache English
Titel eng-forced
Display Title English (SRT)

Codec PGS
Bitrate 50 kbps
Sprache Deutsch
Header Compression true
Display Title Deutsch (PGS)

Codec PGS
Bitrate 51 kbps
Sprache English
Header Compression true
Display Title English (PGS)

Codec PGS
Bitrate 57 kbps
Sprache English
Header Compression true
Display Title English (PGS)

Codec SRT
Sprache English
Display Title English (SRT Extern)

Codec SRT
Sprache Deutsch
Display Title Deutsch (SRT Extern)

Codec SRT
Sprache English
Display Title English (SRT Extern)

Quick question: Why is Plex mounted on /mnt? (a network share? )

I don’t know why the client is limiting unless it’s because they changed the upper limit for 720p.

How does it play in the Plex app on the device?

no network share. i have mounted the secondary drive on /mnt/ and simlinked there
Any other player works (i think).
I think it may be a Plex/Web bug? has Plex/Web logs?

No, I don’t think it’s a bug per se. I know they set limits. I think 720 is limited. I don’t tknow that limit because i rarely encounter it but will ask.