How to optimize video upload from local storage

232 Views Asked by At

I'm currently researching any ways to speed up large (~1.5-2Gb) videos from user desktop via browser to the website.

So far I found out that video compression on client sadly is not the best option, although the result is not so bad (19Mb MOV was converted to 6Mb MP4).

Another option is chunking video data into small parts and run on parallel but that seems like default behaviour for browser, so that not actually speeds up anything.

I am not tied with specific front- and backend so any advise is helpful.

2

There are 2 best solutions below

5
On

Buy more bandwidth.

(Original question omitted timing details, so "how much" to buy for the relevant network path is unclear.)

Lower resolution videos at lower frame rate, perhaps in grayscale, would be smaller. You didn't specify what level of video fidelity is required.

https://en.wikipedia.org/wiki/Entropy_(information_theory)

1
On

I suggest you use the WebAssembly version of FFMPEG, and do video conversion and then upload the converted file to your server, or where ever you want to upload the file

FFMPEG WebAssemably

Using this, you can convert video data on the frontend, and then create a smaller filesize, and you can also drop the resolution to make an even smaller filesize.

also here is a demo of the technology