Plex excessivly failling to buffer or play on 4G/5G

Server Version#: 1.32.8.7639
Player Version#: 8.28 & 8.29

I’m wondering if anything changed recently that may cause this?

Setup:

PMS is on Synology, 10Gb link to my router, 1Gb fibre to the outside world.

iPhone 14 Pro Max, on 5G or even 4G on my phone, not too far from the towers, speeds 50 - 360Mbps down, 10 - 15 up.

Previous behaviour (up until last month),

When I play a video, it would take ~5-10 seconds max for it to start/resume, with no interruptions at all after that. Never any buffering, issues, etc. I could watch several episodes without interruption.

Current behaviour

  • A video would take several minutes to start playing. You get a rotating circle in the centre of the screen and you wait… and wait.

  • Often it doesn’t load at all… I close and re-open Plex and try again, and again, and again. Eventually it works.

  • Video works for a few minutes, then stops playing with the rotating circle again. Cannot play any more. I try closing Plex and starting again, and sometimes after ~3-5 minutes it’ll eventually (finally) play (rinse & repeat the above issue), or I end up giving up.

I enabled debug logging but failed to restart Plex - not sure if that’s required. If so let me know and I’ll try again another day. Some examples from today (7th) include

8.34am - episode “prisoner of love”

10:49am to 10.51am - episode: Out of the half-light
12:54pm
1:01PM, 1:02pm

The day before at 8.28am (and around that time too).

I just don’t recall it ever being this bad before. Something is strange.
Ta.

Plex Media Server Logs_2023-12-07_16-13-42.zip (5.1 MB)

This is direct Play

