Restructure the codec interface to support multiple codecs live at once.