I have a library for some YouTube videos. I am having an issue with stuttered playback on any videos that have been added in the past month. This is what I have found while troubleshooting:
It seems to be ONLY on videos uploaded to Plex in the last month. Plex continues to play files uploaded prior to December just fine.
The videos play fine up until it gets to about half way through the video. At about the half way point, I start to receive messages that the connection to the server is not fast enough, and I will get the spinning progress indicator, stuttered video, etc.
The behavior is the same across all platforms. I have tried Plex Web, Plex for Windows, Roku, AppleTV, iPad IOS, etc. All clients do the same thing. They work fine on files uploaded before December, and they fail at about the same point on files recently uploaded.
ALL video files play fine using any player outside of Plex (VLC, Windows Media Player).
I have compared the media information (resolution, video, audio codecs) for files that work versus those that don’t work. They have identical properties.
I see the following line repeatedly in the Plex logs "Failed to stream media, client probably disconnected after xxxxxx bytes: 104 - Connection reset by peer
The files are not particularly large and the wifi network is working fine. Everything is on my local LAN.
I have not changed the MTU. All network settings have been the same for a long time. The problem only recently started, I believe with one of the Plex releases in December.
NOTE: There is another video within the same log that plays just fine on this player. The videos that fail, play fine until about half-way through the file. The videos that fail, fail on all players, at about the same point. The videos that fail, play correctly outside of Plex. Best I can tell, the problem only exhibits itself on files downloaded since December.
Hmmm… Maybe sent you a bad example, attached is the XML from another file that was downloaded recently and also has stuttered playback. The one I’m attaching here is NTSC and has the same resolution. Actually, I can send you a bunch of examples if needed. I’ve tested on dozens of files. The main thing they seem to have in common is that they were downloaded recently.
I didn’t know that you could pull an XML from Plex containing some of this info, so I had been using a utility called “mediainfo” to compare the files.
It was several weeks ago when I began troubleshooting this, so I don’t remember everything I tried, but I’m pretty sure I tried running one of them through handbrake and it had the same problem. I also tried re-downloading at different resolutions (I use “4K Video Downloader”).
Is it possible that Plex recently began extracting/tagging information incorrectly when importing? I don’t remember there being a new version of 4K Downloader in December, but maybe there’s a problem that cropped up there…
[EDIT: I had mis-labeled the uploaded file]
They’re downloaded from YouTube using 4K Video Downloader. Been doing it this way for a while and it’s been working fine (until recently). Usually 720p when available. Quality is fine for my purposes. The files are typically 30-60 minutes long.
The file you sent won’t be a good example to demonstrate the problem (too short). The files that have stuttered playback work fine until about 15-20 minutes into the playback. In fact, when it starts acting up, I’ve tried pausing it, going to another device/platform, and the problem continues where the file was paused. For example, I’ll start on my iPad, run into problems, go to a Roku, Plex for Windows, AppleTV, and the playback issues continue where they left off on the previous device. If I then re-start the video from the beginning on any of those platforms, it plays fine until about 15-20 minutes in, then the problem starts again.
A few minutes ago I tested again with the file I just sent you the XML for. Same behavior. Started on Plex Windows, problems start mid-playback, paused, went to Roku, same problem, but this time when I went to Plex-Web, the file played fine. I’m sure I had tested on Plex Web before, so I’m not sure why it played fine this time. I paused Plex-Web (with it working), went back to Plex Windows, stuttered playback began where I had paused it. FWIW, Plex-Web & Plex-Windows where physically on the same computer.
If they play 15-20 minutes before you develop issues, there is something else happening.
What I need to see are your DEBUG logs just as it starts happening.
Until then, there is no way of knowing further.
I will still question the source when you download from Youtube. You have no idea how it was encoded. Further, no control over how it was reduced in the downloader. That’s asking for problems.
Get me the logs of the failure and I’ll look further
I had tried downloading the logs from Plex yesterday (using Plex-Windows) and it wasn’t working, so as per the Plex how-to, I just grabbed the file. Since that seemed fine yesterday, I thought it would work today.
I just tried again, but instead used Plex-Web, and downloading the logs from Plex now works. I see that it downloads ALL logs. I assume you just want the “Plex Media Server.log” file. See attached. Let me know if you need more. Thanks!
I did some additional troubleshooting today. Based on your feedback, and following up on my quote above, I tried to figure out if a problem had maybe cropped up with 4K Video Downloader. I tried a different tool (YouTube-DL) and this time the file is working fine within Plex.
It is strange because I have used 4K Downloader for a long time without issue, but something must have changed in early December (when the problem began). I assumed (incorrectly) that it was perhaps related to a December update in Plex, but it appears that the problem is with 4K Downloader so I’ll take up the issue with them. Thanks for pointing me in the right direction.