Peertube does that using FFmpeg. The transcoding of a single live stream (to half a dozen bitrates) only required a couple of low end cores. Iirc the segments fell out of the cache as it overflowed, but no reason why a scoring system couldn't be deployed.