Cloud-based encoding to boost video streaming quality