I am working on a system that will need to host large videos (~1 hour long).
So I am considering 2 solutions:
- Convert the uploaded video to few webm files with different resolutions (4k, 1080p, 720p, ...)
and a single mp4 as fallback and serve them directly. - Convert the uploaded file to HLS segments (also in multiple resolutions)
and generate both HLS and DASH playlists and serve them as such.
From what I understand HLS has the advantage of being segmented, so files will be only downloaded when actually playing the video and only in format that the client internet connection can keep up to.
On the other hand webm could be in theory downloaded using HTTP range requests, but not every server can handle it correctly and I am not sure if browsers will always use range requests instead of downloading the entire file.
Will using HLS help reduce network usage of the the server, or is it better to stick with webm?
Are there any other advantages of using one solution vs the other?