bitrate balance and packet loss optimization