set the codec