You don't need to do what you're asking to do. YouTube has an HTML5 option which uses h264 and AAC in mp4. All you need to do is download the HTML5 version of your choice (360p, 720p, 1080p) and import in to iTunes. I use jDownloader for grabbing the MP4s, but other tools will do it too.