AI codecs: Optimizing bit rate for media quality