encoder: implement audio format fallback selection