You have created an animation and want to make it into a final video format. Here are the steps -
Choose an output location for your animation under the "Render" tab by clicking on "Output".
This is the folder where your animation files will be saved, whether it is rendered as image files or a video file.
Before you make a video file of your animation, it is a good idea to render it as an image sequence first. If you render it directly to a video file, you can't stop/pause the render or there is a chance that you will get a corrupted file.
Here's how you do it -
When you have chosen an output directory for your animation, choose an image format under the output settings and click on "Animation" -
When it is finished, go to the video editor by clicking on "Choose screen layout" and then "Video Editing".
From there, click on "Add" and then "Image" -
Select all of the image files of your animation with A and click on "Add image strip". Then, click on "Choose screen layout" again and click on "Default". Then choose a video format for your animation -
Then click on "Animation" again under the "Render" tab.
The second time you click on "Animation" under the "Render" tab, the animation is converting your image files into a video file.
One of the big changes in 2.79 is that they finally separated containers and codecs.
The encoding options from previous versions are still there, but now they have organized differently
If you select FFMpeg video, there will be a new tab for Encoding options.
There you can select the container and the codec for the output file.
Container is the file format for the file, (Mov, Avi, Ogg, MP4, to name a few) sometimes is referred as a "wrapper".
Codec (short for Compression-Decompression) Is how the image is compressed. The picture quality, file size and processing power needed to view the file are largely determined by the kind of codec used and the settings used for it.