mp4 need time to start playing

#1
Hi,

we have some websites on https and http, all mp4 videos are between 20 MB and 120 MB, somethimes the videos just don't start to play, also not if we place the direct URL in any browser. If we wait some minutes the videos start to play.

I thing we have the wrong settings

The server has 8 times

Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz
3300.230 MHz
Cache 8192 KB

13 GB RAM

Thanks 1.jpg 2.jpg
 
#5
I see allot of this in the admin

add child process pid: 32332, procinfo: 0x10e0580

and some Pending AIO finished, recycle connection.

and the server looks very quiet for me see photo
 

Attachments

NiteWave

Administrator
#8
also not if we place the direct URL in any browser. If we wait some minutes the videos start to play.
maybe the mp4 encoding issue.
you can upload one slow video to youtube, and download from youtube, so the video is re-encoded by youtube.

then upload the youtube one to your web server, if it becomes much faster(or normal), it can prove it's encoding issue.
 
#9
The mp4 works fine, something is not right with the settings

I try to change all but can't get the videos loading, now I switch back to Apache and the videos load fast.

Anybody who know the settings we need, here are the stats from Apache
Server uptime: 15 minutes 29 seconds
Total accesses: 11639 - Total Traffic: 64.7 GB
CPU Usage: u1261.72 s80 cu0 cs0 - 144% CPU load
12.5 requests/sec - 71.3 MB/second - 5.7 MB/request
536 requests currently being processed, 34 idle workers
We have 8 CPUs
16 GB RAM
2 CPU Lisence

Large video files and allot of traffic


Thanks
 
#10
just noticed that in your first post:
Send Buffer Size (bytes): 512K
Receive Buffer Size (bytes):512K

please change back to default value: 0

it may resolve the issue.
 
#11
We found out it is a problem with Cloudflare and Litespeed
We run the server on Apache and all loads fast
We run on Litespeed and Cloudflare bypass cache and all loads fast

It is not working when:
We run on Litespeed and the first load thru Cloudflare with cache enable needs long time to connect and the videos don't play

We added the Cloudflare IPs in Litespeed Access Control and Use Client IP in Header Trusted IP Only

Any ideas?
 
#13
Cloudflare is always enabled it works fine with Apache

If I bypass the cache for videos files in cloudflare it also connect fast with litespeed

Only with cache enable it start to need long time, it is all very strange
 
#14
1)
have you tried:
Send Buffer Size (bytes): 512K
Receive Buffer Size (bytes):512K

please change back to default value: 0
2) if remove cloudflare, let lightspeed serve directly, any problem ?

3) it's hard to understand for me:
apache + cloudflare with cache mp4 file,
the first load thru Cloudflare don't need long time to connect and the videos play quickly
 
#15
Send Buffer Size (bytes): 512K I but to 0 but no affect, this has nothing to do with the settings

In Cloudflare you have the Page Rules, you can Bypass or Cache URLs, Files etc.

For testing we set 2 videos, one Bypass Cache, one Cache

The Bypass works

The Cache don't

As it works with Apache we think it is a Litespeed problem
 
#16
please double confirm it works with apache.

otherwise, please send the test URL, let's verify it works with apache and not under litespeed.

and further more, the server's web admin user/pass and even temp root ssh.
 
#17
I will make the test asap

How long you will be around?

Another test I would like to make first, we have version 5.1.14 installed and no other old versions, how we can we install the 2 - 4 versions before? I do belief it worked with one of the older ones.

Just not 100% sure as we just found the error some days ago
 
#19
need reproduce it at our side.

for older versions, just do (for example):
#/usr/local/lsws/admin/misc/lsup.sh -f -v 5.1.13

it'll install and switch to 5.1.13. then you can switch to 5.1.14 in web admin.
 
Top