Plex serving some files floods network with canceled requests

Server Version# 1.41.7.9823
Player Version#: android tv based shield and firetv

When playing some files, it appears that the android tv based players constantly close the request and reopen them. This causes all the network bandwidth between my server and the player to fill so it goes into buffering.

You can see that I’m playing a 2mb video, but it’s using 600mbs of bandwidth.

This is what I see in the logs.

It’s likely a poorly muxed file that doesn’t have interleaved streams (see High Bandwidth via Direct Play on Windows 10 - #8 by gbooker02), in which case remuxing it with something like MKVToolNix or ffmpeg would likely help.

2 Likes

Thank you! I’ll look into that. I figured it out and that took care of the issue.

1 Like

I spoke too soon. My attempt to use mkvmerge didn’t work yet. I’ll keep trying.

One thing I did find is that this appears to still be a bug somewhere. This only happens when I try to view locally. When I view the file over nginx remotely (direct play), it plays just fine and does not keep closing the connections. It also does not happen when I use my Roku device.

Try running DBRepair script, it might be a side effect of the database issues in one of the recent updates GitHub - ChuckPa/DBRepair: Database repair utility for Plex Media Server databases

Although I may have to double check on a similar (long term) issue I’ve had that may be causing playback issues playing live TV via the tuner in plex.

I think I finally fixed it!

I’ve created a script and added it as the last step in MCEBuddy. This seems to solve the canceled connections and using up all available bandwidth.

“C:\Program Files\GPAC\mp4box.exe” -tight -add “%~1” -new %tmpfile%
move %tmpfile% “%~1”

I need to test a few more files, but so far so good.

So my fix above did not fully resolve the issue.

I think I did find the culprit though. It appears that Plex just does not like videos that are encoded using -global_quality. I’ve been re-converting all my videos and I have been trying different settings. I found that if I switch from -q:v 20 to -global_quality 20, it breaks Plex. All the videos using global quality cause the network to flood and they buffer when playing locally. I have not had any issues at all with the -q:v 20 setting.

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