yes, Unity supports both codecs, however prompts and vm recordings will be stored in the codec you selected during install. Unity can do native transcoding to the other codec, but it puts overhead on the server, so hardware xcoder may be a better solution.
HTH,
Chris