Stuttering ..

So i’m sure there are a million of these threads out there , but i am genuinely confused here
So i have rasplex on a raspberry pi 2 1gb

I’m trying to direct stream / play from my remote server

Now rasplex keeps buffering at random intervals, sometimes it keeps up. others not.

Now i get it , it depends on upload speed from the server etc, but it should cover it fine , and even more stragely is my PS4 with plex on it streams the same movie ( direct stream ) without a hiccup.

whats going on

Are you using a Wifi or ethernet connection?

Ethernet on the Raspberry PI and Wifi on the PS4 funnily enough

One thing i’ve just noticed while looking at the network usage on my remote server

when the rasplex streams it doesn’t go above - 10mbps ever .
when the PS4 streams it routinly goes above 17 mbps, i saw it hit 30mbps at one point.

hmm

Is your server having trouble transcoding the file? If not, try changing the setting client side. Even if it’s just from “Original” to “1080p 8mbps”. Sometimes that fixes this issue.

That’s the thing its not transcoding the file, its direct stream… the weird part is the PS4 streams it 100% smoothly ( plex app ) , the Pi struggles.

How big is this stream? The RaspberryPi isn’t going to be playing back a perfect bluray rip for example. What is the bitrate of the movie you are playing? Is this affecting all of your movies?

the file i’m trying to direct stream has a bitrate of 11386 kbps 11.3 mbps

Well there’s your problem! Haha my Chromecast starts stuttering around 9 mbps, and the RaspberryPi is an awesome piece of hardware no doubt but it still has it’s limitations. Try changing the settings client side so that it makes the server transcode, something like 8 mbps. Let me know if that fixes it.

I think you’ve nailed it … 8 seems to be playing absolutely fine right now… lol well that could have saved me hours of messing around. oh well, thanks for the help :slight_smile:

Glad to hear it. Any time!

Sorry to drag this thread back up but i have some new info!

So i downgraded my rasplex to 6.0 , its now easily handling that movie on direct play , it fills up the cache and plays buttery smooth! DTS. 10.9mbps , everything

@chris0101

Been having the same issue. Looking at pi PHT debug log, there appears to be some backend items processing during the stuttering. Then I reboot and there is no other processing and everything plays smooth for 12 hours or so.

I’ve added a good size portion of a large debug log (25MB) below. This log contains me direct playing the same video twice. The first time it played fine. I then paused it and resumed it later. During the resuming, it began stuttering. The stuttering took place towards the end of the file as I grabbed the log then restarted the pi2 which then played the video fine.

@benjaminwolf thanks for the logfile!

There has been some improvements with the PMS connection handling in next release, should be ready in a few days, but I do not think it will affect the issue I can see in your logfile.
It is also possible that 0.7.1 shipped with a bad kernel and raspberry pi firmware, next release will ship with linux kernel 4.1.10 and latest rpi firmware.

From the log I can see that PHT might have mixed up the plex.tv service with the cloud sync server and it fails to load playlists from the cloud sync server at the wrong path, this is very strange and nothing I have seen before.
It also looks like PHT is trying to reach your PMS using http connection and fails every 30s or so when you resumed playback, unclear why it retries to connect over http when it has a https connection.

Please try to disable cloud sync servers in RasPlex and change your secure connection setting from required to preferred in PMS and report back if this solves your problem.

@Kwiboo Thanks for taking a look at this.

I was running secure connections as preferred when this happened. So it’s odd that HTTP calls were failing. I’ll upgrade to the latest PMS Version 0.9.12.14.1493 released this morning, and see if the issue clears up.

I also started this thread in the PHT section ; https://forums.plex.tv/discussion/186996/stuttering/p2

Reason being is i have the EXACT same issues on my home PC as i did on the raspberry pi 0.7.1 …
However on raspberry pi 6.0, ps4 and iPad it plays like butter
Possible its a problem with the latest PHT?