Home > Blockchain >  Is it possible that my xampp server makes videos on my website lag?
Is it possible that my xampp server makes videos on my website lag?

Time:01-23

I have a XAMPP server set up on my computer with the following specs:

GeForce RTX 3070 AMD Ryzen 5 5600X 6-Core Processor 16 GB RAM (15.95 GB RAM usable)

On the server I am running a website with a couple of short videos that acts as animations. The videos run perfectly smooth during the first 15 minutes of restarting the server but they eventually start to get really choppy.

I have followed many guides on how to optimize video performance, I have switched to webm, and the websites network payload is less than 10mb, I have followed all the recommendations that Lighthouse gave me and have a 100 performance score but the videos are still really choppy.

Should I maybe consider switching to a cloud based video hosting service? The videos is currently in a HTML video tag with the videofile directly linked inside the tag.

Any help would be appreciated .

CodePudding user response:

It sounds like you've done a lot of optimization on your website to improve video performance, but the videos are still running choppy. There are a few other things you can try to improve video performance:

  1. Check the encoding of the video files: Make sure that the videos are properly encoded and compressed to reduce their file size. You can use video encoding tools like Handbrake or ffmpeg to optimize the videos.

  2. Optimize the video player: Try using a more efficient video player, such as Video.js or Plyr, which can improve performance by reducing the number of HTTP requests required to play the video.

  3. Check for network issues: Make sure that your network connection is stable and that there are no bottlenecks that could be causing the videos to run choppy.

  4. Check the Server Configuration: Make sure that your server is configured optimally for video playback. This may include settings related to CPU, RAM, and disk I/O.

  5. Switch to Cloud-based Video Hosting: As you mentioned, switching to a cloud-based video hosting service like YouTube, Vimeo, or Amazon S3 can help improve video performance. These services have powerful servers that can handle the high bandwidth requirements of video playback, and they often provide additional features such as video compression, adaptive streaming, and content delivery networks.

It's worth to try all the above points, before considering moving the hosting to cloud based services. But if all the above points doesn't work and the issue still persists, then it's a good idea to switch to a cloud-based video hosting service.

  • Related