ffmpeg – Trying to Set up Video Streaming Website with HLS Videos on my server

I’m trying to stream HLS videos on my server through my website.
My website is written in PHP and JS. I’m using Video-JS as a player for my videos.
My server has 32GB RAM and processor is AMD Ryzen 5 3600X.

My server OS is Debian 12.

I want to have my videos play smoothly like on youtube but they keep buffering continually.
The videos that buffer the most are 1920×1080 resolution. I thought my server would’ve been fast enough to host these videos. But I don’t know whether problem lies in the script or the server specs. My videos are split into HLS segments using ffmpeg.

My server’s Upload speed 755.82MB and download speed is 808.35MB

I tested it on a client with 190MB Download speed.

At first I was using a server with lower specs. A VPS With 4GB Memory and a much lower grade processor. So I upgraded to a Dedicated Server with 32GB RAM and AMD Ryzen 5 3600X. But the videos did not speed up so I’m trying to figure out the cause of them buffering continuously and not playing faster.
I don’t know how to tell if it’s the bandwidth or the inability of the receiving machine to decompress the video and play it?

Read more here: Source link