Page 1 of 1

video loading very slow

Posted: 28 Sep 2024, 03:53
by Faust
I have a weird issue with vimeo videos. They do load very slow on my home page, they do work as I wanted, but very slow loading, Is there any way to achieve similar results but self hosted videos ? Thanks.

Re: video loading very slow

Posted: 28 Sep 2024, 10:52
by mjau-mjau
Link please! Why no link? You have two websites, and I don't know which one it is and I certainly don't know which page.

If Vimeo is loading slow for you, it's either about your internet or Vimeo speed. Most likely the first, because Vimeo normally have fast speeds for serving video. This has nothing to do with your own server, because Vimeo is served from Vimeo's servers of course.

Re: video loading very slow

Posted: 28 Sep 2024, 11:31
by Faust
mjau-mjau wrote: Link please! Why no link? You have two websites, and I don't know which one it is and I certainly don't know which page.

If Vimeo is loading slow for you, it's either about your internet or Vimeo speed. Most likely the first, because Vimeo normally have fast speeds for serving video. This has nothing to do with your own server, because Vimeo is served from Vimeo's servers of course.
My bad. Here's the link. I was thinking maybe it's possible to achieve similar results, but self hosted.

https://iskymedia.io

Re: video loading very slow

Posted: 28 Sep 2024, 22:17
by mjau-mjau
Faust wrote: My bad. Here's the link.
https://iskymedia.io
I checked here, and the videos don't load slow, but played immediately. That would have been expected though, since I am on a fast connection, and Vimeo should normally provide fast loading regardless of location. I would mention however, you are loading original full size Vimeo videos into small areas on the screen, so it could be slow on not-so-fast internet connections ... You wouldn't technically need full-res videos to load into smaller areas on the screen. For me, it worked without any problems.
Faust wrote: I was thinking maybe it's possible to achieve similar results, but self hosted.
Yes you could do that. The benefit would be that it doesn't need to load external Vimeo javascript libraries just for a small embed, and also you would be able to optimize/resize/compress each video to suit that page. The disadvantage is that you then need to spend time creating mp4 videos specifically for those embedded previews, and your own host might not even serve the videos as fast as Vimeo.

It's easy to embed a self-hosted video:
Code
<video src="/path/to/video.mp4" autoplay playsinline loop>

Re: video loading very slow

Posted: 29 Sep 2024, 05:49
by Faust
I checked here, and the videos don't load slow, but played immediately. That would have been expected though, since I am on a fast connection, and Vimeo should normally provide fast loading regardless of location. I would mention however, you are loading original full size Vimeo videos into small areas on the screen, so it could be slow on not-so-fast internet connections ... You wouldn't technically need full-res videos to load into smaller areas on the screen. For me, it worked without any problems.
Thanks, so you'd say to leave it how it is? Or should I change the resolution for those videos for quicker loading?

Re: video loading very slow

Posted: 29 Sep 2024, 21:37
by mjau-mjau
Faust wrote:Thanks, so you'd say to leave it how it is? Or should I change the resolution for those videos for quicker loading?
Those Vimeo videos look and load fine here, and probably for most others, I would definitely keep.

I did see something while inspecting the network traffic. It seems you have also a video in the home page "Untitled%20Project.mp4"? It seems to be loading but not used, perhaps because it'w added to the page, but does not go into the slideshow intro module.

Re: video loading very slow

Posted: 30 Sep 2024, 05:05
by Faust
mjau-mjau wrote:
Faust wrote:Thanks, so you'd say to leave it how it is? Or should I change the resolution for those videos for quicker loading?
Those Vimeo videos look and load fine here, and probably for most others, I would definitely keep.

I did see something while inspecting the network traffic. It seems you have also a video in the home page "Untitled%20Project.mp4"? It seems to be loading but not used, perhaps because it'w added to the page, but does not go into the slideshow intro module.
Yes, you right, I wanted to use the video on the slideshow, but is not achievable sadly. 

Re: video loading very slow

Posted: 01 Oct 2024, 00:03
by mjau-mjau
Faust wrote:Yes, you right, I wanted to use the video on the slideshow, but is not achievable sadly. 
Unfortunately no. You should "hide" it (click hide icon) if you are not going to use it. I'm not sure why, but for some reason it is being loaded into browser, which might explain why things were loading slow for you earlier on if it was loading images + local video + vimeo video all at the same time. You want to minimize the initial load.

Re: video loading very slow

Posted: 01 Oct 2024, 09:00
by Faust
mjau-mjau wrote:
01 Oct 2024, 00:03
Faust wrote:Yes, you right, I wanted to use the video on the slideshow, but is not achievable sadly. 
Unfortunately no. You should "hide" it (click hide icon) if you are not going to use it. I'm not sure why, but for some reason it is being loaded into browser, which might explain why things were loading slow for you earlier on if it was loading images + local video + vimeo video all at the same time. You want to minimize the initial load.

Thanks Karl. I have deleted it anyway