Dec 07, 2023 09:49:50.049 [140295225047864] DEBUG - [Req#2f374/Transcode] Audio Stream: 512116, Subtitle Stream: -1
Dec 07, 2023 09:49:50.051 [140295225047864] DEBUG - [Req#2f374/Transcode] MDE: Selected protocol http; container: mkv
Dec 07, 2023 09:49:50.051 [140295225047864] DEBUG - [Req#2f374/Transcode] MDE: analyzing media item 150271
Dec 07, 2023 09:49:50.051 [140295225047864] DEBUG - [Req#2f374/Transcode] MDE: E11 - Out Of The Half-Light: Direct Playing due to no transcode profile
Dec 07, 2023 09:49:50.051 [140295225047864] DEBUG - [Req#2f374/Transcode] MDE: E11 - Out Of The Half-Light: DirectPlay
Dec 07, 2023 09:49:50.051 [140295225047864] DEBUG - [Req#2f374/Transcode] MDE: Law & Order - S1 E11 - Out Of The Half-Light: selected media 0 / 150271
Dec 07, 2023 09:49:50.051 [140295225047864] DEBUG - [Req#2f374/Transcode] Streaming Resource: Added session 0x7f991a081de8:8032C63F-8A68-4BD6-AA6C-CD0CBAF00441
Dec 07, 2023 09:49:50.052 [140295225047864] DEBUG - [Req#2f374/Transcode] Streaming Resource: Reached Decision id=7956 codes=(General=1000,Direct play OK. Direct Play=1000,Direct play OK.) media=(id=150271 part=(id=218693 decision=direct play protocol=http streams=(Video=(id=512115 decision= width=1280 height=720) Audio=(id=512116 decision= channels=2 rate=48000))))
Dec 07, 2023 09:49:50.053 [140295541910328] DEBUG - Completed: [192.168.1.211:49678] 200 GET /video/:/transcode/universal/decision

It’s acting like the player / network can’t get data fast enough. The server looks fine.

ever consider hard restart or reinstalling the iOS app? I’ve had iOS get goofy at times.

Hard-restart of the app fixes many evils.
current iOS behavior is VERY strange to me. I’ve encounted lots of bugs

Thanks @ChuckPa ,

When you say the iOS app, do you mean the Plex app on iOS? Or iOS itself?

I did try a hard restart of the phone just in case it had some odd bug with its network / mobile part, that didn’t help though.

I can give a reinstall of the app a try. As for iOS itself, the phone is a new replacement - about a week old, and had a clean install on it followed by a restore of my backup. I’m doubtful if it’s related, but honestly I wouldn’t be surprised if it were :slight_smile:

I wonder if there’s any way to enable debug logging on the Plex iOS app, to offer more insight on the client-side…

I am referring to the Plex iOS app.

To send logs is pretty simple .

There are a few steps.

Here is the explanation / how-to

https://support.plex.tv/articles/201636593-ios-logs/

Often after a iOS update this anomaly seems to occur with video apps. I have found a uninstall and re install helpful if a restart has no affect.

cheers

Thanks @SE56 , @ChuckPa ,

Issue happened again (as expected) this morning. I deleted and reinstalled the app and that seems to have fixed it so far. I’ll keep testing today / tomorrow, and if any issues I’ll let you know.

But it looks like so far so good.

@ChuckPa , @SE56 ,

Thanks for the help. Unfortunately the issue persists. Yesterday it happened just 3 times (that’s 3 times too many), but today it’s happening again non stop. From around 8.45am to 9.05am.

Attached logs from iOS app.

PlexDebugInfo-ExpiredKebab-8.29-7486 (2023-12-12 09.06.13 +1300).zip (1.6 MB)

Something is definitely not right here. I’ve never experienced this in the years I’ve been using Plex. Something with caching/buffering/transmission is different, or has recently changed for the worse.

Speedtest is between 55-120Mb down, 1.2-20Mb up. 4G.

@Sam_AU

In your logs, I see port 32800. Is this your external WAN forwarded port?

This is a connect timeout error after seeking.

(3572092) ➖ PMKVideoPlaybackEngine.m:857 | Start seeking to 1660.424061939239
(3572092) ➖ PMKVideoPlaybackEngine.m:899 | Seeking to 1660.424061939239
(3572092) ➖ PMKVideoPlaybackEngine.m:863 | Finished seeking to 1660.424061939239
(3572092) 🔧 PMKLogging.m:29 | Refreshing Download subscriptions
(3730146) 🔧 PMKNetworkTask.m:201 | Started: 50: iPhone (BBF8E19F-6495-4E4E-8E6C-AFF176A898A3): POST /media/providers/remote/sync
(3730678) 🔧 PMKNetworkTask.m:225 | Completed [200]: 50: iPhone (BBF8E19F-6495-4E4E-8E6C-AFF176A898A3): POST /media/providers/remote/sync
(3572092) 🔧 PMKPlaybackServerRouteObserver.m:63 | The active connection didn't actually change. Nothing to do here...
(3730365) 🔧 PMKServer+Requests.m:221 | Attempting recovery from error Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x2831d3b40 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <05D5F9EC-546B-4CD4-ABDA-71C875898E89>.<92>, _NSURLErrorRelatedURLSessionTaskErrorKey=(

what’s the bitrate of what you were playing here? It is in a DirectPlay mode.

@ChuckPa ,

Thanks. Yes I port forward TCP/UDP on my Unifi UDM SE from 32800 to my NAS:32400.

The bitrate is average ~10k. It bursts to 13k, up to 15k few times, and down to 8k.

10Kb/s ???

Are you 100% certain of that number ?

You can’t even play decent audio at 10 Kb/s

Err, sorry, I’m completely wrong. And I missed a zero :slight_smile: I misread the output from the debug output (above black pic).

Video average bitrate is 435,000. Down to 360,000, up to 460,000
Audio average bitrate 100,000. down to 80,000 up to 130,000 (few times 150,000).

May I see the Server’s DEBUG logs ZIP file which captures this happening?

I see what you’re showing me there (now that we’re in sync :wink: )

I’d like to see what the server decided to do.

  1. Start Playback
  2. Play 20-30 seconds
  3. Stop Playback
  4. Plex/Web → Settings - Troubleshooting (lower left corner) - Download Logs.
  5. It will give you a ZIP file.
  6. Please upload/attach that ZIP file here.

No worries, will do. Issue didn’t pop up today… but let me try and reproduce it in the next few days, and when I do, I’ll provide logs from iOS and server side along with timestamps.

Thanks for the help.

@ChuckPa

Ok I’ve managed to catch this again.

S02E13 - Severance.

Started 3.39PM NZT. Recovered 3.40PM.
Then again 3.40, recovered 3.41

Then again 3.41, and from what I can see, it should have enough buffered to not struggle like this (the darker yellow line at the navbar. Sometimes it was much longer too).

It then at 3.41 decided to restart from the beginning of the episode (happens often with this issue) at 3.43.

Apologies for formatting / spelling as I’m doing this on the phone on my walk around the neighbourhood.

Plex Media Server Logs_2023-12-13_15-45-50.zip (5.0 MB)

PlexDebugInfo-ExpiredKebab-8.29-7486 (2023-12-13 15.43.30 +1300).zip (1.8 MB)

@ChuckPa ,

Here’s another instance from today, between 10:00am - 10:15am, with “F Is For Family (2015) - 3x03 - The Stinger”. Same issue, including what I understood as sufficient buffer downloaded, but it still ended up with the same problem few times. Speedtest was 90Mb down (forgot how much up) on 4G with 3 bars.

PlexDebugInfo-ExpiredKebab-8.29-7486 (2023-12-19 10.03.52 +1300).zip (2.5 MB)

PlexMediaServerLogs_2023-12-19_10-05-13.zip (4.2 MB)

Edit, I can see several different types of errors on the iPhone logs, but one common error on both PMS and Plex player is:

PMS:

Dec 19, 2023 10:02:24.262 [140594131508024] DEBUG - [Req#b8766/Transcode] MDE: F is for Family - S3 E3 - The Stinger: selected media 0 / 159013
Dec 19, 2023 10:02:24.263 [140594101717816] DEBUG - [Req#b8766/Transcode] Killing job.
Dec 19, 2023 10:02:24.263 [140594101717816] DEBUG - [Req#b8766/Transcode] Signalling job ID 11340 with 9
Dec 19, 2023 10:02:24.263 [140594101717816] DEBUG - [Req#b8766/Transcode] Job was already killed, not killing again.
Dec 19, 2023 10:02:24.263 [140594101717816] DEBUG - [Req#b8766/Transcode] Stopping transcode session EF548E15-93B9-461C-A645-30C73ABFFDFF
Dec 19, 2023 10:02:24.264 [140594131508024] DEBUG - [Req#b8766/Transcode] Streaming Resource: Reached Decision id=75870 codes=(General=1001,Direct play not available; Conversion OK. Direct Play=3001,Not enough bandwidth for direct play of this item. Required bandwidth is 6092kbps and only 720kbps is available. Transcode=1001,Direct play not available; Conversion OK.) 

Player:

(3131246) ➖ PMKPlaybackSession.m:484 | Play decision: {
    directPlay = "3001 - Not enough bandwidth for direct play of this item. Required bandwidth is 6092kbps and only 720kbps is available.";
    general = "1001 - Direct play not available; Conversion OK.";
    transcode = "1001 - Direct play not available; Conversion OK.";
}


(3131246) ➖ PMKPlaybackSession.m:484 | Play decision: {
    directPlay = "3000 - App cannot direct play this item. Direct play is disabled.";
    general = "1001 - Direct play not available; Conversion OK.";
    transcode = "1001 - Direct play not available; Conversion OK.";
}

(3131246) 🔧 PMKAppEventMonitor.m:128 | [AppEventMonitor]: Playback Decision did end 09:58:06,7070 | ⚠️ This event ended before?, this shouldn't happen⚠️
(3131246) ➖ PMKMPVVideoPlayerView.m:84 | Player moved to window (null) (screen: (null))
(3145050) ➖ PMKMPVVideoPlayerRenderer.m:100 | Deallocating mpv video player renderer...
(3131246) 🔧 PMKPlaybackSessionItem.m:329 | Destroyed transcode ping timer for <PMKPart:0x2827d9d90 iden=224131 key=/library/parts/224131/1639456954/file.mkv>

The player has a lot more errors.. some with decoding, some timeout, some TLS connection errors, etc. I’m not as familiar with these but still reading through them.

Hi @ChuckPa ,

Just wondering if you managed to look into this? The issue still persists :frowning:

Thanks.

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