V
V
Vitaliy O2018-06-01 01:18:12
Nginx
Vitaliy O, 2018-06-01 01:18:12

What to do with a long video upload?

Good day!
The essence of the problem: there is a website (django), video files are on the server (I tried to give through static, and through media, the problem remains), which are broadcast through a standard html5 player ( tag ). The static is given through nginx (in conjunction with gunicorn). Videos before starting the broadcast are loaded for a very long time (5-20 seconds). In different browsers in different ways, on mobile phones it is faster, but still not suitable. Videos of different sizes, there are 25 megabytes, there are 250 megabytes, all equally slow down the download. The metadata is at the beginning of the file. I dug around with the nginx settings, but all in vain. Can anyone come across a similar one, tell me what is worthwhile - I will be extremely grateful.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey, 2018-06-01
@butteff

Maybe it makes sense to try some CDNs, for example, amazon aws s3. Those. post videos there. CDN gives faster, caches content.

P
planc, 2018-06-01
@planc

I'm not very good at video, but probably
https://boomstream.com/ru/news/using-hls.html
nginx.org/ru/docs/http/ngx_http_hls_module.html

C
chubahu, 2018-06-03
@chubahu

Partly to solve this problem, they came up with HLS and DASH

D
Danil Sapegin, 2018-06-04
@ynblpb_spb

Try converting the test video to mp4 and running it through https://gpac.wp.imt.fr/mp4box/
This command adds special pointers to the file and it starts loading faster

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question