If you don't have Adobe Media Encoder, you need to download Quicktime Software that can get the output Video in mp4 H.264. If you do not download it will not show up in you video option. So Download the latest one that I give the link below.
Download Quicktime
https://support.apple.com/kb/DL837?locale=en_US
Firstly when you have finish editing video, click Composition -> Add to Render Queue
At below it will pop out this and then Click Lossless behind the Output Module.
#Output To is where you want to save the video.
After that at Format, you need to choose Quicktime -> and then click Format Options
At video Codec choose H.264.
After Finish it clicks Render. And you had saved your video. It really easy.