If you are asking how to do this in FCP, the current version of Compressor does a pretty good job of format conversion. You can select the Export Using Compressor command from the timeline and select your output format in the Compressor window that pops up.