The problem seems to be that they are decompressing video in Chromium and then sending the uncompressed video somewhere else.
A more reasonable approach would be to have Chromium save the original compressed video to disk, and then use ffmpeg or similar to reencode if needed.
Even better not use Chromium at all.