Answer the question
In order to leave comments, you need to log in
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
Maybe it makes sense to try some CDNs, for example, amazon aws s3. Those. post videos there. CDN gives faster, caches content.
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
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 questionAsk a Question
731 491 924 answers to any question