Hi everyone! I'm new to TrueNAS and the community, so please be gentle. ;)
I recently set up a remote TrueNAS server to stream movies over the internet. I'm having trouble getting smooth playback, the movies tend to stutter. I'll explain my setup below, hopefully someone may have insight?
My goal is to play MP4 movies in QuickTime on my Mac over an AFP share. I know a lot of folks use Plex for this, but I'm hoping to keep it simpler. I'm just opening the movie files from the AFP share into QuickTime Player. When I first open a movie I can see that it buffers for a few seconds (observed in the network activity). I press play and playback is smooth for several seconds, then it starts to stutter. 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. Pausing for longer doesn't help, QuickTime won't buffer any further. 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 <video> tag.
I don't think my internet connection should be the problem. The remote server has a 100 Mbps uplink, I've confirmed this speed by downloading large files from the server to my Mac. My personal internet connection is close to 1 Gbps and I've confirmed I can truly achieve this speed. The remote server lives in the same city, and I get ping times of 15-25 ms.
I don't think my hardware is the problem. I have a brand new Supermicro server with a Xeon processor and 32 GB RAM. I have a multi-disk raidz2 array with enterprise-grade disks. The array is only 5% full and freshly copied, so capacity/fragmentation should not be an issue. 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. My Mac is a recent model, plenty fast enough for the task. When I play the movies from my local disk, they're buttery smooth.
My TrueNAS OS is up to date, I'm running 12.0-U1.1.
I have noticed that the stuttering seems worse during the daytime, and better (though still not great) in the middle of the night. This suggests to me it might be related to network congestion. However the transfer speeds from the server should be plenty fast enough day or night. I've measured sustained real world speeds of at least 80 Mbps, which is >5x what I need to stream a simple 1080p movie. Given this I can't imagine how performance can be so bad.
Has anyone seen anything like this? Any suggestions for how to fix it? Thanks in advance for your help!
I recently set up a remote TrueNAS server to stream movies over the internet. I'm having trouble getting smooth playback, the movies tend to stutter. I'll explain my setup below, hopefully someone may have insight?
My goal is to play MP4 movies in QuickTime on my Mac over an AFP share. I know a lot of folks use Plex for this, but I'm hoping to keep it simpler. I'm just opening the movie files from the AFP share into QuickTime Player. When I first open a movie I can see that it buffers for a few seconds (observed in the network activity). I press play and playback is smooth for several seconds, then it starts to stutter. 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. Pausing for longer doesn't help, QuickTime won't buffer any further. 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 <video> tag.
I don't think my internet connection should be the problem. The remote server has a 100 Mbps uplink, I've confirmed this speed by downloading large files from the server to my Mac. My personal internet connection is close to 1 Gbps and I've confirmed I can truly achieve this speed. The remote server lives in the same city, and I get ping times of 15-25 ms.
I don't think my hardware is the problem. I have a brand new Supermicro server with a Xeon processor and 32 GB RAM. I have a multi-disk raidz2 array with enterprise-grade disks. The array is only 5% full and freshly copied, so capacity/fragmentation should not be an issue. 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. My Mac is a recent model, plenty fast enough for the task. When I play the movies from my local disk, they're buttery smooth.
My TrueNAS OS is up to date, I'm running 12.0-U1.1.
I have noticed that the stuttering seems worse during the daytime, and better (though still not great) in the middle of the night. This suggests to me it might be related to network congestion. However the transfer speeds from the server should be plenty fast enough day or night. I've measured sustained real world speeds of at least 80 Mbps, which is >5x what I need to stream a simple 1080p movie. Given this I can't imagine how performance can be so bad.
Has anyone seen anything like this? Any suggestions for how to fix it? Thanks in advance for your help!