I would start by reading the help files. You want to look up rendering. Then simply add your movie to the render queue and render to the codec that you want to use. It sounds like you are a real beginner so you should start with the essentials. There's a link on the main page of this form.