Sunday, 8 December 2019

Does the

If I were to compress videos before saving them with something like gzip, could I just then serve up the raw compressed data to the video tag? Or could I need to uncompress it before sending? I'm making a file uploading website, so users have the ability to upload any file size, and if it's a video it allows the user to stream the video. But some videos can have a large amount of bandwidth, for example on my pixel XL 2, a 13 second video is 79MB, which is about 6.1MB, my server tops out at about 20mbps (about 2.0MBps) upload, so it will buffer a lot.I tested it in Google Drive for comparison, and noticed they process the file if it's a video before you're able to see it, Im guessing they make a compressed copy that's suitable for streaming and serve that up when you watch the video from Google drive, and then serve up the original uncompressed when you press download. Noting that would this by the best way? Or could I do what I stated above, thanks.

Submitted December 08, 2019 at 07:23PM by subnub99

No comments:

Post a Comment