We are testing the Cloudflare Stream for an online learning video streaming platform.
We uploaded one 1080p video of 20MB size (4 min 30sec duration), encoded with codec H264 –MPEG-4 AVC.
When we streamed the video through a web browser and using developer tool we monitored the data transfer, we found the following amount of data got transferred for each stream quality:
1080p – 160MB
710p – 121MB
480p – 64.MB
240p – 21 MB
To compare it with Youtube streaming, we uploaded the same video and then using the same technique as above we measured the data transfer
1080p - 41MB
720p - 32.5MB
480p - 23.4MB
240p - 14.6MB
We can see the data transfer of Cloudflare is much higher than Youtube. So why the encoded files in Cloudflare have much higher size (original 1080p file was 20MB and streaming 1080p generated 160MB data transfer).
Is there any way we can reduce the streaming data transfer by encoding the files in a much-optimized way and reducing the encoded file size?