

It turns out AFP really was the source of the stuttering. I thought I'd write up my solution in case someone else needs this in the future. Update: I managed to resolve my issue, thanks to the helpful advice above.

Has anyone seen anything like this? Any suggestions for how to fix it? Thanks in advance for your help! Given this I can't imagine how performance can be so bad. I've measured sustained real world speeds of at least 80 Mbps, which is >5x what I need to stream a simple 1080p movie. However the transfer speeds from the server should be plenty fast enough day or night. This suggests to me it might be related to network congestion. I have noticed that the stuttering seems worse during the daytime, and better (though still not great) in the middle of the night. My TrueNAS OS is up to date, I'm running 12.0-U1.1. When I play the movies from my local disk, they're buttery smooth. My Mac is a recent model, plenty fast enough for the task. The hardware is fully capable of reading/sending data quickly enough, I've confirmed this by downloading large files from the server to my Mac. The array is only 5% full and freshly copied, so capacity/fragmentation should not be an issue. I have a multi-disk raidz2 array with enterprise-grade disks. I have a brand new Supermicro server with a Xeon processor and 32 GB RAM. I don't think my hardware is the problem. The remote server lives in the same city, and I get ping times of 15-25 ms. My personal internet connection is close to 1 Gbps and I've confirmed I can truly achieve this speed. The remote server has a 100 Mbps uplink, I've confirmed this speed by downloading large files from the server to my Mac. I don't think my internet connection should be the problem. It's not just a problem with QuickTime, I've seen the same behavior in VLC and when playing the movie in Safari using an HTML5 tag. Pausing for longer doesn't help, QuickTime won't buffer any further. If I pause the movie for a few seconds to let it buffer it will start playing smoothly for a few more seconds, but then it starts to stutter again. I press play and playback is smooth for several seconds, then it starts to stutter.

When I first open a movie I can see that it buffers for a few seconds (observed in the network activity). I'm just opening the movie files from the AFP share into QuickTime Player. I know a lot of folks use Plex for this, but I'm hoping to keep it simpler. My goal is to play MP4 movies in QuickTime on my Mac over an AFP share. I'll explain my setup below, hopefully someone may have insight? I'm having trouble getting smooth playback, the movies tend to stutter. I recently set up a remote TrueNAS server to stream movies over the internet. Hi everyone! I'm new to TrueNAS and the community, so please be gentle.
